
* {
  outline: none;
}

*:focus {
  outline: none;
}

html {
  font-size: 13px; /* Scaled down for better responsiveness */
}

@media (max-width: 1200px) {
  html {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 10px;
  }
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background-image: url('../assets/FreentBG.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Light theme body */
[data-theme="light"] body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  background-attachment: fixed;
  color: #1a1a1a;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #191919;
  border-bottom: 1px solid #FFD700;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Let index.css handle the site-header layout */

/* Light theme header */
[data-theme="light"] .site-header {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .main-nav a {
  color: #374151 !important;
}

[data-theme="light"] .main-nav a:hover {
  background-color: #f3f4f6 !important;
  color: #f97316 !important;
}

.logo img {
  height: 90px;
  max-width: 100%;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0.2rem 5rem;
  margin: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.services-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #191919 0%, #2d2d2d 100%);
  padding: 0.5rem 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 2px solid #FFD700;
  z-index: 10;
  min-width: 220px;
  list-style: none;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dropdown-menu li::before {
  content: none !important;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: #FFD700;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: rgba(255, 215, 0, 0.1);
  padding-left: 1.5rem;
}

.dropdown-menu li a i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.search-form {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 30px;
  padding: 0.4rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 300px;
}

.search-wrapper {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #191919 0%, #2d2d2d 100%);
  border: 2px solid #FFD700;
  border-radius: 12px;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: none;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #FFD700;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(255, 215, 0, 0.1);
  padding-left: 1.25rem;
}

.suggestion-item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.suggestion-item .suggestion-text {
  flex: 1;
}

.suggestion-item .suggestion-category {
  font-size: 0.75rem;
  color: #aaa;
  background: rgba(255, 215, 0, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: 30px;
  border: none;
  font-size: 0.9rem;
  background-color: transparent;
  outline: none;
}

.search-input-wrapper input:focus {
  outline: none;
  box-shadow: none;
}

.search-form:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  transform: translateY(-50%);
  color: #888;
  font-size: 1rem;
  pointer-events: none;
}

.search-btn {
  padding: 0.69rem 1.6rem;
  border: none;
  border-radius: 30px;
  background-color: #FFD700;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  outline: none;
}

.search-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.search-btn:hover {
  background-color: #fff;
}

.nav-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.login-btn {
  background-color: #FFD700;
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-btn:hover {
  background-color: #fff;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  color: #fff;
  text-align: center;
  padding: 2rem;
  padding-bottom: 2rem;
  position: relative;
  width: 100%;
  margin-top: 0;
}

/* Light theme hero */
[data-theme="light"] .hero {
  color: #1a1a1a;
}

[data-theme="light"] .hero-title {
  color: #1a1a1a !important;
  text-shadow: none;
}

[data-theme="light"] .hero-subtext {
  color: #374151 !important;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: -5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.hero-subtext {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

.get-started {
  margin-top: 1.5rem;
  background-color: #fff;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.get-started:hover {
  transform: scale(1.05);
}

/* Light theme get-started button */
[data-theme="light"] .get-started {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
}

[data-theme="light"] .get-started:hover {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%) !important;
}

.advantages {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: -12rem;
  padding: 2rem 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 1s;
}

/* Light theme advantages */
[data-theme="light"] .advantages {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .advantage-item p {
  color: #374151 !important;
}

.advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFD700;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  max-width: 140px;
}

.advantage-item img {
  width: 70px;
  height: auto;
  margin-bottom: 0.8rem;
}

.services-section {
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
}

.services-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #FFD700;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-height: 220px;
}

.service-card.available {
  cursor: pointer;
}

.service-card.available:hover {
  transform: translateY(-8px);
  border-color: #FFD700;
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.4);
  background: rgba(26, 26, 26, 0.9);
}

.service-card.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.service-card.unavailable {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(70%);
  position: relative;
}

.service-card.unavailable:hover {
  transform: none;
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.service-card.unavailable i {
  color: #888;
}

.service-card.unavailable h3,
.service-card.unavailable p {
  color: #666;
}

.service-card i {
  font-size: 4rem;
  color: #FFD700;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin: 0.75rem 0 0.5rem;
  color: #fff;
  font-weight: 700;
}

.service-card p {
  color: #aaa;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Light mode services section */
[data-theme="light"] .services-section {
  color: #1a1a1a;
}

[data-theme="light"] .services-section h2 {
  color: #1a1a1a !important;
  text-shadow: none;
}

[data-theme="light"] .service-card {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(249, 115, 22, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .service-card.available:hover {
  border-color: #f97316 !important;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.25) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="light"] .service-card i {
  color: #f97316 !important;
}

[data-theme="light"] .service-card h3 {
  color: #1a1a1a !important;
}

[data-theme="light"] .service-card p {
  color: #6b7280 !important;
}

[data-theme="light"] .service-card.unavailable {
  opacity: 0.5;
  filter: grayscale(70%);
}

[data-theme="light"] .service-card.unavailable:hover {
  transform: none;
  border-color: rgba(249, 115, 22, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .service-card.unavailable i {
  color: #9ca3af !important;
}

[data-theme="light"] .service-card.unavailable h3,
[data-theme="light"] .service-card.unavailable p {
  color: #9ca3af !important;
}

[data-theme="light"] .unavailable-badge {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
}

[data-theme="light"] .available-badge {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

/* Light mode dropdown menu */
[data-theme="light"] .dropdown-menu {
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .dropdown-menu li a {
  color: #374151 !important;
}

[data-theme="light"] .dropdown-menu li a:hover {
  background: #f3f4f6 !important;
  color: #f97316 !important;
}

[data-theme="light"] .dropdown-menu li a i {
  color: #f97316 !important;
}

/* Light theme search suggestions */
[data-theme="light"] .search-suggestions {
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .suggestion-item {
  color: #374151 !important;
  border-bottom-color: #f0f0f0 !important;
}

[data-theme="light"] .suggestion-item:hover {
  background: #f8f8f8 !important;
  color: #f97316 !important;
}

[data-theme="light"] .suggestion-item i {
  color: #f97316 !important;
}

[data-theme="light"] .suggestion-category {
  color: #6b7280 !important;
  background: rgba(249, 115, 22, 0.1) !important;
}

/* Light theme search form */
[data-theme="light"] .search-form {
  background-color: #f3f4f6 !important;
}

[data-theme="light"] .search-input-wrapper input {
  color: #374151 !important;
}

[data-theme="light"] .search-input-wrapper input::placeholder {
  color: #9ca3af !important;
}

[data-theme="light"] .search-icon {
  color: #6b7280 !important;
}

/* Light theme profile dropdown */
[data-theme="light"] .profile-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
}

[data-theme="light"] .profile-dropdown {
  background: #ffffff !important;
  border-color: #f97316 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .profile-dropdown-item {
  color: #1a1a1a !important;
}

[data-theme="light"] .profile-dropdown-item:hover {
  background: rgba(249, 115, 22, 0.1) !important;
}

[data-theme="light"] .profile-dropdown-item i {
  color: #f97316 !important;
}

/* Light theme theme toggle */
[data-theme="light"] .theme-toggle {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .theme-toggle:hover {
  border-color: #f97316 !important;
  background: #fef3c7 !important;
}

[data-theme="light"] .theme-toggle i {
  color: #f97316 !important;
}

/* Fix profile dropdown positioning and sizing */
.profile-dropdown-container {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  white-space: nowrap;
  min-width: 120px;
}

.profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.profile-btn i:last-child {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.profile-dropdown.active .profile-btn i:last-child {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #FFD700;
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
  
  /* Prevent dropdown from going off-screen */
  max-width: calc(100vw - 4rem);
}

/* Ensure dropdown doesn't overflow on the right */
@media (max-width: 1024px) {
  .profile-dropdown {
    right: -1rem;
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .profile-dropdown {
    right: -1.5rem;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .profile-dropdown {
    right: -2rem;
    min-width: 140px;
  }
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.profile-dropdown-item:hover {
  background: rgba(255, 215, 0, 0.1);
  padding-left: 1.5rem;
}

.profile-dropdown-item i {
  color: #FFD700;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.profile-dropdown-divider {
  height: 1px;
  background: rgba(255, 215, 0, 0.2);
  margin: 0.5rem 0;
}

.profile-dropdown-item.logout-item {
  color: #ef4444;
}

.profile-dropdown-item.logout-item i {
  color: #ef4444;
}

.profile-dropdown-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Ensure header actions don't overflow */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  position: relative;
  min-width: 0;
  padding-right: 1rem; /* Add padding to prevent edge overlap */
}

/* Ensure profile dropdown container doesn't cause overflow */
.profile-dropdown-container {
  position: relative;
  min-width: 0;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: 100px;
  }
  
  .profile-dropdown {
    min-width: 180px;
    right: -10px;
  }
}

.available-badge {
  display: inline-block;
  background-color: #4CAF50;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.coming-soon-badge {
  display: inline-block;
  background-color: #FF6B6B;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.unavailable-badge {
  display: inline-block;
  background-color: #dc2626;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.samples {
  padding: 4rem 2rem;
  color: #fff;
  text-align: center;
}

.samples h2,
.samples h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.sample-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sample-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.view-services-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}

.view-services {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border: none;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.view-services:hover {
  transform: scale(1.05);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  overflow: hidden; /* Prevent scrollbars when preview slides in */
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 800px; /* Reduced from 1200px to prevent horizontal overflow */
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid #FFD700;
  animation: slideUp 0.3s ease;
}

/* Fix select dropdown readability */
.modal select,
.modal select option {
  background: #1a1a1a !important;
  color: #fff !important;
}

.modal select {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

.modal select option {
  padding: 0.5rem;
}

.modal select option:hover,
.modal select option:checked {
  background: #2d2d2d !important;
  color: #FFD700 !important;
}

@media (max-width: 768px) {
  .modal {
    width: 95%;
    padding: 1.5rem;
    max-width: 100%;

  }
}
.modal::-webkit-scrollbar {
  width: 8px;
}

.modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb {
  background: #FFD700;
  border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: #FFA500;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 1rem;
}

.modal-header h2 {
  margin: 0;
  color: #FFD700;
  font-size: 1.8rem;
}

.modal-header i {
  margin-right: 0.5rem;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close-btn:hover {
  color: #FFD700;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #FFD700;
  font-weight: 600;
}

.file-upload-area {
  border: 2px dashed #FFD700;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255, 215, 0, 0.05);
}

.file-upload-area:hover {
  background-color: rgba(255, 215, 0, 0.15);
  border-color: #fff;
}

.file-upload-area i {
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 0.5rem;
  display: block;
}

.file-upload-area p {
  margin: 0.5rem 0;
  color: #fff;
}

.file-upload-area small {
  color: #aaa;
}

input[type="file"] {
  display: none;
}

select, input[type="number"] {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #FFD700;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 1rem;
}

.price-display {
  background-color: rgba(255, 215, 0, 0.1);
  border: 2px solid #FFD700;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin: 1.5rem 0;
}

.price-display .label {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.price-display .amount {
  color: #FFD700;
  font-size: 2rem;
  font-weight: bold;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background-color: #FFD700;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #fff;
  transform: scale(1.02);
}

.submit-btn:disabled {
  background-color: #666;
  cursor: not-allowed;
  transform: scale(1);
  opacity: 0.5;
}

.file-info {
  margin-top: 1rem;
  padding: 0.8rem;
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: 6px;
  color: #FFD700;
  font-size: 0.9rem;
  border: 1px solid #FFD700;
}

/* Uploaded Files List */
.uploaded-files-list {
  margin-top: 1rem;
  max-height: 300px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.file-item:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: #FFD700;
}

.file-item i.fas {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.file-item-size {
  font-size: 0.85rem;
  opacity: 0.8;
  color: #ddd;
}

.file-remove-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.file-remove-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.file-remove-btn i {
  font-size: 0.9rem;
}

/* File type specific styles */
.file-item.clickable {
  cursor: pointer;
}

.file-item .fa-file-pdf {
  color: #FFD700;
}

.file-item .fa-file-word {
  color: #2B579A;
}

.file-item .fa-file-image {
  color: #4F46E5;
}

.file-item .fa-file {
  color: #aaa;
}

.file-item-name.pdf-file {
  color: #FFD700;
}

.file-item-name.docx-file {
  color: #2B579A;
}

.file-item-name .preview-icon {
  font-size: 0.75rem;
  margin-left: 0.5rem;
  opacity: 0.7;
}

/* Size Selection Container */
.size-selection-container {
  margin-top: 1rem;
  padding: 1.25rem;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 12px;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.size-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.size-item:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.4);
}

.size-item select {
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.size-item select:hover {
  border-color: #FFD700;
  background: rgba(0, 0, 0, 0.5);
}

.size-item select:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.size-item select option {
  background: #1a1a1a;
  color: #fff;
  padding: 0.5rem;
}

.size-item input {
  width: 90px;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  outline: none;
}

.size-item input:hover {
  border-color: #FFD700;
  background: rgba(0, 0, 0, 0.5);
}

.size-item input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.add-size-btn {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-size-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.add-size-btn i {
  font-size: 0.9rem;
}

.remove-size-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.remove-size-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.remove-size-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.remove-size-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.remove-size-btn i {
  font-size: 0.8rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.payment-option {
  border: 2px solid #333;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
}

.payment-option:hover {
  border-color: #FFD700;
  background-color: rgba(255, 215, 0, 0.1);
}

.payment-option.selected {
  border-color: #FFD700;
  background-color: rgba(255, 215, 0, 0.2);
}

.payment-option i {
  font-size: 2rem;
  color: #FFD700;
  margin-bottom: 0.5rem;
  display: block;
}

.payment-option p {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.site-footer {
  background-color: #111;
  color: #fff;
  padding: 2rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 80px;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-weight: 600;
  line-height: 1.4;
}

.footer-links a {
  display: block;
  color: #FFD700;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-contact p {
  margin: 0.3rem 0;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #aaa;
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .nav-wrapper {
    display: none !important;
    width: 100%;
    order: 10;
    flex-basis: 100%;
  }

  .site-header.nav-open .nav-wrapper {
    display: block !important;
  }

  .login-btn {
    order: 3;
  }

  .main-nav {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 !important;
    list-style: none;
  }

  .search-form {
    max-width: 100%;
  }

  .logo img {
    height: 50px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtext {
    font-size: 1.2rem;
  }

  .advantages {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .sample-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.5rem 0.75rem;
  }

  .logo img {
    height: 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .get-started {
    width: 100%;
    text-align: center;
  }

  .advantage-item img {
    width: 50px;
  }

  .sample-gallery {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 1.5rem;
  }

  .search-form {
    max-width: 100%;
  }
}

/* User Indicator & Header Actions */
.user-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFD700;
  font-weight: 600;
  margin-right: 1rem;
}

.user-indicator i {
  font-size: 1.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
}

.account-btn {
  background-color: #FFD700;
  color: #000000;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.account-btn:hover {
  background-color: #FFD700;
  transform: translateY(-2px);
}

.account-btn i {
  font-size: 1rem;
}

/* 3D Designer Modal Styles */
.designer-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.designer-modal-overlay.active {
  display: flex;
}

.designer-modal-content {
  width: 95%;
  height: 95%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Designer modal header removed */

.designer-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Choice Modal Styles */
.designer-choice-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.designer-choice-btn {
  flex: 1;
  padding: 1.5rem;
  border: 2px solid #FFD700;
  background: rgba(255, 215, 0, 0.1);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
}

.designer-choice-btn:hover {
  background: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.designer-choice-btn i {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  color: #FFD700;
}

.designer-choice-btn small {
  display: block;
  margin-top: 0.5rem;
  opacity: 0.8;
  font-size: 0.9rem;
}


/* Payment option disabled state */
.payment-option.disabled,
.payment-option-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  position: relative;
}

.payment-option.disabled::after,
.payment-option-disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  pointer-events: none;
}

.payment-option.disabled:hover,
.payment-option-disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Address option styles */
.address-option {
  transition: all 0.3s ease;
}

.address-option:hover {
  background: rgba(255, 215, 0, 0.1) !important;
  border-color: rgba(255, 215, 0, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.address-option input[type="radio"]:checked + div {
  color: #FFD700;
}

.address-option:has(input[type="radio"]:checked) {
  background: rgba(255, 215, 0, 0.15) !important;
  border-color: #FFD700 !important;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

/* Edit Address Button */
button[onclick="openEditAddress()"] {
  transition: all 0.3s ease;
}

button[onclick="openEditAddress()"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}

button[onclick="openEditAddress()"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

/* Light theme address options */
[data-theme="light"] .address-option {
  background: rgba(249, 115, 22, 0.05) !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
}

[data-theme="light"] .address-option:hover {
  background: rgba(249, 115, 22, 0.1) !important;
  border-color: rgba(249, 115, 22, 0.5) !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

[data-theme="light"] .address-option:has(input[type="radio"]:checked) {
  background: rgba(249, 115, 22, 0.15) !important;
  border-color: #f97316 !important;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

[data-theme="light"] button[onclick="openEditAddress()"] {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

[data-theme="light"] button[onclick="openEditAddress()"]:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
}


/* PDF Viewer Panel */
.pdf-viewer-panel {
  position: absolute;
  right: -600px;
  top: 0;
  width: 550px;
  height: 100%;
  background: #1a1a2e;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  display: flex;
  flex-direction: column;
  visibility: visible;
}

.pdf-viewer-panel.active {
  right: 0;
}

.modal-overlay.has-viewer .modal {
  transform: translateX(-275px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdf-viewer-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #FFD700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 215, 0, 0.5);
}

.pdf-viewer-header h3 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-viewer-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-viewer-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.pdf-viewer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1rem;
}

.pdf-page-info {
  text-align: center;
  padding: 0.75rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 1rem;
  color: #FFD700;
  font-weight: 600;
  font-size: 1rem;
}

.pdf-canvas-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a3e;
  border-radius: 12px;
  overflow: auto;
  padding: 1rem;
  margin-bottom: 1rem;
}

#pdfCanvas {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

/* DOCX Content Styles */
#docxContent {
  background: #fff;
  padding: 3rem;
  min-height: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  color: #000;
  font-family: 'Calibri', 'Arial', sans-serif;
  font-size: 11pt;
  line-height: 1.5;
  max-width: 8.5in;
  margin: 0 auto;
}

#docxContent h1 {
  font-size: 18pt;
  font-weight: bold;
  margin: 1em 0 0.5em 0;
  color: #000;
}

#docxContent h2 {
  font-size: 16pt;
  font-weight: bold;
  margin: 1em 0 0.5em 0;
  color: #000;
}

#docxContent h3 {
  font-size: 14pt;
  font-weight: bold;
  margin: 1em 0 0.5em 0;
  color: #000;
}

#docxContent p {
  margin: 0 0 0.5em 0;
  text-align: justify;
  color: #000;
}

#docxContent ul, #docxContent ol {
  margin: 0.5em 0;
  padding-left: 2em;
  color: #000;
}

#docxContent li {
  margin: 0.25em 0;
  color: #000;
}

#docxContent strong {
  font-weight: bold;
}

#docxContent em {
  font-style: italic;
}

#docxContent table {
  border-collapse: collapse;
  margin: 1em 0;
  width: 100%;
}

#docxContent table td, #docxContent table th {
  border: 1px solid #ddd;
  padding: 0.5em;
  color: #000;
}

#docxContent img {
  max-width: 100%;
  height: auto;
}

.pdf-viewer-controls {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 12px;
}

.pdf-nav-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pdf-nav-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
  background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.pdf-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #555;
}

.pdf-nav-btn i {
  font-size: 0.875rem;
}

/* Loading state */
.pdf-canvas-container.loading::after {
  content: 'Loading PDF...';
  position: absolute;
  color: #FFD700;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 1400px) {
  .pdf-viewer-panel {
    width: 450px;
    right: -450px;
  }
  
  .modal-overlay.has-viewer .modal {
    transform: translateX(-225px);
  }
}

@media (max-width: 1200px) {
  .pdf-viewer-panel {
    width: 100%;
    right: -100%;
  }
  
  .modal-overlay.has-viewer .modal {
    transform: translateX(0);
    width: 100%;
    max-width: 100%;
  }

  .modal-overlay.has-viewer {
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .pdf-viewer-panel {
    width: 100%;
  }

  .pdf-viewer-header {
    padding: 1rem;
  }

  .pdf-viewer-header h3 {
    font-size: 1.1rem;
  }

  .pdf-viewer-controls {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pdf-nav-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pdf-viewer-header {
    padding: 0.75rem;
  }

  .pdf-viewer-content {
    padding: 0.75rem;
  }

  .pdf-page-info {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .pdf-nav-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}


/* ========== MOBILE RESPONSIVE ========== */

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-card i {
    font-size: 2rem;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .service-card {
    padding: 1.25rem 0.75rem;
  }

  .service-card i {
    font-size: 1.75rem;
  }

  .service-card h3 {
    font-size: 0.95rem;
  }

  .service-card p {
    font-size: 0.8rem;
  }

  .available-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}


/* Ensure service cards are visible - CRITICAL FIX */
.services-section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}

.services-section h2 {
  display: block !important;
  visibility: visible !important;
  color: #ffffff !important;
  font-size: 2.5rem !important;
  margin-bottom: 3rem !important;
  text-align: center !important;
}

.services-grid {
  display: grid !important;
  visibility: visible !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 2rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.service-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 250px !important;
  background-color: rgba(26, 26, 26, 0.6) !important;
  border-radius: 12px !important;
  padding: 2.5rem 2rem !important;
  text-align: center !important;
  border: 1px solid rgba(255, 215, 0, 0.2) !important;
  position: relative !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
}

.service-card * {
  visibility: visible !important;
  opacity: 1 !important;
}

.service-card i {
  display: block !important;
  font-size: 3.5rem !important;
  color: #FFD700 !important;
  margin-bottom: 1.5rem !important;
}

.service-card h3 {
  display: block !important;
  font-size: 1.5rem !important;
  margin: 1rem 0 !important;
  color: #fff !important;
}

.service-card p {
  display: block !important;
  color: #aaa !important;
  font-size: 0.95rem !important;
  margin-bottom: 1rem !important;
}

.available-badge {
  display: inline-block !important;
  background-color: #4CAF50 !important;
  color: #fff !important;
  padding: 0.4rem 1rem !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: bold !important;
}


/* Two-column layout for design instructions and payment options */
.modal-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Ensure columns don't get too narrow */
@media (max-width: 900px) {
  .modal-two-column {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.modal-column {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevent flex items from overflowing */
  overflow: hidden; /* Prevent content overflow */
}

.modal-column .form-group {
  margin-bottom: 1rem;
}

.modal-column textarea {
  width: 100%;
  min-height: 120px;
  max-height: 180px;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #FFD700;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box; /* Include padding in width calculation */
}

.modal-column textarea::placeholder {
  color: #888;
}

.modal-column .price-display {
  margin: 0;
  padding: 0.75rem;
}

.modal-column .price-display .amount {
  font-size: 1.5rem;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .modal-two-column {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modal-column textarea {
    min-height: 120px;
  }
}

/* Softer service card hover effect */
.service-card.available:hover {
  transform: translateY(-4px) !important;
  border-color: #FFD700 !important;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.25) !important;
  background-color: rgba(26, 26, 26, 0.8) !important;
}

/* ========== LIGHT THEME MODAL SUPPORT ========== */

/* Modal overlay and container */
[data-theme="light"] .modal-overlay {
  background-color: rgba(0, 0, 0, 0.7) !important;
}

[data-theme="light"] .modal {
  background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
  border: 2px solid #f97316 !important;
  color: #1a1a1a !important;
}

/* Modal header */
[data-theme="light"] .modal-header h2 {
  color: #f97316 !important;
}

[data-theme="light"] .close-btn {
  color: #374151 !important;
}

[data-theme="light"] .close-btn:hover {
  color: #f97316 !important;
}

/* Form elements */
[data-theme="light"] .form-group label {
  color: #374151 !important;
}

[data-theme="light"] .file-upload-area {
  border-color: #f97316 !important;
  background-color: rgba(249, 115, 22, 0.05) !important;
}

[data-theme="light"] .file-upload-area:hover {
  background-color: rgba(249, 115, 22, 0.15) !important;
  border-color: #ea580c !important;
}

[data-theme="light"] .file-upload-area i {
  color: #f97316 !important;
}

[data-theme="light"] .file-upload-area p {
  color: #374151 !important;
}

[data-theme="light"] .file-upload-area small {
  color: #6b7280 !important;
}

/* Select and input elements */
[data-theme="light"] select,
[data-theme="light"] input[type="number"] {
  background-color: #f8fafc !important;
  color: #374151 !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] select:focus,
[data-theme="light"] input[type="number"]:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2) !important;
}

[data-theme="light"] select option {
  background: #ffffff !important;
  color: #374151 !important;
}

/* Price display */
[data-theme="light"] .price-display {
  background-color: rgba(249, 115, 22, 0.1) !important;
  border-color: #f97316 !important;
}

[data-theme="light"] .price-display .label {
  color: #6b7280 !important;
}

[data-theme="light"] .price-display .amount {
  color: #f97316 !important;
}

/* File info and uploaded files */
[data-theme="light"] .file-info {
  background-color: rgba(249, 115, 22, 0.1) !important;
  border-color: #f97316 !important;
  color: #f97316 !important;
}

[data-theme="light"] .file-item {
  background: rgba(249, 115, 22, 0.1) !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
  color: #374151 !important;
}

[data-theme="light"] .file-item:hover {
  background: rgba(249, 115, 22, 0.15) !important;
  border-color: #f97316 !important;
}

[data-theme="light"] .file-item-name {
  color: #374151 !important;
}

[data-theme="light"] .file-item-size {
  color: #6b7280 !important;
}

/* Size selection */
[data-theme="light"] .size-selection-container {
  background: rgba(249, 115, 22, 0.05) !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
}

[data-theme="light"] .size-item {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(249, 115, 22, 0.2) !important;
}

[data-theme="light"] .size-item:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
}

[data-theme="light"] .size-item select {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #374151 !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
}

[data-theme="light"] .size-item select:hover,
[data-theme="light"] .size-item select:focus {
  border-color: #f97316 !important;
  background: #ffffff !important;
}

[data-theme="light"] .size-item input {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #374151 !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
}

[data-theme="light"] .size-item input:hover,
[data-theme="light"] .size-item input:focus {
  border-color: #f97316 !important;
  background: #ffffff !important;
}

/* Payment options */
[data-theme="light"] .payment-option {
  border-color: #e2e8f0 !important;
  background-color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .payment-option:hover {
  border-color: #f97316 !important;
  background-color: rgba(249, 115, 22, 0.1) !important;
}

[data-theme="light"] .payment-option.selected {
  border-color: #f97316 !important;
  background-color: rgba(249, 115, 22, 0.2) !important;
}

[data-theme="light"] .payment-option i {
  color: #f97316 !important;
}

[data-theme="light"] .payment-option p {
  color: #374151 !important;
}

/* Designer choice buttons */
[data-theme="light"] .designer-choice-btn {
  border-color: #f97316 !important;
  background: rgba(249, 115, 22, 0.1) !important;
  color: #374151 !important;
}

[data-theme="light"] .designer-choice-btn:hover {
  background: rgba(249, 115, 22, 0.2) !important;
}

[data-theme="light"] .designer-choice-btn i {
  color: #f97316 !important;
}

/* Modal column textarea */
[data-theme="light"] .modal-column textarea {
  background-color: #f8fafc !important;
  color: #374151 !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .modal-column textarea:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2) !important;
}

[data-theme="light"] .modal-column textarea::placeholder {
  color: #9ca3af !important;
}

/* ========== FORCE BLACK TEXT IN LIGHT MODE MODALS ========== */

/* Override all text colors in light mode modals to ensure visibility */
[data-theme="light"] .modal * {
  color: #000000 !important;
}

/* Specific overrides for elements that should keep their accent colors */
[data-theme="light"] .modal-header h2 {
  color: #f97316 !important;
}

[data-theme="light"] .modal .close-btn {
  color: #374151 !important;
}

[data-theme="light"] .modal .close-btn:hover {
  color: #f97316 !important;
}

[data-theme="light"] .modal .form-group label {
  color: #000000 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .modal .file-upload-area i {
  color: #f97316 !important;
}

[data-theme="light"] .modal .price-display .amount {
  color: #f97316 !important;
}

[data-theme="light"] .modal .payment-option i {
  color: #f97316 !important;
}

[data-theme="light"] .modal .designer-choice-btn i {
  color: #f97316 !important;
}

/* Ensure buttons keep proper colors */
[data-theme="light"] .modal .submit-btn {
  background-color: #f97316 !important;
  color: #ffffff !important;
}

[data-theme="light"] .modal .add-size-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
}

[data-theme="light"] .modal .file-remove-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
}

[data-theme="light"] .modal .remove-size-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
}


/* Address Select Dropdown Styling */
#addressSelect {
  background: #1a1a1a !important;
  color: #fff !important;
  border: 1px solid #FFD700 !important;
  padding: 0.75rem !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
}

#addressSelect option {
  background: #1a1a1a !important;
  color: #fff !important;
  padding: 0.5rem !important;
}

#addressSelect option:hover {
  background: #2a2a2a !important;
}

/* Light theme address select */
[data-theme="light"] #addressSelect {
  background: #ffffff !important;
  color: #374151 !important;
  border-color: #f97316 !important;
}

[data-theme="light"] #addressSelect option {
  background: #ffffff !important;
  color: #374151 !important;
}


/* ========== LIGHT MODE ADJUSTMENTS ========== */

/* Modal content in light mode */
[data-theme="light"] .modal-content {
  background: #ffffff !important;
  color: #1a1a1a !important;
}

/* Modal headers in light mode */
[data-theme="light"] .modal-header {
  border-bottom-color: rgba(249, 115, 22, 0.3) !important;
}

[data-theme="light"] .modal-header h2,
[data-theme="light"] .modal-header h3 {
  color: #f97316 !important;
}

/* Form labels in light mode */
[data-theme="light"] .form-group label {
  color: #f97316 !important;
}

[data-theme="light"] .form-group label span {
  color: #6b7280 !important;
}

/* Input fields in light mode */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="time"],
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: rgba(249, 115, 22, 0.05) !important;
  border-color: #f97316 !important;
  color: #1a1a1a !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #9ca3af !important;
}

/* File upload area in light mode */
[data-theme="light"] .file-upload-area {
  background: rgba(249, 115, 22, 0.05) !important;
  border-color: #f97316 !important;
  color: #1a1a1a !important;
}

[data-theme="light"] .file-upload-area i {
  color: #f97316 !important;
}

[data-theme="light"] .file-upload-area small {
  color: #6b7280 !important;
}

/* Buttons in light mode */
[data-theme="light"] button[type="submit"],
[data-theme="light"] .submit-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
}

[data-theme="light"] button[type="button"] {
  border-color: #f97316 !important;
}

/* Payment buttons in light mode */
[data-theme="light"] .payment-option-btn.active {
  background: rgba(249, 115, 22, 0.2) !important;
  border-color: #f97316 !important;
  color: #f97316 !important;
}

[data-theme="light"] .payment-option-btn:not(.active):not(.disabled) {
  background: rgba(249, 115, 22, 0.05) !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
  color: #374151 !important;
}

[data-theme="light"] .payment-option-btn.disabled {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #9ca3af !important;
}

/* Design instructions box in light mode */
[data-theme="light"] .modal-two-column .modal-column .form-group {
  background: rgba(249, 115, 22, 0.05) !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
}

[data-theme="light"] .modal-two-column textarea {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(249, 115, 22, 0.4) !important;
}

/* Tips and info boxes in light mode */
[data-theme="light"] .form-group small,
[data-theme="light"] .form-group div[style*="background: rgba(255, 215, 0, 0.1)"] {
  background: rgba(249, 115, 22, 0.1) !important;
  color: #374151 !important;
}

[data-theme="light"] .form-group i.fa-lightbulb,
[data-theme="light"] .form-group i.fa-info-circle {
  color: #f97316 !important;
}

[data-theme="light"] .form-group strong {
  color: #f97316 !important;
}

/* Selected payment display in light mode */
[data-theme="light"] #selectedPaymentDisplay {
  color: #f97316 !important;
}

/* Address preview in light mode */
[data-theme="light"] #selectedAddressPreview {
  background: rgba(249, 115, 22, 0.1) !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
}

[data-theme="light"] #addressLabel {
  color: #f97316 !important;
}

[data-theme="light"] #addressDetails {
  color: #374151 !important;
}

/* Rush order section in light mode */
[data-theme="light"] #rushOrderContainer {
  background: rgba(249, 115, 22, 0.05) !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
}

[data-theme="light"] #rushOrderContainer label {
  color: #f97316 !important;
}

/* Price display in light mode */
[data-theme="light"] .price-display,
[data-theme="light"] #totalPrice {
  color: #f97316 !important;
}

