/* Central Stylesheet: styles.css */

/* === INTER FONT OPTIMIZATION === */
* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-optical-sizing: auto;
}

body, html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* === HERO SECTION === */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
  backdrop-filter: blur(10px);
}

/* Hero Inner Frame - Custom Two-Column Layout */
.hero-inner-frame {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.5rem;
  min-height: 280px;
}

.hero-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-right {
  flex: 0 1 400px;
  max-width: 400px;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-right > #upload-tool-root {
  width: 100%;
  max-width: 400px;
}

/* === RESPONSIVE DESIGN === */
/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-section {
    padding: 2rem 1rem !important;
    border-radius: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-left h1 {
    font-size: 1.75rem !important;
    margin-bottom: 1rem;
  }
  
  .hero-left p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .upload-section {
    padding: 1.5rem !important;
    border-radius: 1rem !important;
  }
  
  .feature-card {
    margin-bottom: 1rem;
  }
  
  /* Mobile touch targets - minimum 44px */
  .btn, button, select, input[type="file"] {
    min-height: 44px;
    touch-action: manipulation;
  }
  
  /* Improve FAQ search on mobile */
  #faqSearch {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Small Devices (tablets, 576px to 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    padding: 2.5rem 1.5rem !important;
  }
  
  .hero-left h1 {
    font-size: 2rem !important;
  }
}

/* Medium Devices (small laptops, 768px to 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-inner-frame {
    gap: 2rem;
  }
  
  .hero-left h1 {
    font-size: 2.25rem !important;
  }
}

/* Large Devices and below (992px and down) */
@media (max-width: 991.98px) {
  .hero-inner-frame {
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-left {
    max-width: 100%;
    flex: 1 1 100%;
    text-align: center;
  }
  .hero-right {
    flex: 1 1 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
  }
  .hero-right > #upload-tool-root {
    max-width: 100%;
  }
  .upload-section {
    max-width: 100%;
  }
  
  /* Navbar improvements for mobile */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid #667eea;
    outline-offset: 2px;
  }
  
  /* Dropdown improvements for mobile */
  .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* Extra Large Devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section {
    padding: 4rem 3rem !important;
  }
}

/* === UPLOAD SECTION === */
.upload-section {
  background: #fff;
  color: #333;
  width: 100%;
  max-width: 400px;
}

#upload-tool-root {
  width: 100% !important;
  max-width: 100% !important;
}

#upload-tool-root .upload-section {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.upload-icon {
  font-size: 2.5rem;
  color: #667eea;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced icon fallback support */
.upload-icon .icon-fallback {
  font-size: 2.5rem;
  line-height: 1;
}

.upload-icon .icon-fallback-cloud-upload::before {
  content: "📁⬆️";
  font-size: 2rem;
}

/* === BUTTONS === */
.btn-primary,
#upload-btn {
  background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
  border: none;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover,
#upload-btn:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #4c51bf 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#download-btn {
  display: none;
}

.upload-btn.reduced-width {
  display: block;
  margin: 0 auto 30px;
  max-width: 350px;
  text-align: center;
}