/* Address edit modal in light mode */
[data-theme="light"] #addressEditModal .modal-content {
  background: #ffffff !important;
  border-color: #f97316 !important;
}

[data-theme="light"] #addressEditModal input,
[data-theme="light"] #addressEditModal textarea {
  background: rgba(249, 115, 22, 0.05) !important;
  border-color: #f97316 !important;
  color: #1a1a1a !important;
}

/* Address confirm modal in light mode */
[data-theme="light"] #addressConfirmModal .modal-content,
[data-theme="light"] #addressConfirmModal > div > div {
  background: #ffffff !important;
  border-color: #f97316 !important;
  color: #1a1a1a !important;
}

[data-theme="light"] #addressConfirmModal h3 {
  color: #f97316 !important;
}

[data-theme="light"] #addressConfirmModal p {
  color: #374151 !important;
}

[data-theme="light"] #addressConfirmOption2 {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
}

/* Uploaded files list in light mode */
[data-theme="light"] .uploaded-files-list {
  background: rgba(249, 115, 22, 0.05) !important;
  border-color: rgba(249, 115, 22, 0.2) !important;
}

[data-theme="light"] .uploaded-files-list .file-item {
  background: #ffffff !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
  color: #1a1a1a !important;
}

/* Modal overlay adjustments */
[data-theme="light"] .modal-overlay {
  background: rgba(0, 0, 0, 0.6) !important;
}


/* Place Order button in light mode - stronger visibility */
[data-theme="light"] .place-order-btn,
[data-theme="light"] button[onclick*="placeOrder"],
[data-theme="light"] .submit-order-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 2px solid #ea580c !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4) !important;
}

[data-theme="light"] .place-order-btn:hover,
[data-theme="light"] button[onclick*="placeOrder"]:hover,
[data-theme="light"] .submit-order-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.5) !important;
  transform: translateY(-1px);
}


/* Rush Order Toggle Switch - Light Mode Enhancement */
[data-theme="light"] .rush-toggle {
  background: #9ca3af !important;
  border: 2px solid #6b7280 !important;
}

[data-theme="light"] .rush-toggle.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #ea580c !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3) !important;
}

[data-theme="light"] .rush-toggle-slider {
  background: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid #d1d5db !important;
}

[data-theme="light"] .rush-toggle.active .rush-toggle-slider {
  background: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* Rush order label text in light mode */
[data-theme="light"] .rush-order-label {
  color: #374151 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .rush-order-label i {
  color: #f97316 !important;
}


/* Rush Order Toggle Switch - Correct Class Names for Light Mode */
[data-theme="light"] .rush-toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

[data-theme="light"] .rush-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

[data-theme="light"] .rush-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #9ca3af !important;
  border: 2px solid #6b7280 !important;
  transition: 0.3s;
  border-radius: 30px;
}