/* === FEATURE/SEO CARDS === */
.feature-card {
  border-radius: 1.5rem !important;
  border: 1px solid rgba(102, 126, 234, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

/* === FAQ SECTION === */
.faq-item {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* === NOTIFICATIONS & FEEDBACK === */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  min-width: 300px;
  max-width: 500px;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification.show {
  transform: translateY(0);
}

.notification.success {
  background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
  color: white;
}

.notification.error {
  background: linear-gradient(135deg, #FF5252 0%, #FF1744 100%);
  color: white;
}

.notification.warning {
  background: linear-gradient(135deg, #FFA726 0%, #FF9800 100%);
  color: white;
}

.notification.info {
  background: linear-gradient(135deg, #42A5F5 0%, #2196F3 100%);
  color: white;
}

.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notification-content {
  flex-grow: 1;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  opacity: 1;
}

/* Mobile notification adjustments */
@media (max-width: 575.98px) {
  .notification {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    min-width: unset;
  }
}

/* === OFFLINE INDICATOR === */
.offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #FFA726;
  color: white;
  text-align: center;
  padding: 0.75rem;
  font-weight: 500;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 1060;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.offline-indicator:not(.d-none) {
  transform: translateY(0);
}

.offline-indicator i {
  margin-right: 0.5rem;
}

/* === ERROR STATES === */
.error-message {
  background: #FFEBEE;
  border: 1px solid #FFCDD2;
  color: #C62828;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.error-message i {
  color: #E53935;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* === FORM VALIDATION STATES === */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #E53935;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5' fill='%23E53935'/%3e%3cpath stroke='%23fff' stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23fff'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control:focus.is-invalid,
.form-select:focus.is-invalid {
  border-color: #E53935;
  box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 0.25);
}

/* === LOADING STATES === */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1070;
  backdrop-filter: blur(2px);
}

.spinner-container {
  text-align: center;
}

.spinner-border-custom {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
  border-color: #667eea;
  border-right-color: transparent;
}

/* === FILE INFO DISPLAY === */
.file-info {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.file-info:hover {
  border-color: #cbd5e0;
  background: #edf2f7;
}

.file-info i {
  color: #667eea;
  font-size: 1.25rem;
}

.file-info span {
  flex-grow: 1;
  font-weight: 500;
  color: #2d3748;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-info .btn-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: #718096;
  cursor: pointer;
  padding: 0.25rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.file-info .btn-close:hover {
  background: #e2e8f0;
  color: #2d3748;
}

/* === ENHANCED FEATURE CARDS === */
.feature-card .card-body {
  padding: 2rem;
}

.feature-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.feature-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2d3748;
}

.feature-card .card-text {
  color: #4a5568;
  line-height: 1.6;
}

/* === FAQ ENHANCEMENTS === */
#faqSearch {
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#faqSearch:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

.accordion-button {
  font-weight: 600;
  color: #2d3748;
  background: #f7fafc;
  border: none;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: #667eea;
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
  border-color: transparent;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23667eea'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 1.5rem;
  background: white;
  color: #4a5568;
  line-height: 1.6;
}

/* === NAVBAR ENHANCEMENTS === */
.navbar {
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  transition: transform 0.2s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  color: #4a5568 !important;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #667eea !important;
}

/* === FOOTER ENHANCEMENTS === */
.footer {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.footer h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.footer ul {
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  transition: all 0.2s ease;
  position: relative;
  display: inline-block;
}

.footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #667eea;
  transition: width 0.3s ease;
}

.footer a:hover::after {
  width: 100%;
}

/* === ACCESSIBILITY FOCUS STYLES === */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
  .navbar,
  .footer,
  .offline-indicator,
  .notification,
  #progressSection,
  .action-row {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: black !important;
    box-shadow: none !important;
  }
}

/* === ENHANCED PROGRESS INDICATOR === */
.translation-progress {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  margin-top: 1.5rem;
}

.translation-progress.error {
  background: linear-gradient(135deg, #fef5f5 0%, #fed7d7 100%);
  border-color: #fed7d7;
}

.translation-progress.success {
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
  border-color: #c6f6d5;
}

/* Modern Spinner Animation */
.progress-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.spinner-ring {
  width: 100%;
  height: 100%;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.1);
}

.spinner-ring.error {
  border-top-color: #e53e3e;
}

.spinner-ring.success {
  border-top-color: #38a169;
  animation: spin-success 0.8s ease-in-out;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-success {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Success checkmark animation */
.success-checkmark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #38a169;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkmark-scale 0.6s ease-in-out;
  box-shadow: 0 4px 20px rgba(56, 161, 105, 0.3);
}

.success-checkmark::after {
  content: '✓';
  color: white;
  font-size: 2rem;
  font-weight: bold;
  animation: checkmark-appear 0.4s ease-in-out 0.2s both;
}

@keyframes checkmark-scale {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes checkmark-appear {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

/* Error icon animation */
.error-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e53e3e;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: error-shake 0.6s ease-in-out;
  box-shadow: 0 4px 20px rgba(229, 62, 62, 0.3);
}

.error-icon::after {
  content: '!';
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

@keyframes error-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Progress Status Text */
.progress-status {
  font-size: 1.1rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.progress-status.error {
  color: #c53030;
}

.progress-status.success {
  color: #2f855a;
}

/* Progress Details */
.progress-details {
  font-size: 0.9rem;
  color: #718096;
  margin-top: 0.5rem;
}

.progress-details.error {
  color: #9b2c2c;
}

.progress-details.success {
  color: #276749;
}

/* Polling Counter */
.polling-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 2rem;
  font-size: 0.8rem;
  color: #667eea;
  margin-top: 0.75rem;
}

.polling-counter::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #667eea;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* Progress Step Indicators */
.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  color: #718096;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: scale(1.05);
}

.progress-step.completed {
  background: #38a169;
  color: white;
  border-color: #38a169;
}

.progress-step.error {
  background: #e53e3e;
  color: white;
  border-color: #e53e3e;
}

.step-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* Responsive adjustments for progress indicator */
@media (max-width: 575.98px) {
  .translation-progress {
    padding: 1.5rem 1rem;
    margin-top: 1rem;
    border-radius: 0.75rem;
  }
  
  .progress-spinner {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }
  
  .success-checkmark,
  .error-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }
  
  .success-checkmark::after,
  .error-icon::after {
    font-size: 1.5rem;
  }
  
  .progress-status {
    font-size: 1rem;
  }
  
  .progress-steps {
    gap: 0.5rem;
    margin: 1rem 0;
  }
  
  .progress-step {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Fade transition for progress states */
.progress-transition {
  transition: all 0.4s ease-in-out;
  opacity: 1;
}

.progress-transition.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.progress-transition.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility - Screen reader only content */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* === BUTTON ICON ENHANCEMENTS === */
.btn i, button i {
  font-size: 1rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  line-height: 1;
}

.btn-primary i, .btn-success i {
  font-size: 1.1rem;
}

.btn .icon-fallback {
  font-size: 1rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  line-height: 1;
}

.btn-primary .icon-fallback, .btn-success .icon-fallback {
  font-size: 1.1rem;
}

/* === GENERAL === */
/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Selection colors */
::selection {
  background: #667eea;
  color: white;
}

::-moz-selection {
  background: #667eea;
  color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a67d8;
}

/* Contact Widget Styles */
.contact-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1040;
}

.contact-widget-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
  border: none;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-widget-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
  background: linear-gradient(135deg, #0073e6 0%, #0052b3 100%);
}

.contact-widget-btn:active {
  transform: translateY(0);
}

/* Payment Modal Styles */
#paymentModal .modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

#paymentModal .modal-header {
  background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
  color: white;
  border: none;
}

#paymentModal .modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

#paymentModal .modal-header .btn-close:hover {
  opacity: 1;
}

#paymentModal .fa-file-invoice-dollar {
  color: #0066cc;
  opacity: 0.9;
}

#stripeCheckoutBtn {
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#stripeCheckoutBtn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Contact Modal Styles */
#contactModal .modal-header {
  background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
  color: white;
  border: none;
}

#contactModal .modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

#contactModal .form-control:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

#contactModal textarea {
  resize: vertical;
  min-height: 100px;
}

/* Mobile adjustments for contact widget */
@media (max-width: 576px) {
  .contact-widget {
    bottom: 15px;
    right: 15px;
  }
  
  .contact-widget-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Pricing Info Styles */
.pricing-info {
  margin-top: 0.5rem;
}

.pricing-info .badge {
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  font-weight: 500;
}

.pricing-info small {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Pricing Card Styles */
.pricing-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.pricing-tier {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pricing-tier:hover {
  border-color: #0066cc;
  transform: scale(1.02);
}

.pricing-tier .display-6 {
  font-weight: 700;
  color: #0066cc;
}

.pricing-tier h4 {
  font-weight: 600;
}

.pricing-tier ul li {
  padding: 0.25rem 0;
}

/* Smooth scroll for pricing link */
html {
  scroll-behavior: smooth;
}

/* === ENHANCED ICON FALLBACK SYSTEM === */
/* Improved fallback icons with better visual design */
.icon-fallback {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Upload and file icons */
.icon-fallback-cloud-upload::before { 
  content: "⬆";
  background: #667eea;
  color: white;
  border-radius: 50%;
  padding: 0.2em;
  font-weight: bold;
}

.icon-fallback-file::before { 
  content: "📄";
  font-size: 0.9em;
}

.icon-fallback-download::before { 
  content: "⬇";
  background: #00C853;
  color: white;
  border-radius: 50%;
  padding: 0.2em;
  font-weight: bold;
}

.icon-fallback-upload::before { 
  content: "⬆";
  background: #667eea;
  color: white;
  border-radius: 50%;
  padding: 0.1em;
  font-size: 0.8em;
  font-weight: bold;
}

/* Status icons */
.icon-fallback-check::before { 
  content: "✓";
  color: #00C853;
  font-weight: bold;
}

.icon-fallback-times::before { 
  content: "✕";
  color: #E53935;
  font-weight: bold;
}

/* Notification icons */
.icon-fallback-info::before { 
  content: "ℹ";
  background: #2196F3;
  color: white;
  border-radius: 50%;
  padding: 0.2em;
  font-weight: bold;
  font-size: 0.8em;
}

.icon-fallback-warning::before { 
  content: "⚠";
  color: #FFA726;
  font-size: 0.9em;
}

.icon-fallback-error::before { 
  content: "✕";
  background: #E53935;
  color: white;
  border-radius: 50%;
  padding: 0.2em;
  font-weight: bold;
  font-size: 0.8em;
}

/* Communication icons */
.icon-fallback-envelope::before { 
  content: "✉";
  font-size: 0.9em;
}

.icon-fallback-paper-plane::before { 
  content: "➤";
  font-weight: bold;
}

.icon-fallback-comment-dots::before { 
  content: "💬";
  font-size: 0.9em;
}

/* Security and payment icons */
.icon-fallback-lock::before { 
  content: "🔒";
  font-size: 0.9em;
}

.icon-fallback-credit-card::before { 
  content: "💳";
  font-size: 0.9em;
}

.icon-fallback-file-invoice-dollar::before { 
  content: "💰";
  font-size: 0.9em;
}

/* Network status */
.icon-fallback-wifi-slash::before { 
  content: "📶";
  opacity: 0.5;
  text-decoration: line-through;
}

/* Enhanced styling for fallback mode */
.fa-fallback-mode .icon-fallback {
  vertical-align: middle;
  margin-right: 0.25em;
}

/* Specific adjustments for different contexts */
.upload-icon .icon-fallback-cloud-upload::before {
  content: "📁";
  font-size: 2rem;
  display: block;
  margin-bottom: 0.2em;
}

.upload-icon .icon-fallback-cloud-upload::after {
  content: "⬆";
  font-size: 1.5rem;
  background: #667eea;
  color: white;
  border-radius: 50%;
  padding: 0.1em 0.2em;
  position: relative;
  top: -0.5em;
  left: -0.2em;
}

.notification .icon-fallback {
  font-size: 1.2em;
  margin-right: 0.5em;
}

.btn .icon-fallback {
  margin-right: 0.5em;
  vertical-align: middle;
  font-size: 1em;
  line-height: 1;
}

/* Enhanced button icon styling */
.btn .fas, .btn .icon-fallback {
  margin-right: 0.5rem;
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
}

/* Specific button icon improvements */
.upload-btn-primary .fas,
.upload-btn-primary .icon-fallback {
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

#download-btn .fas,
#download-btn .icon-fallback {
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

/* Responsive icon sizing */
@media (max-width: 575.98px) {
  .upload-icon .icon-fallback-cloud-upload::before {
    font-size: 1.5rem;
  }
  
  .upload-icon .icon-fallback-cloud-upload::after {
    font-size: 1rem;
    top: -0.3em;
  }
} 