[data-theme="light"] .rush-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 2px;
  background-color: #6b7280 !important;
  border: 1px solid #4b5563 !important;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .rush-toggle-switch input:checked + .rush-toggle-slider {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  border-color: #ea580c !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3) !important;
}

[data-theme="light"] .rush-toggle-switch input:checked + .rush-toggle-slider:before {
  transform: translateX(28px);
  background-color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

/* Rush order section background in light mode */
[data-theme="light"] .rush-order-section {
  background: rgba(249, 115, 22, 0.05) !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
}

[data-theme="light"] .rush-order-section label span {
  color: #f97316 !important;
}

[data-theme="light"] .rush-order-section i.fa-bolt {
  color: #f97316 !important;
}

/* Maintenance Badge Styling */
.maintenance-badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.service-card.maintenance {
  border-color: #fca5a5 !important;
  cursor: not-allowed !important;
}

.service-card.maintenance:hover {
  transform: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}


/* ========== SUBMIT BUTTONS CONTAINER ========== */
.submit-buttons-container {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.save-order-btn {
  flex: 1;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.save-order-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.save-order-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.submit-btn {
  flex: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Saved Orders Badge */
.saved-orders-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: auto;
}

/* Profile Dropdown Improvements */
.profile-dropdown {
  min-width: 220px;
  padding: 0.5rem 0;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  font-size: 0.95rem;
  position: relative;
}

.profile-dropdown-item i {
  width: 20px;
  font-size: 1rem;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  z-index: 10000;
  animation: slideInRight 0.3s ease-out, slideOutRight 0.3s ease-in 2.7s;
  animation-fill-mode: forwards;
}

.toast-notification i {
  font-size: 1.25rem;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .submit-buttons-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .save-order-btn,
  .submit-btn {
    flex: 1;
    width: 100%;
  }
  
  .toast-notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    font-size: 0.9rem;
  }
}


/* ========== PDF/FILE PREVIEW PANEL THEME SUPPORT ========== */
.pdf-viewer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 40%;
  height: 100vh;
  background: var(--bg-primary);
  border-left: 2px solid var(--border-color);
  box-shadow: -4px 0 24px var(--shadow);
  z-index: 9999; /* Lower than modal overlay (10000) */
  display: none;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.pdf-viewer-panel.active {
  display: flex;
  transform: translateX(0);
}

.pdf-viewer-header {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdf-viewer-header h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdf-viewer-header h3 i {
  color: var(--accent-primary);
}

.close-viewer-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.close-viewer-btn:hover {
  background: var(--bg-hover);
  color: var(--accent-primary);
}

.pdf-viewer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

.pdf-page-info {
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pdf-canvas-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 2rem;
  /* Light grey background for better image visibility */
  background: #e5e7eb;
}

/* Dark theme - slightly lighter grey */
[data-theme="dark"] .pdf-canvas-container {
  background: #374151;
}

/* Light theme - light grey */
[data-theme="light"] .pdf-canvas-container {
  background: #e5e7eb;
}

/* Material theme - blue-grey */
[data-theme="material"] .pdf-canvas-container {
  background: #546e7a;
}

.pdf-canvas-container canvas {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  background: white; /* White background for the actual image/document */
}

.pdf-viewer-controls {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  justify-content: center;
}

.pdf-nav-btn {
  padding: 0.75rem 1.5rem;
  background: var(--accent-primary);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdf-nav-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.pdf-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-hover);
  color: var(--text-muted);
}

/* Adjust modal position when preview is open */
.modal-overlay.preview-open .modal {
  margin-right: 40%;
  max-width: 55%;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .pdf-viewer-panel {
    width: 45%;
  }
  
  .modal-overlay.preview-open .modal {
    margin-right: 45%;
    max-width: 50%;
  }
}

@media (max-width: 1024px) {
  .pdf-viewer-panel {
    width: 50%;
  }
  
  .modal-overlay.preview-open .modal {
    margin-right: 50%;
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .pdf-viewer-panel {
    width: 100%;
    z-index: 10002; /* Above modal on mobile */
  }
  
  .modal-overlay.preview-open .modal {
    margin-right: 0;
    max-width: 600px;
  }
}


/* ========== MATERIAL THEME - RUSH ORDER SUPPORT ========== */

/* Material Theme - Rush Order Container */
[data-theme="material"] #rushOrderContainer {
  background: rgba(100, 181, 246, 0.08) !important;
  border-color: rgba(100, 181, 246, 0.3) !important;
}

/* Material Theme - Rush Order Toggle */
[data-theme="material"] .rush-toggle {
  background: var(--bg-secondary) !important;
}

[data-theme="material"] .rush-toggle.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%) !important;
}

[data-theme="material"] .rush-toggle-switch {
  background: var(--bg-secondary);
}

[data-theme="material"] .rush-toggle-switch.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

/* Material Theme - Rush Order Label */
[data-theme="material"] .rush-order-label {
  color: var(--text-primary) !important;
}

[data-theme="material"] .rush-order-label i {
  color: var(--accent-primary) !important;
}

/* Material Theme - Rush Order Section */
[data-theme="material"] .rush-order-section {
  background: rgba(100, 181, 246, 0.08) !important;
  border-color: rgba(100, 181, 246, 0.3) !important;
}

[data-theme="material"] .rush-order-section label span {
  color: var(--accent-primary) !important;
}

[data-theme="material"] .rush-order-section i.fa-bolt {
  color: var(--accent-primary) !important;
}

/* Material Theme - Rush Order Description */
[data-theme="material"] .rush-description {
  color: var(--text-secondary) !important;
}

/* Material Theme - Rush Fee Display in Services */
[data-theme="material"] .rush-fee-display {
  background: rgba(100, 181, 246, 0.12) !important;
  border: 1px solid rgba(100, 181, 246, 0.3) !important;
}

[data-theme="material"] .rush-fee-display span {
  color: var(--text-primary) !important;
}

[data-theme="material"] .rush-fee-amount {
  color: var(--accent-primary) !important;
}



/* ========== ENHANCED COMPANY DETAILS SECTION ========== */

/* Enhanced Edit Button Hover Effects */
#editCompanyInfoBtn:hover {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%) !important;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4) !important;
  transform: translateY(-2px) !important;
}

#editCompanyInfoBtn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3) !important;
}

/* Enhanced Company Field Focus Effects */
#companyName:focus,
#companyAddress:focus,
#companyContact:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2) !important;
  background: var(--bg-card) !important;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Enhanced Company Field Animations */
#companyName,
#companyAddress,
#companyContact {
  transition: all 0.3s ease;
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

#companyName:hover:not([readonly]),
#companyAddress:hover:not([readonly]),
#companyContact:hover:not([readonly]) {
  border-color: rgba(59, 130, 246, 0.6) !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  background: var(--bg-card) !important;
}

/* Enhanced Required Badge Animation */
.form-group label span {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Enhanced Auto-filled Badge */
.auto-filled-badge {
  animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Company Section Container */
#companyDetailsSection {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Theme-specific enhancements */
[data-theme="light"] #companyName,
[data-theme="light"] #companyAddress,
[data-theme="light"] #companyContact {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border-color: rgba(255, 165, 0, 0.4) !important;
}

[data-theme="light"] #companyName:focus,
[data-theme="light"] #companyAddress:focus,
[data-theme="light"] #companyContact:focus {
  background: #ffffff !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2) !important;
}

[data-theme="light"] #companyName:hover:not([readonly]),
[data-theme="light"] #companyAddress:hover:not([readonly]),
[data-theme="light"] #companyContact:hover:not([readonly]) {
  background: #ffffff !important;
  border-color: rgba(249, 115, 22, 0.6) !important;
}

[data-theme="material"] #companyName,
[data-theme="material"] #companyAddress,
[data-theme="material"] #companyContact {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

[data-theme="material"] #companyName:focus,
[data-theme="material"] #companyAddress:focus,
[data-theme="material"] #companyContact:focus {
  background: var(--bg-card) !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2) !important;
}

[data-theme="material"] #companyName:hover:not([readonly]),
[data-theme="material"] #companyAddress:hover:not([readonly]),
[data-theme="material"] #companyContact:hover:not([readonly]) {
  background: var(--bg-card) !important;
  border-color: var(--accent-primary) !important;
}

/* Enhanced Modal Consistency */
.modal {
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .modal {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="material"] .modal {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Enhanced Form Group Spacing */
#companyDetailsSection .form-group {
  margin-bottom: 1.5rem;
}

#companyDetailsSection .form-group:last-of-type {
  margin-bottom: 1rem;
}

/* Enhanced Label Typography */
#companyDetailsSection label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Enhanced Input Typography */
#companyDetailsSection input,
#companyDetailsSection textarea {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.5;
}

/* Enhanced Placeholder Styling */
#companyDetailsSection input::placeholder,
#companyDetailsSection textarea::placeholder {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-style: italic;
  opacity: 0.8;
}

[data-theme="light"] #companyDetailsSection input::placeholder,
[data-theme="light"] #companyDetailsSection textarea::placeholder {
  color: rgba(107, 114, 128, 0.8) !important;
}

[data-theme="material"] #companyDetailsSection input::placeholder,
[data-theme="material"] #companyDetailsSection textarea::placeholder {
  color: var(--text-muted) !important;
}

[data-theme="dark"] #companyDetailsSection input::placeholder,
[data-theme="dark"] #companyDetailsSection textarea::placeholder {
  color: rgba(170, 170, 170, 0.8) !important;
}