/* admin-panel/src/components/Login.css - Premium Design */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  position: relative;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--primary-100) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, var(--primary-100) 0%, transparent 50%);
  opacity: 0.5;
  z-index: 1;
}

.login-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-8);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  backdrop-filter: blur(20px);
  animation: slideUp 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-600), var(--primary-500), var(--primary-600));
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  position: relative;
}

.logo-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.logo h1 {
  font-size: 1.875rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.025em;
}

.subtitle {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  margin-bottom: var(--space-2);
  position: relative;
}

.form-group label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-600);
  transition: width var(--transition-normal);
}

.form-group:focus-within label::after {
  width: 100%;
}

.form-group input {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  background-color: white;
  transition: all var(--transition-normal);
  position: relative;
  z-index: 2;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px var(--primary-100);
  transform: translateY(-1px);
}

.form-group input:disabled {
  background-color: var(--gray-50);
  color: var(--gray-500);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-group input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

.error-message {
  background: linear-gradient(135deg, var(--error-50), var(--error-100));
  color: var(--error-700);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--error-200);
  font-size: 0.875rem;
  text-align: center;
  font-weight: 500;
  position: relative;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.error-message::before {
  content: '⚠️';
  margin-right: var(--space-2);
  font-size: 1rem;
}

.login-btn {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  letter-spacing: 0.025em;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.login-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.login-btn:hover:not(:disabled)::before {
  left: 100%;
}

.login-btn:active:not(:disabled) {
  transform: translateY(-1px);
}

.login-btn:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-sm);
}

.login-btn:disabled::before {
  display: none;
}

.login-btn:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

/* Loading state for button */
.login-btn.loading {
  pointer-events: none;
  position: relative;
}

.login-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Focus ring for accessibility */
.form-group input:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

/* Enhanced responsive design */
@media (max-width: 640px) {
  .login-page {
    padding: var(--space-4);
  }
  
  .login-card {
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-xl);
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .logo-icon {
    font-size: 2.5rem;
  }
  
  .form-group input {
    padding: var(--space-3) var(--space-4);
    font-size: 0.875rem;
  }
  
  .login-btn {
    padding: var(--space-3) var(--space-5);
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: var(--space-6) var(--space-4);
    margin: var(--space-4);
  }
  
  .login-header {
    margin-bottom: var(--space-8);
  }
  
  .login-form {
    gap: var(--space-5);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .login-card {
    border: 2px solid var(--gray-900);
  }
  
  .form-group input {
    border: 2px solid var(--gray-900);
  }
  
  .login-btn {
    background: var(--gray-900);
    border: 2px solid var(--gray-900);
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .login-card {
    animation: none;
  }
  
  .logo-icon {
    animation: none;
  }
  
  .login-btn::before {
    transition: none;
  }
  
  .form-group input,
  .login-btn {
    transition: none;
  }
}/* admin-panel/src/components/Navbar.css - Enhanced with Logout Modal */

.navbar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 var(--space-6);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.02);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(3, 105, 161, 0.1) 20%, 
    rgba(3, 105, 161, 0.1) 80%, 
    transparent 100%);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Mobile Menu Toggle - Only visible on mobile/tablet */
.mobile-menu-toggle {
  background: white;
  border: 1px solid var(--gray-200);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  display: none; /* Hidden by default on desktop */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle:hover {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-color: #7dd3fc;
  color: #0369a1;
  box-shadow: 0 2px 6px rgba(3, 105, 161, 0.15);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Show mobile toggle only on mobile/tablet */
@media (max-width: 1023px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  transition: transform 0.2s ease;
  padding: var(--space-2) 0;
}

.navbar-brand:hover {
  transform: translateX(2px);
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  padding: 4px;
  overflow: hidden;
}

.brand-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.15), rgba(7, 89, 133, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.navbar-brand:hover .brand-icon::before {
  opacity: 1;
}

.brand-icon img {
  filter: drop-shadow(0 2px 6px rgba(3, 105, 161, 0.25));
  transition: all 0.3s ease;
  object-fit: contain;
}

.brand-icon svg {
  filter: drop-shadow(0 2px 6px rgba(3, 105, 161, 0.25));
  transition: all 0.3s ease;
}

.navbar-brand:hover .brand-icon {
  background: linear-gradient(135deg, #bae6fd, #e0f2fe);
  transform: rotate(-2deg) scale(1.05);
}

.navbar-brand:hover .brand-icon img,
.navbar-brand:hover .brand-icon svg {
  filter: drop-shadow(0 4px 8px rgba(3, 105, 161, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text h1 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.admin-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
}

.admin-info:hover {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.3), rgba(240, 249, 255, 0.2));
  border-color: rgba(3, 105, 161, 0.1);
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.08);
}

.admin-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  padding: 2px;
  transition: all 0.3s ease;
}

.admin-avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0369a1, #0284c7);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.admin-info:hover .admin-avatar::before {
  opacity: 0.2;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0369a1, #075985);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.avatar-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.admin-info:hover .avatar-inner::before {
  opacity: 1;
}

.admin-info:hover .admin-avatar {
  transform: scale(1.05);
}

.admin-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.admin-name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.admin-role {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.logout-button {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25), 0 1px 2px rgba(220, 38, 38, 0.1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  height: 40px;
}

.logout-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.logout-button:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35), 0 2px 4px rgba(220, 38, 38, 0.2);
  transform: translateY(-1px);
}

.logout-button:hover::before {
  left: 100%;
}

.logout-button:active {
  transform: translateY(0) scale(0.98);
}

.logout-button svg {
  transition: transform 0.2s ease;
}

.logout-button:hover svg {
  transform: translateX(2px);
}

/* ===== Logout Modal Styles ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  flex-shrink: 0;
}

.modal-header h2 {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2937;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
  font-weight: 500;
}

.modal-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  background: #f9fafb;
}

.modal-btn {
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.modal-btn.cancel {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.modal-btn.cancel:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.modal-btn.confirm {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.modal-btn.confirm:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.modal-btn.confirm:active {
  transform: translateY(0);
}

/* Modal Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive design */
@media (max-width: 1023px) {
  .navbar {
    padding: 0 var(--space-4);
  }
  
  .brand-text span {
    display: none;
  }
  
  .admin-details {
    display: none;
  }
  
  .admin-info {
    padding: var(--space-1);
  }
  
  .logout-button {
    padding: var(--space-2);
    min-width: 40px;
    justify-content: center;
  }
  
  .logout-button span {
    display: none;
  }
}

@media (max-width: 767px) {
  .navbar {
    padding: 0 var(--space-3);
  }
  
  .navbar-left {
    gap: var(--space-3);
  }
  
  .navbar-right {
    gap: var(--space-2);
  }
  
  .brand-text h1 {
    font-size: 1.25rem;
  }
  
  .brand-icon {
    width: 38px;
    height: 38px;
  }
  
  .brand-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .admin-avatar {
    width: 38px;
    height: 38px;
  }
  
  .avatar-inner {
    font-size: 0.875rem;
  }

  .modal-container {
    max-width: 100%;
    margin: 1rem;
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .modal-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Focus states for accessibility */
.admin-info:focus-visible,
.logout-button:focus-visible,
.modal-close:focus-visible,
.modal-btn:focus-visible {
  outline: 2px solid #0369a1;
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .navbar {
    border-bottom: 2px solid var(--gray-900);
    background: white;
  }
  
  .navbar::after {
    display: none;
  }
  
  .admin-info {
    border: 2px solid var(--gray-900);
  }
  
  .admin-avatar {
    background: var(--gray-900);
    border: 2px solid var(--gray-900);
  }
  
  .logout-button {
    background: var(--gray-900);
    border: 2px solid var(--gray-900);
  }

  .modal-container {
    border: 2px solid var(--gray-900);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .navbar-brand,
  .admin-info,
  .logout-button,
  .brand-icon,
  .admin-avatar,
  .avatar-inner::before,
  .brand-icon::before,
  .admin-avatar::before,
  .modal-overlay,
  .modal-container {
    animation: none;
    transition: none;
  }
  
  .navbar-brand:hover,
  .logout-button:hover,
  .admin-info:hover .admin-avatar,
  .navbar-brand:hover .brand-icon {
    transform: none;
  }
}/* admin-panel/src/components/Sidebar.css - With Bottom Toggle Button */

.sidebar {
  width: 280px;
  background: white;
  border-right: 1px solid var(--gray-200);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: fixed;
  top: 64px;
  left: 0;
  height: calc(100vh - 64px);
  z-index: 999;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex-shrink: 0;
}

/* Collapsed state for desktop */
.sidebar-collapsed {
  width: 80px;
}

/* Mobile open state */
.sidebar-mobile-open {
  transform: translateX(0);
}

.sidebar-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sidebar-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(180deg, #e0f2fe 0%, rgba(224, 242, 254, 0.3) 50%, transparent 100%);
  opacity: 0.6;
  pointer-events: none;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-6) 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-section {
  margin-bottom: var(--space-8);
  position: relative;
}

.nav-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  padding: 0 var(--space-6);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.sidebar-collapsed .nav-section-title {
  opacity: 0;
  pointer-events: none;
}

.nav-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gray-300), transparent);
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: var(--space-1);
  padding: 0 var(--space-4);
  transition: padding 0.3s ease;
}

.sidebar-collapsed .nav-item {
  padding: 0 var(--space-3);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: visible;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
}

.sidebar-collapsed .nav-link {
  justify-content: center;
  padding: var(--space-3);
  gap: 0;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #0369a1, #0284c7);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.nav-link:hover {
  color: var(--gray-900);
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.3), rgba(240, 249, 255, 0.2));
  border-color: rgba(3, 105, 161, 0.1);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.08);
}

.sidebar-collapsed .nav-link:hover {
  transform: scale(1.05);
}

.nav-link:hover::after {
  opacity: 0.6;
}

.nav-link-active {
  background: linear-gradient(135deg, #bae6fd, #e0f2fe);
  color: #075985;
  border-color: #7dd3fc;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.2), 0 0 0 1px rgba(3, 105, 161, 0.1);
  transform: translateX(6px);
}

.sidebar-collapsed .nav-link-active {
  transform: scale(1.1);
}

.nav-link-active::before {
  width: 4px;
}

.nav-link-active::after {
  opacity: 1;
  background: linear-gradient(135deg, rgba(186, 230, 253, 0.5), rgba(224, 242, 254, 0.3));
}

.nav-icon {
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  border-radius: var(--radius-md);
  background: transparent;
  flex-shrink: 0;
}

.nav-link:hover .nav-icon {
  transform: scale(1.1);
  background: rgba(3, 105, 161, 0.05);
}

.nav-link-active .nav-icon {
  transform: scale(1.15);
  background: rgba(3, 105, 161, 0.1);
}

.sidebar-collapsed .nav-link:hover .nav-icon,
.sidebar-collapsed .nav-link-active .nav-icon {
  transform: scale(1.2);
}

.nav-icon svg {
  transition: all 0.3s ease;
}

.nav-link-active .nav-icon svg {
  stroke: #0369a1;
  filter: drop-shadow(0 2px 4px rgba(3, 105, 161, 0.2));
}

.nav-link:hover .nav-icon svg {
  stroke: #0369a1;
}

.nav-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  position: relative;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.sidebar-collapsed .nav-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.nav-label {
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.25;
  margin-bottom: var(--space-1);
  transition: all 0.2s ease;
}

.nav-link-active .nav-label {
  font-weight: 600;
}

.nav-description {
  font-size: 0.75rem;
  color: var(--gray-400);
  line-height: 1.2;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-link:hover .nav-description {
  color: var(--gray-500);
}

.nav-link-active .nav-description {
  color: #0369a1;
  font-weight: 500;
}

/* Sidebar Footer with Toggle Button */
.sidebar-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5), rgba(248, 250, 252, 1));
  flex-shrink: 0;
}

.sidebar-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sidebar-toggle-btn:hover {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-color: #7dd3fc;
  color: #0369a1;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.15);
  transform: translateY(-1px);
}

.sidebar-toggle-btn:active {
  transform: translateY(0);
}

.sidebar-toggle-btn.collapsed {
  background: linear-gradient(135deg, #bae6fd, #e0f2fe);
  border-color: #7dd3fc;
  color: #0369a1;
  justify-content: center;
}

.toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.sidebar-toggle-btn:hover .toggle-icon {
  transform: scale(1.1);
}

.toggle-text {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.sidebar-collapsed .toggle-text {
  opacity: 0;
  width: 0;
}

/* Enhanced scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Desktop layout - always visible */
@media (min-width: 1024px) {
  .sidebar {
    position: fixed;
    transform: translateX(0);
    box-shadow: none;
  }
}

/* Tablet and Mobile - slide in overlay */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    width: 280px;
  }
  
  .sidebar-mobile-open {
    transform: translateX(0);
  }
  
  /* No collapsed state on mobile */
  .sidebar-collapsed {
    width: 280px;
  }
  
  .sidebar-collapsed .nav-text {
    opacity: 1;
    width: auto;
  }
  
  .sidebar-collapsed .nav-section-title {
    opacity: 1;
  }
  
  .sidebar-collapsed .nav-item {
    padding: 0 var(--space-4);
  }
  
  .sidebar-collapsed .nav-link {
    justify-content: flex-start;
    padding: var(--space-4);
    gap: var(--space-4);
  }

  /* Hide toggle button on mobile */
  .sidebar-footer {
    display: none;
  }
}

@media (max-width: 767px) {
  .nav-item {
    padding: 0 var(--space-3);
  }
  
  .nav-link {
    padding: var(--space-3);
    gap: var(--space-3);
  }
  
  .sidebar-nav {
    padding: var(--space-4) 0;
  }
  
  .nav-section-title {
    padding: 0 var(--space-5);
  }
}

/* Focus states for accessibility */
.nav-link:focus-visible,
.sidebar-toggle-btn:focus-visible {
  outline: 2px solid #0369a1;
  outline-offset: -2px;
  z-index: 10;
}

/* Enhanced visual feedback */
.nav-link:active {
  transform: translateX(2px) scale(0.98);
}

.sidebar-collapsed .nav-link:active {
  transform: scale(0.95);
}

.nav-link-active:active {
  transform: translateX(5px) scale(0.98);
}

.sidebar-collapsed .nav-link-active:active {
  transform: scale(1.05);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .sidebar {
    background: white;
    border-right: 2px solid var(--gray-900);
  }
  
  .nav-link {
    border: 1px solid transparent;
  }
  
  .nav-link:hover {
    border-color: var(--gray-900);
    background: var(--gray-100);
  }
  
  .nav-link-active {
    background: var(--gray-900);
    color: white;
    border-color: var(--gray-900);
  }
  
  .nav-link-active .nav-description {
    color: white;
  }
  
  .nav-link-active .nav-icon svg {
    stroke: white;
  }

  .sidebar-toggle-btn {
    border: 2px solid var(--gray-900);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .nav-link,
  .nav-icon,
  .nav-link::before,
  .nav-link::after,
  .nav-icon svg,
  .nav-text,
  .nav-item,
  .sidebar-toggle-btn,
  .toggle-icon {
    transition: none;
  }
  
  .nav-link:hover,
  .nav-link-active,
  .sidebar-toggle-btn:hover {
    transform: none;
  }
  
  .nav-link:hover .nav-icon,
  .nav-link-active .nav-icon,
  .sidebar-toggle-btn:hover .toggle-icon {
    transform: none;
  }
}

/* Print styles */
@media print {
  .sidebar {
    display: none !important;
  }
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.nav-dropdown-toggle .dropdown-arrow {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.nav-dropdown-toggle.dropdown-open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-submenu {
  list-style: none;
  padding: var(--space-2) 0 var(--space-2) var(--space-8);
  margin: var(--space-2) 0 0 0;
  border-left: 2px solid var(--gray-200);
  margin-left: var(--space-6);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-subitem {
  margin-bottom: var(--space-1);
}

.nav-sublink {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  position: relative;
}

.nav-sublink::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: #0369a1;
  transition: width 0.3s ease;
}

.nav-sublink:hover {
  color: #0369a1;
  background: rgba(224, 242, 254, 0.3);
  transform: translateX(4px);
}

.nav-sublink:hover::before {
  width: 12px;
}

.nav-sublink-active {
  color: #0369a1;
  background: linear-gradient(135deg, #bae6fd, #e0f2fe);
  font-weight: 600;
  transform: translateX(6px);
}

.nav-sublink-active::before {
  width: 12px;
}

.nav-subicon {
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-sublink:hover .nav-subicon svg,
.nav-sublink-active .nav-subicon svg {
  stroke: #0369a1;
}

.nav-sublabel {
  font-weight: 500;
}

/* Hide submenu when sidebar is collapsed */
.sidebar-collapsed .nav-submenu {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 1023px) {
  .nav-submenu {
    padding-left: var(--space-6);
    margin-left: var(--space-4);
  }
}
/* admin-panel/src/components/AdminLayout.css - Fixed Layout with Collapsible Sidebar */

.admin-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f7f7f8;
  position: relative;
}

.admin-content {
  display: flex;
  flex: 1;
  position: relative;
  padding-top: 64px; /* Account for fixed navbar */
}

.admin-main {
  flex: 1;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background-color: #f7f7f8;
  min-height: calc(100vh - 64px);
  width: 100%;
}

.main-content {
  padding: var(--space-8);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 64px);
}

/* Content area with subtle background pattern */
.main-content::before {
  content: '';
  position: fixed;
  inset: 0;
  top: 64px;
  background-image: 
    radial-gradient(circle at 1px 1px, #e4e6ea 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  top: 64px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  transition: opacity 0.3s ease;
  display: none;
}

/* Desktop layout adjustments */
@media (min-width: 1024px) {
  /* Expanded sidebar state */
  .admin-main {
    margin-left: 280px;
  }
  
  /* Collapsed sidebar state */
  .admin-main.sidebar-collapsed {
    margin-left: 80px;
  }
  
  .sidebar-overlay {
    display: none !important;
  }
}

/* Tablet layout */
@media (max-width: 1023px) and (min-width: 768px) {
  .main-content {
    padding: var(--space-6);
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .sidebar-overlay {
    display: block;
  }
}

/* Mobile layout */
@media (max-width: 767px) {
  .main-content {
    padding: var(--space-4);
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .sidebar-overlay {
    display: block;
  }
  
  /* Adjust content spacing on mobile */
  .main-content::before {
    background-size: 16px 16px;
    opacity: 0.2;
  }
}

/* Enhanced scrolling experience */
.admin-main {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-main::-webkit-scrollbar {
  width: 6px;
}

.admin-main::-webkit-scrollbar-track {
  background: transparent;
}

.admin-main::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.admin-main::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Focus management for accessibility */
.admin-layout:focus-within .sidebar-overlay {
  z-index: 999;
}

/* Loading state */
.admin-layout.loading .main-content {
  opacity: 0.7;
  pointer-events: none;
}

.admin-layout.loading .main-content::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #e4e6ea;
  border-top-color: #0369a1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 1000;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Smooth transitions for layout changes */
.admin-layout * {
  box-sizing: border-box;
}

/* Print styles */
@media print {
  .sidebar-overlay,
  .admin-nav,
  .navbar {
    display: none !important;
  }
  
  .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  .main-content {
    padding: 0 !important;
    max-width: none !important;
  }
  
  .main-content::before {
    display: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .main-content::before {
    display: none;
  }
  
  .sidebar-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .admin-main,
  .sidebar-overlay {
    transition: none;
  }
  
  .admin-layout.loading .main-content::after {
    animation: none;
    border: 3px solid #0369a1;
  }
}/* ===== admin-panel/src/components/LoadingSpinner.css ===== */
.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  min-height: 300px;
}

.loading-spinner {
  margin-bottom: 1rem;
}

.loading-spinner.small .spinner {
  width: 24px;
  height: 24px;
  border-width: 2px;
}

.loading-spinner.medium .spinner {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.loading-spinner.large .spinner {
  width: 56px;
  height: 56px;
  border-width: 4px;
}

.loading-spinner .spinner {
  border: 3px solid #e5e7eb;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: #6b7280;
  font-size: 0.875rem;
  text-align: center;
  margin: 0;
}
/* ===== admin-panel/src/pages/Dashboard.css - Enhanced Professional Design ===== */
.dashboard {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  min-width: 1200px;
}

/* When sidebar is expanded - reduce min-width */
@media (min-width: 1024px) {
  .sidebar-collapsed .dashboard {
    min-width: 1000px;
  }
  
  .dashboard {
    min-width: 900px;
  }
}

/* Tablet */
@media (max-width: 1200px) {
  .dashboard {
    min-width: 100%;
    padding: 0 1.5rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .dashboard {
    padding: 0 1rem;
  }
}

.dashboard-header {
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile */
@media (max-width: 640px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
}

.header-content {
  flex: 1;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tablet */
@media (max-width: 900px) {
  .dashboard-title {
    font-size: 1.75rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .dashboard-title {
    font-size: 1.5rem;
  }
}

.dashboard-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

.refresh-button {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.refresh-button:hover {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-color: #7dd3fc;
  color: #0369a1;
  transform: rotate(180deg);
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.15);
}

.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  margin-bottom: 3rem !important;
  grid-auto-flow: row !important;
}

/* When sidebar is open on desktop - adjust to 3 columns if needed */
@media (min-width: 1024px) and (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  /* When sidebar is collapsed, we can fit 4 columns */
  .sidebar-collapsed .stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Tablet - 3 columns */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Small Tablet - 2 columns */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

/* Mobile - 1 column */
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 90px;
  height: 90px;
}

/* Mobile */
@media (max-width: 640px) {
  .stat-card {
    padding: 1rem 1.25rem;
    min-height: 85px;
    height: 85px;
  }
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-card.blue { border-left-color: #3b82f6; }
.stat-card.green { border-left-color: #10b981; }
.stat-card.purple { border-left-color: #8b5cf6; }
.stat-card.orange { border-left-color: #f59e0b; }
.stat-card.indigo { border-left-color: #6366f1; }
.stat-card.teal { border-left-color: #14b8a6; }
.stat-card.emerald { border-left-color: #059669; }
.stat-card.amber { border-left-color: #d97706; }

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.stat-icon { 
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.stat-card.blue .stat-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stat-card.green .stat-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.stat-card.purple .stat-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.stat-card.orange .stat-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.stat-card.indigo .stat-icon { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.stat-card.teal .stat-icon { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }
.stat-card.emerald .stat-icon { background: rgba(5, 150, 105, 0.1); color: #059669; }
.stat-card.amber .stat-icon { background: rgba(217, 119, 6, 0.1); color: #d97706; }

.stat-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Mobile */
@media (max-width: 640px) {
  .stat-value {
    font-size: 1.75rem;
  }
}

.dashboard-stat-value {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 !important;
  line-height: 1 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  letter-spacing: -0.02em !important;
}

/* Mobile */
@media (max-width: 640px) {
  .dashboard-stat-value {
    font-size: 1.75rem !important;
  }
}

.stat-description {
  color: #9ca3af;
  font-size: 0.65rem;
  margin: 0;
  font-weight: 500;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.dashboard-actions {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile */
@media (max-width: 640px) {
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #0369a1, #0284c7);
  border-radius: 2px;
}

.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Tablet */
@media (max-width: 900px) {
  .action-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .action-cards {
    gap: 1rem;
  }
}

.action-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

/* Mobile */
@media (max-width: 640px) {
  .action-card {
    padding: 1.25rem;
  }
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

.action-card:hover::before {
  transform: scaleX(1);
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.action-icon.blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #3b82f6;
}

.action-icon.purple {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #8b5cf6;
}

.action-icon.green {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #10b981;
}

.action-card:hover .action-icon {
  transform: scale(1.1) rotate(-5deg);
}

.action-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.action-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.action-button.primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.action-button.primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.action-button.secondary {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #374151;
  border-color: #d1d5db;
}

.action-button.secondary:hover {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mini-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

/* Mobile */
@media (max-width: 640px) {
  .mini-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.mini-stat {
  text-align: center;
  flex: 1;
  padding: 1rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.mini-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mini-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.mini-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.activity-summary {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.health-indicators {
  display: grid;
  gap: 1rem;
}

/* Mobile */
@media (max-width: 640px) {
  .health-indicators {
    gap: 0.75rem;
  }
}

.health-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

/* Mobile */
@media (max-width: 640px) {
  .health-item {
    padding: 0.875rem;
    gap: 0.75rem;
  }
}

.health-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.health-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.health-item:hover .health-icon {
  transform: scale(1.1);
}

.health-icon.success { 
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.health-icon.info { 
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #3b82f6;
}

.health-icon.warning { 
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

.health-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.health-info p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card,
.action-card,
.activity-summary {
  animation: fadeIn 0.5s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }
.stat-card:nth-child(7) { animation-delay: 0.35s; }
.stat-card:nth-child(8) { animation-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .stat-card,
  .action-card,
  .activity-summary,
  .refresh-button,
  .action-icon,
  .health-icon {
    animation: none;
    transition: none;
  }

  .stat-card:hover,
  .action-card:hover,
  .health-item:hover,
  .action-card:hover .action-icon {
    transform: none;
  }
}


/* ===== Platform Earnings Section ===== */
.earnings-section {
  margin-bottom: 3rem;
}

.earnings-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* Tablet */
@media (max-width: 900px) {
  .earnings-card {
    padding: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .earnings-card {
    padding: 1.25rem;
    border-radius: 12px;
  }
}

.earnings-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f3f4f6;
}

/* Mobile */
@media (max-width: 640px) {
  .earnings-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
}

.earnings-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.earnings-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.earnings-info p {
  color: #6b7280;
  margin: 0;
  font-size: 0.95rem;
}

.earnings-breakdown {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.breakdown-row.total {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.breakdown-row.commission .breakdown-label {
  color: #ff6b35;
  font-weight: 500;
}

.breakdown-row.commission .commission-value {
  color: #ff6b35;
  font-weight: 700;
  font-size: 1.15rem;
}

.breakdown-row.doctor .breakdown-label {
  color: #059669;
  font-weight: 600;
  font-size: 1.05rem;
}

.breakdown-row.doctor .doctor-value {
  color: #059669;
  font-weight: 700;
  font-size: 1.25rem;
}

.breakdown-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
  margin: 0.5rem 0;
}

.breakdown-label {
  color: #6b7280;
}

.breakdown-value {
  font-weight: 600;
  color: #1f2937;
  font-size: 1.1rem;
}

.earnings-this-month {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #bae6fd;
}

.earnings-this-month h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0369a1;
  margin: 0 0 1rem 0;
}

.month-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

/* Mobile */
@media (max-width: 640px) {
  .month-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.month-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.month-label {
  font-size: 0.85rem;
  color: #0369a1;
  font-weight: 500;
}

.month-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0c4a6e;
}

.month-value.commission-text {
  color: #ff6b35;
}

.month-value.doctor-text {
  color: #059669;
}
/* ===== admin-panel/src/pages/styles/Patients.css ===== */
/* Enhanced Professional Design for Patients, Doctors & Appointments */

.patients-page, 
.doctors-page, 
.appointments-page {
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== Page Header ===== */
.page-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content {
  flex: 1;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.refresh-button {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.refresh-button:hover {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-color: #7dd3fc;
  color: #0369a1;
  transform: rotate(180deg);
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.15);
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.appointments-page .stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.total {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}

.stat-icon.verified {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.stat-icon.pending {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.stat-icon.rejected {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

.stat-icon.completed {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}

.stat-icon.expired {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #374151;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* ===== Error Alert ===== */
.error-alert {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #fecaca;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.error-alert svg {
  flex-shrink: 0;
}

.error-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  margin-left: auto;
  transition: all 0.2s ease;
}

.error-close:hover {
  background: rgba(220, 38, 38, 0.1);
}

/* ===== Table Controls ===== */
.table-controls {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: white;
}

.search-input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

/* Filter Controls */
.filter-container {
  display: flex;
  gap: 0.75rem;
}

.filter-select {
  padding: 0.625rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
}

.filter-select:hover {
  border-color: #0284c7;
}

.filter-select:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

/* ===== Table Container ===== */
.table-container {
  background: white;
  border-radius: 1rem;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
  width: 100%;
}

.patients-table, 
.doctors-table,
.appointments-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}
}

.patients-table th, 
.doctors-table th,
.appointments-table th {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.patients-table td, 
.doctors-table td,
.appointments-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.table-row {
  transition: all 0.2s ease;
}

.table-row:hover {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

/* ===== User Info (Patient/Doctor) ===== */
.patient-info, 
.doctor-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Combined Patient & Doctor Column */
.patient-doctor-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem !important;
}

.patient-section,
.doctor-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar.patient {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.user-avatar.doctor {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.patient-avatar, 
.doctor-avatar,
.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.table-row:hover .patient-avatar,
.table-row:hover .doctor-avatar,
.table-row:hover .user-avatar {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.patient-details,
.doctor-details,
.user-details {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.patient-name, 
.doctor-name,
.user-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline;
}

.patient-email, 
.doctor-email,
.user-email {
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline;
  margin-left: 0.5rem;
}

.patient-email::before,
.doctor-email::before,
.user-email::before {
  content: "•";
  margin-right: 0.5rem;
  color: #d1d5db;
}

.patient-phone, 
.doctor-phone {
  color: #6b7280;
  font-size: 0.875rem;
}

.no-data {
  color: #9ca3af;
  font-style: italic;
  font-size: 0.8125rem;
}

/* ===== Appointment-Specific Columns ===== */
.appointment-datetime {
  padding: 0.75rem 1rem;
}

.datetime-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.datetime-info .date {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
}

.datetime-info .time {
  font-size: 0.8125rem;
  color: #6b7280;
}

.fee {
  padding: 0.75rem 1rem;
}

.fee-amount {
  font-weight: 600;
  color: #0369a1;
  font-size: 0.9375rem;
}

.created-date {
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ===== Status Badges ===== */
.status-badge {
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.status-badge.verified {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
  border: 1px solid #6ee7b7;
}

.status-badge.unverified {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
  border: 1px solid #fcd34d;
}

.status-badge.warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fbbf24;
}

.status-badge.success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #10b981;
}

.status-badge.danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 1px solid #ef4444;
}

.status-badge.gray {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #374151;
  border: 1px solid #9ca3af;
}

.status-badge.info {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #3b82f6;
}

.join-date {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== Action Buttons ===== */
.actions {
  padding: 0.75rem 1rem;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.action-btn.view {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #0369a1;
  border-color: #7dd3fc;
}

.action-btn.view:hover {
  background: linear-gradient(135deg, #bfdbfe, #93c5fd);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
}

.action-btn.activate {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
  border-color: #6ee7b7;
}

.action-btn.activate:hover {
  background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.action-btn.deactivate {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
  border-color: #fcd34d;
}

.action-btn.deactivate:hover {
  background: linear-gradient(135deg, #fde68a, #fcd34d);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.action-btn.delete {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #dc2626;
  border-color: #f87171;
}

.action-btn.delete:hover {
  background: linear-gradient(135deg, #fca5a5, #f87171);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.mini-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-message {
  color: #6b7280;
}

.empty-icon {
  color: #9ca3af;
  margin-bottom: 1rem;
  display: inline-block;
  opacity: 0.5;
}

.empty-message h3 {
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.empty-message p {
  margin: 0;
  font-weight: 500;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.pagination-btn {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

.pagination-total {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ===== Modal Styles ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-container {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.modal-container.large {
  max-width: 800px;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon.danger {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #dc2626;
}

.modal-icon.warning {
  background: linear-gradient(135deg, #fde68a, #fcd34d);
  color: #d97706;
}

.modal-icon.success {
  background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
  color: #059669;
}

.modal-icon.info {
  background: linear-gradient(135deg, #bfdbfe, #93c5fd);
  color: #1e40af;
}

.modal-header h2 {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2937;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
  font-weight: 500;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-body strong {
  color: #1f2937;
  font-weight: 600;
}

.modal-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0;
}

/* Details Grid for Modal */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.detail-section {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.detail-section.full-width {
  grid-column: 1 / -1;
}

.detail-section h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 500;
}

.detail-value {
  font-size: 0.875rem;
  color: #1f2937;
  font-weight: 600;
  text-align: right;
}

.notes {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
  margin: 0;
  padding: 0.75rem;
  background: white;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
}

/* Payment Proof Section */
.payment-proof-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.payment-proof-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-proof-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.payment-proof-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 0.5rem;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.payment-proof-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.image-hint {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
  margin: 0;
}

@media (max-width: 768px) {
  .payment-proof-container {
    grid-template-columns: 1fr;
  }
  
  .payment-proof-image img {
    max-width: 100%;
  }
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  background: #f9fafb;
}

.modal-btn {
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.modal-btn.cancel {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.modal-btn.cancel:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.modal-btn.danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.modal-btn.danger:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  transform: translateY(-1px);
}

.modal-btn.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.modal-btn.warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.modal-btn.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.modal-btn.success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-container {
  animation: fadeIn 0.5s ease-out;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .appointments-page .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .appointments-page .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .table-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-container {
    max-width: 100%;
  }

  .filter-container {
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }

  .table-container {
    overflow-x: auto;
  }
  
  .patients-table, 
  .doctors-table,
  .appointments-table {
    min-width: 700px;
  }
  
  .pagination {
    flex-direction: column;
    gap: 1rem;
  }
  
  .pagination-info {
    order: -1;
  }

  .pagination-btn {
    width: 100%;
    justify-content: center;
  }

  .modal-container {
    max-width: 100%;
    margin: 1rem;
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .modal-btn {
    width: 100%;
    justify-content: center;
  }

  .patient-info,
  .doctor-info {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .patient-avatar,
  .doctor-avatar,
  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .stats-grid,
  .appointments-page .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .table-container,
  .table-row,
  .patient-avatar,
  .doctor-avatar,
  .user-avatar,
  .action-btn,
  .pagination-btn,
  .refresh-button,
  .modal-overlay,
  .modal-container,
  .stat-card {
    animation: none;
    transition: none;
  }

  .table-row:hover .patient-avatar,
  .table-row:hover .doctor-avatar,
  .table-row:hover .user-avatar,
  .action-btn:hover,
  .pagination-btn:hover,
  .refresh-button:hover,
  .stat-card:hover {
    transform: none;
  }
}

/* ===== Timer Management Section ===== */
.page-section-header {
  margin: 2rem 0 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.timer-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.timer-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transition: width 0.3s ease;
}

.timer-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.timer-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.timer-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.timer-card:hover .timer-card-icon {
  transform: scale(1.1);
}

.timer-card-icon.review {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.timer-card::before {
  background: #3b82f6;
}

.timer-card-icon.reminder {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.timer-card:has(.timer-card-icon.reminder)::before {
  background: #10b981;
}

.timer-card-icon.video {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.timer-card:has(.timer-card-icon.video)::before {
  background: #8b5cf6;
}

.timer-card-icon.expiry {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.timer-card:has(.timer-card-icon.expiry)::before {
  background: #f59e0b;
}

.timer-card-content {
  flex: 1;
}

.timer-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.timer-card-description {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.timer-card-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b82f6;
}

.timer-card:has(.timer-card-icon.reminder) .timer-card-value {
  color: #10b981;
}

.timer-card:has(.timer-card-icon.video) .timer-card-value {
  color: #8b5cf6;
}

.timer-card:has(.timer-card-icon.expiry) .timer-card-value {
  color: #f59e0b;
}

.timer-card-action {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.timer-card:hover .timer-card-action {
  background: #3b82f6;
  color: white;
}

.timer-card:has(.timer-card-icon.reminder):hover .timer-card-action {
  background: #10b981;
}

.timer-card:has(.timer-card-icon.video):hover .timer-card-action {
  background: #8b5cf6;
}

.timer-card:has(.timer-card-icon.expiry):hover .timer-card-action {
  background: #f59e0b;
}

/* Timer Modal Styles */
.timer-info-box {
  background: #f9fafb;
  border-left: 4px solid #3b82f6;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.timer-description {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.current-value-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
}

.current-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.current-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

@media (max-width: 768px) {
  .timer-cards-grid {
    grid-template-columns: 1fr;
  }
}
.hospitals-container {
  padding: 20px;
}

.hospitals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.hospitals-header h1 {
  font-size: 28px;
  color: #333;
  margin: 0;
}

.btn-primary {
  background-color: #ff9800;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #f57c00;
}

/* Filters */
.hospitals-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.city-filter {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  min-width: 200px;
  cursor: pointer;
}

.discount-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid #ddd;
  background: white;
  color: #666;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.discount-filter-btn:hover {
  border-color: #ff9800;
  color: #ff9800;
}

.discount-filter-btn.active {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  border-color: #ff9800;
  color: white;
}

.discount-filter-btn svg {
  width: 16px;
  height: 16px;
}

/* Table */
.hospitals-table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.hospitals-table {
  width: 100%;
  border-collapse: collapse;
}

.hospitals-table thead {
  background-color: #f5f5f5;
}

.hospitals-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #ddd;
}

.hospitals-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  color: #666;
}

.hospitals-table tbody tr:hover {
  background-color: #f9f9f9;
}

.no-data {
  text-align: center;
  color: #999;
  padding: 40px !important;
}

/* Actions */
.actions {
  display: flex;
  gap: 8px;
}

.btn-view,
.btn-edit,
.btn-delete {
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s;
  color: white;
}

.btn-view {
  background-color: #2196F3;
}

.btn-view:hover {
  background-color: #1976D2;
}

.btn-edit {
  background-color: #ff9800;
}

.btn-edit:hover {
  background-color: #f57c00;
}

.btn-delete {
  background-color: #f44336;
}

.btn-delete:hover {
  background-color: #d32f2f;
}

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 16px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background-color: #f5f5f5;
}

/* Form */
.hospital-form {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff9800;
}

.form-group textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-cancel {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background: white;
  color: #666;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-cancel:hover {
  background-color: #f5f5f5;
}

.btn-submit {
  padding: 10px 20px;
  border: none;
  background-color: #ff9800;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #f57c00;
}

/* Detail Modal */
.detail-modal {
  max-width: 700px;
}

.hospital-details {
  padding: 20px;
}

.detail-row {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-row strong {
  min-width: 150px;
  color: #555;
  font-weight: 600;
}

.detail-row span,
.detail-row a {
  flex: 1;
  color: #666;
}

.detail-row a {
  color: #ff9800;
  text-decoration: none;
}

.detail-row a:hover {
  text-decoration: underline;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid #eee;
}

.detail-actions .btn-edit,
.detail-actions .btn-delete {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.detail-actions .btn-edit {
  background-color: #ff9800;
  color: white;
}

.detail-actions .btn-edit:hover {
  background-color: #f57c00;
}

.detail-actions .btn-delete {
  background-color: #f44336;
  color: white;
}

.detail-actions .btn-delete:hover {
  background-color: #d32f2f;
}

/* Discount Button */
.btn-discount {
  background-color: #ff9800;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-discount:hover {
  background-color: #f57c00;
}

.btn-discount svg {
  width: 14px;
  height: 14px;
}

/* Discount Badge Inline */
.discount-badge-inline {
  display: inline-block;
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}

/* Discount Active Row */
.discount-active-row {
  background: linear-gradient(90deg, rgba(255, 152, 0, 0.08) 0%, rgba(255, 152, 0, 0.02) 100%) !important;
}

.discount-active-row:hover {
  background: linear-gradient(90deg, rgba(255, 152, 0, 0.12) 0%, rgba(255, 152, 0, 0.04) 100%) !important;
}

/* Discount Modal */
.discount-modal {
  max-width: 500px;
}

.discount-form {
  padding: 20px;
}

.discount-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.discount-input:focus {
  outline: none;
  border-color: #ff9800;
}

/* Discount Toggle */
.discount-toggle-container {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.toggle-checkbox {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background-color: #ccc;
  border-radius: 13px;
  transition: background-color 0.3s;
  margin-right: 12px;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-checkbox:checked + .toggle-switch {
  background-color: #4caf50;
}

.toggle-checkbox:checked + .toggle-switch::after {
  transform: translateX(22px);
}

.toggle-text {
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

/* Warning Button */
.btn-warning {
  background-color: #ff9800 !important;
}

.btn-warning:hover {
  background-color: #f57c00 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hospitals-filters {
    flex-direction: column;
  }

  .city-filter,
  .discount-filter-btn {
    min-width: 100%;
    width: 100%;
  }

  .hospitals-table-container {
    overflow-x: auto;
  }

  .hospitals-table {
    min-width: 800px;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .detail-row {
    flex-direction: column;
  }

  .detail-row strong {
    margin-bottom: 5px;
  }
}
.queries-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.queries-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.queries-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.queries-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-total {
  background: #e3f2fd;
  color: #1976d2;
}

.stat-icon-pending {
  background: #fff3e0;
  color: #f57c00;
}

.stat-icon-resolved {
  background: #e8f5e9;
  color: #388e3c;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 0.25rem 0;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
}

.filter-tab:hover {
  color: #333;
  background: #f9f9f9;
}

.filter-tab.active {
  color: #ff6b35;
  border-bottom-color: #ff6b35;
}

/* Search Container */
.search-container {
  position: relative;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 3rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: #f5f5f5;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: #666;
  transition: all 0.2s;
}

.search-clear:hover {
  background: #e0e0e0;
  color: #333;
}

/* Queries List */
.queries-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.query-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: all 0.2s;
}

.query-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.query-card.resolved {
  background: #f9fafb;
  border-color: #e0e0e0;
}

.query-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.query-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.query-user-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.125rem;
  color: #1a1a1a;
}

.query-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.role-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.role-badge-doctor {
  background: #e3f2fd;
  color: #1976d2;
}

.role-badge-patient {
  background: #f3e5f5;
  color: #7b1fa2;
}

.role-badge-guest {
  background: #f5f5f5;
  color: #666;
}

.query-date {
  font-size: 0.875rem;
  color: #999;
}

.query-status {
  display: flex;
  align-items: center;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-pending {
  background: #fff3e0;
  color: #f57c00;
}

.status-resolved {
  background: #e8f5e9;
  color: #388e3c;
}

.query-contact {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #666;
}

.contact-item svg {
  color: #999;
}

.query-message {
  margin-bottom: 1rem;
}

.query-message h4 {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.query-message p {
  margin: 0;
  color: #333;
  line-height: 1.6;
  white-space: pre-wrap;
}

.query-resolution {
  background: #e8f5e9;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.resolution-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #388e3c;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.admin-notes {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #c8e6c9;
}

.admin-notes strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #2e7d32;
  font-size: 0.875rem;
}

.admin-notes p {
  margin: 0;
  color: #1b5e20;
  line-height: 1.6;
}

.query-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.btn-mark-resolved {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-mark-resolved:hover {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.resolve-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resolve-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  resize: vertical;
}

.resolve-form textarea:focus {
  outline: none;
  border-color: #4caf50;
}

.resolve-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn-resolve {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-resolve:hover:not(:disabled) {
  background: #45a049;
}

.btn-resolve:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-cancel {
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: #666;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
}

.empty-state svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  margin: 0 0 0.5rem 0;
  color: #666;
}

.empty-state p {
  margin: 0;
  color: #999;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: #999;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f0f0f0;
  border-top-color: #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .queries-container {
    padding: 1rem;
  }

  .queries-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .query-contact {
    flex-direction: column;
    gap: 0.75rem;
  }

  .resolve-buttons {
    flex-direction: column;
  }

  .btn-resolve,
  .btn-cancel {
    width: 100%;
  }
}
.symptoms-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.header-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.header-content p {
  color: #666;
  font-size: 0.875rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.refresh-button {
  padding: 0.75rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-button:hover {
  background: #e8e8e8;
}

.add-button {
  padding: 0.75rem 1.5rem;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-button:hover {
  background: #e55a2b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.search-container {
  position: relative;
  margin-bottom: 2rem;
  max-width: 500px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.symptom-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  gap: 0.75rem;
}

.symptom-card:hover {
  border-color: #ff6b35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.symptom-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.symptom-edit-btn {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  flex-shrink: 0;
}

.symptom-edit-btn:hover {
  background: #ff6b35;
  border-color: #ff6b35;
  color: white;
  transform: scale(1.05);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-icon {
  opacity: 0.3;
}

.empty-message h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.empty-message p {
  color: #666;
  margin: 0;
}

.error-alert {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d32f2f;
}

.error-alert svg {
  flex-shrink: 0;
}

.error-alert span {
  flex: 1;
  font-size: 0.875rem;
}

.error-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #d32f2f;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.error-close:hover {
  background: rgba(211, 47, 47, 0.1);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-container {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.modal-icon.info {
  background: #e3f2fd;
  color: #1976d2;
}

.modal-icon.danger {
  background: #ffebee;
  color: #d32f2f;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  flex: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  margin: 0 0 0.75rem 0;
  color: #333;
  line-height: 1.6;
}

.modal-subtitle {
  color: #666;
  font-size: 0.875rem;
}

.input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.modal-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-btn.cancel {
  background: #f5f5f5;
  color: #666;
}

.modal-btn.cancel:hover:not(:disabled) {
  background: #e8e8e8;
}

.modal-btn.success {
  background: #2e7d32;
  color: white;
}

.modal-btn.success:hover:not(:disabled) {
  background: #1b5e20;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.modal-btn.danger {
  background: #d32f2f;
  color: white;
}

.modal-btn.danger:hover:not(:disabled) {
  background: #b71c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.mini-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-btn.info {
  background: #1976d2;
  color: white;
}

.modal-btn.info:hover:not(:disabled) {
  background: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}
.cities-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.header-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.header-content p {
  color: #666;
  font-size: 0.875rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.refresh-button {
  padding: 0.75rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-button:hover {
  background: #e8e8e8;
}

.add-button {
  padding: 0.75rem 1.5rem;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-button:hover {
  background: #e55a2b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.search-container {
  position: relative;
  margin-bottom: 2rem;
  max-width: 100%;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.search-input {
  flex: 1;
  max-width: 500px;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.discount-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e0e0e0;
  background: white;
  color: #666;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.discount-filter-btn:hover {
  border-color: #ff9800;
  color: #ff9800;
  transform: translateY(-1px);
}

.discount-filter-btn.active {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  border-color: #ff9800;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.discount-filter-btn svg {
  width: 16px;
  height: 16px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.city-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  gap: 0.75rem;
}

.city-card:hover {
  border-color: #ff6b35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.city-card.discount-active {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-color: #ff9800;
}

.city-card.discount-active:hover {
  border-color: #f57c00;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.city-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.city-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.city-discount-badge {
  display: inline-block;
  background: #ff9800;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}

.city-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.city-discount-btn {
  background: #fff3e0;
  border: 1px solid #ff9800;
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff9800;
  flex-shrink: 0;
}

.city-discount-btn:hover {
  background: #ff9800;
  color: white;
  transform: scale(1.05);
}

.city-edit-btn {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  flex-shrink: 0;
}

.city-edit-btn:hover {
  background: #ff6b35;
  border-color: #ff6b35;
  color: white;
  transform: scale(1.05);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-icon {
  opacity: 0.3;
}

.empty-message h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.empty-message p {
  color: #666;
  margin: 0;
}

.error-alert {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d32f2f;
}

.error-alert svg {
  flex-shrink: 0;
}

.error-alert span {
  flex: 1;
  font-size: 0.875rem;
}

.error-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #d32f2f;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.error-close:hover {
  background: rgba(211, 47, 47, 0.1);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.modal-container {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 100000;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.modal-icon.info {
  background: #e3f2fd;
  color: #1976d2;
}

.modal-icon.warning {
  background: #fff3e0;
  color: #ff9800;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  flex: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 1.5rem;
}

.input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.modal-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-btn.cancel {
  background: #f5f5f5;
  color: #666;
}

.modal-btn.cancel:hover:not(:disabled) {
  background: #e8e8e8;
}

.modal-btn.success {
  background: #2e7d32;
  color: white;
}

.modal-btn.success:hover:not(:disabled) {
  background: #1b5e20;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.mini-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-btn.info {
  background: #1976d2;
  color: white;
}

.modal-btn.info:hover:not(:disabled) {
  background: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.modal-btn.warning {
  background: #ff9800;
  color: white;
}

.modal-btn.warning:hover:not(:disabled) {
  background: #f57c00;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* Discount Section */
.discount-section {
  margin-top: 1rem;
}

.discount-toggle {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.toggle-checkbox {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  transition: background 0.3s;
}

.toggle-switch::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked + .toggle-switch {
  background: #4caf50;
}

.toggle-checkbox:checked + .toggle-switch::before {
  transform: translateX(24px);
}

.toggle-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .search-container {
    flex-direction: column;
    max-width: 100%;
  }

  .search-input {
    max-width: 100%;
  }

  .discount-filter-btn {
    width: 100%;
    justify-content: center;
  }

  .cities-grid {
    grid-template-columns: 1fr;
  }
}
.diseases-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.header-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.header-content p {
  color: #666;
  font-size: 0.875rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.refresh-button {
  padding: 0.75rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-button:hover {
  background: #e8e8e8;
}

.add-button {
  padding: 0.75rem 1.5rem;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-button:hover {
  background: #e55a2b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.search-container {
  position: relative;
  margin-bottom: 2rem;
  max-width: 500px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.diseases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.disease-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  gap: 0.75rem;
}

.disease-card:hover {
  border-color: #ff6b35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.disease-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.disease-edit-btn {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  flex-shrink: 0;
}

.disease-edit-btn:hover {
  background: #ff6b35;
  border-color: #ff6b35;
  color: white;
  transform: scale(1.05);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-icon {
  opacity: 0.3;
}

.empty-message h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.empty-message p {
  color: #666;
  margin: 0;
}

.error-alert {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d32f2f;
}

.error-alert svg {
  flex-shrink: 0;
}

.error-alert span {
  flex: 1;
  font-size: 0.875rem;
}

.error-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #d32f2f;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.error-close:hover {
  background: rgba(211, 47, 47, 0.1);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-container {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.modal-icon.info {
  background: #e3f2fd;
  color: #1976d2;
}

.modal-icon.danger {
  background: #ffebee;
  color: #d32f2f;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  flex: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  margin: 0 0 0.75rem 0;
  color: #333;
  line-height: 1.6;
}

.modal-subtitle {
  color: #666;
  font-size: 0.875rem;
}

.input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.modal-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-btn.cancel {
  background: #f5f5f5;
  color: #666;
}

.modal-btn.cancel:hover:not(:disabled) {
  background: #e8e8e8;
}

.modal-btn.success {
  background: #2e7d32;
  color: white;
}

.modal-btn.success:hover:not(:disabled) {
  background: #1b5e20;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.modal-btn.danger {
  background: #d32f2f;
  color: white;
}

.modal-btn.danger:hover:not(:disabled) {
  background: #b71c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.mini-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-btn.info {
  background: #1976d2;
  color: white;
}

.modal-btn.info:hover:not(:disabled) {
  background: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}
.specializations-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.header-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.header-content p {
  color: #666;
  font-size: 0.875rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.refresh-button {
  padding: 0.75rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-button:hover {
  background: #e8e8e8;
}

.add-button {
  padding: 0.75rem 1.5rem;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-button:hover {
  background: #e55a2b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.search-container {
  position: relative;
  margin-bottom: 2rem;
  max-width: 500px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.specializations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.specialization-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}

.specialization-card:hover {
  border-color: #ff6b35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.specialization-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.specialization-icon {
  width: 40px;
  height: 40px;
  background: #fff3e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b35;
  flex-shrink: 0;
}

.specialization-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #333;
}

.specialization-edit-btn {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  flex-shrink: 0;
}

.specialization-edit-btn:hover {
  background: #ff6b35;
  border-color: #ff6b35;
  color: white;
  transform: scale(1.05);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-icon {
  opacity: 0.3;
}

.empty-message h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.empty-message p {
  color: #666;
  margin: 0;
}

.error-alert {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d32f2f;
}

.error-alert svg {
  flex-shrink: 0;
}

.error-alert span {
  flex: 1;
  font-size: 0.875rem;
}

.error-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #d32f2f;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.error-close:hover {
  background: rgba(211, 47, 47, 0.1);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-container {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.modal-icon.info {
  background: #e3f2fd;
  color: #1976d2;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  flex: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 1.5rem;
}

.input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: all 0.2s;
}

.modal-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-btn.cancel {
  background: #f5f5f5;
  color: #666;
}

.modal-btn.cancel:hover:not(:disabled) {
  background: #e8e8e8;
}

.modal-btn.success {
  background: #2e7d32;
  color: white;
}

.modal-btn.success:hover:not(:disabled) {
  background: #1b5e20;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.mini-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-btn.info {
  background: #1976d2;
  color: white;
}

.modal-btn.info:hover:not(:disabled) {
  background: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}
/* Industry Updates Page Styles */
.industry-updates-page {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 20px;
}

.header-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 8px 0;
}

.header-content p {
  font-size: 16px;
  color: #718096;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.refresh-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #4a5568;
}

.refresh-button:hover {
  border-color: #3182ce;
  color: #3182ce;
  transform: translateY(-1px);
}

.add-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.add-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Error Alert */
.error-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fed7d7;
  border: 1px solid #feb2b2;
  border-radius: 12px;
  color: #c53030;
  margin-bottom: 24px;
  font-weight: 500;
}

.error-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 20px;
  color: #c53030;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search Container */
.search-container {
  position: relative;
  margin-bottom: 32px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  background: white;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Updates Grid */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.update-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.update-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e0;
}

.update-card.inactive {
  opacity: 0.6;
  background: #f7fafc;
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.update-heading {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.update-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn.edit {
  background: #ebf8ff;
  color: #3182ce;
}

.action-btn.edit:hover {
  background: #bee3f8;
  transform: scale(1.05);
}

.action-btn.delete {
  background: #fed7d7;
  color: #e53e3e;
}

.action-btn.delete:hover {
  background: #feb2b2;
  transform: scale(1.05);
}

.update-text {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
  margin: 0 0 20px 0;
}

.update-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.update-date {
  font-size: 13px;
  color: #718096;
}

.update-status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.update-status.active {
  background: #c6f6d5;
  color: #22543d;
}

.update-status.inactive {
  background: #fed7d7;
  color: #c53030;
}

.update-author {
  font-size: 13px;
  color: #718096;
  font-style: italic;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.empty-message {
  text-align: center;
  max-width: 400px;
}

.empty-icon {
  color: #cbd5e0;
  margin-bottom: 24px;
}

.empty-message h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 12px 0;
}

.empty-message p {
  font-size: 16px;
  color: #718096;
  margin: 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.pagination-btn {
  padding: 12px 20px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #4a5568;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #3182ce;
  color: #3182ce;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-weight: 600;
  color: #4a5568;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 9999;
  padding: 80px 20px 20px 20px;
  backdrop-filter: blur(2px);
  overflow-y: auto;
}

.modal-container {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease-out;
  position: relative;
  z-index: 10000;
}

.modal-container.large {
  max-width: 700px;
  z-index: 10000;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  position: relative;
  z-index: 10001;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon.success {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
}

.modal-icon.info {
  background: linear-gradient(135deg, #4299e1, #3182ce);
  color: white;
}

.modal-icon.danger {
  background: linear-gradient(135deg, #f56565, #e53e3e);
  color: white;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
  flex: 1;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #e2e8f0;
  border-radius: 8px;
  font-size: 18px;
  color: #4a5568;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #cbd5e0;
}

.modal-body {
  padding: 28px;
  max-height: 60vh;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.modal-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: white;
}

.modal-input:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.modal-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: all 0.2s ease;
  background: white;
}

.modal-textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.char-count {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #718096;
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  color: #2d3748;
  position: relative;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #3182ce;
  border-color: #3182ce;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.delete-preview {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  font-size: 14px;
}

.warning-text {
  color: #e53e3e;
  font-weight: 600;
  font-size: 14px;
  margin: 16px 0 0 0;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 24px 28px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.modal-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-btn.cancel {
  background: #e2e8f0;
  color: #4a5568;
}

.modal-btn.cancel:hover:not(:disabled) {
  background: #cbd5e0;
}

.modal-btn.success {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
}

.modal-btn.success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.modal-btn.info {
  background: linear-gradient(135deg, #4299e1, #3182ce);
  color: white;
}

.modal-btn.info:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.modal-btn.danger {
  background: linear-gradient(135deg, #f56565, #e53e3e);
  color: white;
}

.modal-btn.danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.mini-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .industry-updates-page {
    padding: 16px;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .updates-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .update-card {
    padding: 20px;
  }

  .update-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .update-actions {
    align-self: flex-end;
  }

  .modal-container {
    margin: 20px;
    max-width: none;
  }

  .modal-overlay {
    padding: 60px 20px 20px 20px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px;
  }

  .modal-footer {
    flex-direction: column;
  }

  /* Ensure modal is above everything on mobile */
  .modal-overlay {
    z-index: 99999;
  }
}

/* Additional z-index fixes */
.modal-overlay {
  z-index: 99999 !important;
}

.modal-container {
  z-index: 100000 !important;
}

/* Simple Rich Text Editor Styles */
.rich-text-editor-container {
  margin-bottom: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.rich-text-editor-container:focus-within {
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.rich-text-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #4a5568;
  font-size: 14px;
  font-weight: 600;
}

.toolbar-btn:hover {
  background: #e2e8f0;
}

.toolbar-btn:active {
  background: #3182ce;
  color: white;
}

.toolbar-separator {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  margin: 0 4px;
}

.rich-text-editor {
  min-height: 150px;
  padding: 16px;
  border: none;
  outline: none;
  background: white !important;
  color: #2d3748 !important;
  font-size: 16px;
  line-height: 1.6;
  font-family: inherit;
  cursor: text;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.rich-text-editor:focus {
  outline: none;
}

.rich-text-editor:empty:before {
  content: attr(data-placeholder);
  color: #a0aec0;
  pointer-events: none;
}

.rich-text-editor p {
  margin: 0 0 12px 0;
}

.rich-text-editor p:last-child {
  margin-bottom: 0;
}

.rich-text-editor ul,
.rich-text-editor ol {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.rich-text-editor li {
  margin-bottom: 4px;
}

.rich-text-editor a {
  color: #3182ce;
  text-decoration: underline;
}

.rich-text-editor strong {
  font-weight: bold;
}

.rich-text-editor em {
  font-style: italic;
}

.rich-text-editor u {
  text-decoration: underline;
}

/* Character count positioning for rich text editor */
.form-group:has(.rich-text-editor-container) .char-count {
  margin-top: 8px;
}

/* Responsive adjustments for rich text editor */
@media (max-width: 768px) {
  .rich-text-toolbar {
    padding: 6px 8px;
    gap: 2px;
  }
  
  .toolbar-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .rich-text-editor {
    padding: 12px;
    font-size: 14px;
    min-height: 120px;
  }
}
.rich-editor-container {
  margin-bottom: 16px;
}

.rich-editor-container .ql-toolbar {
  border: 2px solid #e2e8f0;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: #f8fafc;
  padding: 12px;
}

.rich-editor-container .ql-container {
  border: 2px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  font-size: 16px;
  background: white;
}

.rich-editor-container .ql-editor {
  min-height: 150px;
  padding: 16px;
  line-height: 1.6;
}

.rich-editor-container .ql-editor.ql-blank::before {
  color: #a0aec0;
  font-style: normal;
}

/* Focus styles for rich editor */
.rich-editor-container:focus-within .ql-toolbar.ql-snow {
  border-color: #3182ce;
}

.rich-editor-container:focus-within .ql-container.ql-snow {
  border-color: #3182ce;
}

/* Toolbar button styles */
.rich-editor-container .ql-toolbar .ql-formats {
  margin-right: 12px;
}

.rich-editor-container .ql-toolbar button {
  border-radius: 6px;
  margin: 2px;
  padding: 6px;
  transition: all 0.2s ease;
}

.rich-editor-container .ql-toolbar button:hover {
  background: #e2e8f0;
}

.rich-editor-container .ql-toolbar button.ql-active {
  background: #3182ce;
  color: white;
}

/* Dropdown styles */
.rich-editor-container .ql-toolbar .ql-picker {
  border-radius: 6px;
}

.rich-editor-container .ql-toolbar .ql-picker-label {
  border-radius: 6px;
  padding: 6px 8px;
  transition: all 0.2s ease;
}

.rich-editor-container .ql-toolbar .ql-picker-label:hover {
  background: #e2e8f0;
}

.rich-editor-container .ql-toolbar .ql-picker.ql-expanded .ql-picker-label {
  background: #3182ce;
  color: white;
}

/* Dropdown options */
.rich-editor-container .ql-toolbar .ql-picker-options {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 4px;
  z-index: 100001;
}

.rich-editor-container .ql-toolbar .ql-picker-item {
  border-radius: 4px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.rich-editor-container .ql-toolbar .ql-picker-item:hover {
  background: #f7fafc;
}

.rich-editor-container .ql-toolbar .ql-picker-item.ql-selected {
  background: #3182ce;
  color: white;
}

/* Color picker styles */
.rich-editor-container .ql-color-picker .ql-picker-options {
  width: 152px;
}

.rich-editor-container .ql-color-picker .ql-picker-item {
  width: 16px;
  height: 16px;
  margin: 2px;
  border-radius: 3px;
  border: 1px solid #e2e8f0;
}

/* Link tooltip styles */
.rich-editor-container .ql-tooltip {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  z-index: 100002;
}

.rich-editor-container .ql-tooltip input {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 14px;
}

.rich-editor-container .ql-tooltip a {
  background: #3182ce;
  color: white;
  border-radius: 4px;
  padding: 6px 12px;
  text-decoration: none;
  font-size: 14px;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.rich-editor-container .ql-tooltip a:hover {
  background: #2c5aa0;
}

/* Character count positioning for rich editor */
.form-group:has(.rich-editor-container) .char-count {
  margin-top: 8px;
}

/* Ensure rich editor content is properly styled */
.rich-editor-container .ql-editor h1 {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.rich-editor-container .ql-editor h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.rich-editor-container .ql-editor h3 {
  font-size: 1.17em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.rich-editor-container .ql-editor blockquote {
  border-left: 4px solid #3182ce;
  padding-left: 16px;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

.rich-editor-container .ql-editor ul,
.rich-editor-container .ql-editor ol {
  padding-left: 1.5em;
}

.rich-editor-container .ql-editor li {
  margin-bottom: 0.25em;
}

/* Responsive adjustments for rich editor */
@media (max-width: 768px) {
  .rich-editor-container .ql-toolbar {
    padding: 8px;
  }
  
  .rich-editor-container .ql-toolbar .ql-formats {
    margin-right: 8px;
  }
  
  .rich-editor-container .ql-editor {
    min-height: 120px;
    padding: 12px;
  }
  
  .rich-editor-container .ql-toolbar button {
    padding: 4px;
    margin: 1px;
  }
}


/* File Upload Styles */
.file-upload-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  background: #f8fafc;
  color: #4a5568;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  justify-content: center;
  min-height: 48px;
}

.file-upload-button:hover {
  border-color: #3182ce;
  background: #ebf8ff;
  color: #3182ce;
}

.file-input {
  display: none;
}

.image-preview {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: white;
}

.preview-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 150px;
  object-fit: cover;
  display: block;
}

.remove-image-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-image-btn:hover {
  background: rgba(239, 68, 68, 0.9);
  transform: scale(1.1);
}

.file-help-text {
  font-size: 12px;
  color: #718096;
  margin: 0;
  text-align: center;
}

/* Responsive adjustments for file upload */
@media (max-width: 768px) {
  .file-upload-button {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .preview-image {
    max-width: 150px;
    max-height: 120px;
  }
  
  .remove-image-btn {
    width: 24px;
    height: 24px;
    top: 6px;
    right: 6px;
  }
}.custom-data-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.header-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.header-content p {
  color: #666;
  font-size: 0.875rem;
  margin: 0;
}

.refresh-button {
  padding: 0.75rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-button:hover {
  background: #e8e8e8;
}

.search-container {
  position: relative;
  margin-bottom: 2rem;
  max-width: 500px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.doctors-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doctor-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  gap: 1.5rem;
}

.doctor-card:hover {
  border-color: #ff6b35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.doctor-info {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.doctor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
}

.doctor-details {
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem;
  min-width: 0;
}

.doctor-info-line {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.doctor-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline;
}

.doctor-email {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline;
}

.doctor-email::before {
  content: "•";
  margin: 0 0.5rem;
  color: #d1d5db;
}

.custom-badges {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge.hospital {
  background: #e3f2fd;
  color: #1976d2;
}

.badge.symptoms {
  background: #fff3e0;
  color: #f57c00;
}

.badge.diseases {
  background: #fce4ec;
  color: #c2185b;
}

.view-details-btn {
  padding: 0.75rem 1.5rem;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.view-details-btn:hover {
  background: #e55a2b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-icon {
  opacity: 0.3;
}

.empty-message h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.empty-message p {
  color: #666;
  margin: 0;
}

.error-alert {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d32f2f;
}

.error-alert svg {
  flex-shrink: 0;
}

.error-alert span {
  flex: 1;
  font-size: 0.875rem;
}

.error-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #d32f2f;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.error-close:hover {
  background: rgba(211, 47, 47, 0.1);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-container {
  background: white;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon.info {
  background: #e3f2fd;
  color: #1976d2;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  flex: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 1.5rem;
}

.doctor-info-section {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.doctor-info-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  font-weight: 500;
  color: #666;
  font-size: 0.875rem;
}

.info-row .value {
  color: #1a1a1a;
  font-size: 0.875rem;
  text-align: right;
}

.custom-section {
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.25rem;
}

.custom-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hospital-section {
  border-color: #1976d2;
  background: #f8fbff;
}

.hospital-section h3 {
  color: #1976d2;
}

.symptoms-section {
  border-color: #f57c00;
  background: #fffaf5;
}

.symptoms-section h3 {
  color: #f57c00;
}

.diseases-section {
  border-color: #c2185b;
  background: #fff8fb;
}

.diseases-section h3 {
  color: #c2185b;
}

.custom-content {
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.6;
}

.custom-content p {
  margin: 0;
}

.no-info {
  color: #999;
  font-style: italic;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 0.875rem;
  color: #333;
}

.hospitals-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hospital-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
}

.hospital-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.hospital-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.hospital-city {
  font-size: 0.875rem;
  color: #1976d2;
  font-weight: 500;
}

.hospital-address {
  font-size: 0.875rem;
  color: #666;
}

.hospital-schedule {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.fee {
  color: #2e7d32;
  font-weight: 500;
}

.time {
  color: #666;
}

.hospital-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.day-badge {
  padding: 0.25rem 0.5rem;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.custom-hospital-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.custom-hospital-note strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  font-size: 0.875rem;
}

.custom-hospital-note p {
  margin: 0;
  color: #666;
  font-size: 0.875rem;
  line-height: 1.6;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: white;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.modal-btn.cancel {
  background: #f5f5f5;
  color: #666;
}

.modal-btn.cancel:hover {
  background: #e8e8e8;
}

.modal-btn.resolve {
  background: #4caf50;
  color: white;
}

.modal-btn.resolve:hover:not(:disabled) {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.modal-btn.resolve:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.admin-cut-container {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-cut-header {
  margin-bottom: 32px;
}

.admin-cut-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  font-size: 18px;
  color: #666;
}

.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}

.message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.admin-cut-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-content {
  padding: 32px;
}

.current-value-section {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  border-radius: 12px;
  margin-bottom: 32px;
}

.value-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.value-number {
  font-size: 72px;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.value-unit {
  font-size: 36px;
  font-weight: 600;
  color: white;
}

.value-label {
  margin-top: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.slider-section {
  margin-bottom: 32px;
}

.slider-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.slider-min,
.slider-max {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  min-width: 40px;
  text-align: center;
}

.slider {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff6b35;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff6b35;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 12px;
  color: #999;
}

.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.info-box {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #ff6b35;
}

.info-box h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.info-box p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.calculation-example {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.calculation-example h4 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #666;
}

.calc-row.total {
  border-top: 2px solid #ff6b35;
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 600;
  color: #333;
}

.calc-value {
  font-weight: 600;
  color: #ff6b35;
}

.action-section {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.notification-section {
  margin-bottom: 32px;
  padding: 24px;
  background: #f0f7ff;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
}

.notification-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.notification-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.date-picker-container {
  margin-bottom: 20px;
}

.date-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.date-input {
  width: 100%;
  max-width: 300px;
  padding: 10px 12px;
  font-size: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
}

.date-input:focus {
  border-color: #2196f3;
}

.notification-button {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  margin-bottom: 16px;
}

.notification-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.notification-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notification-note {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  padding: 12px;
  background: white;
  border-radius: 6px;
}

.save-button {
  padding: 12px 48px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.save-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.save-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .admin-cut-container {
    padding: 16px;
  }

  .card-content {
    padding: 20px;
  }

  .value-number {
    font-size: 56px;
  }

  .value-unit {
    font-size: 28px;
  }

  .info-section {
    grid-template-columns: 1fr;
  }

  .slider-marks {
    padding: 0 20px;
  }
}

/* Success Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 32px 32px 24px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  margin: 0 auto 16px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.modal-body {
  padding: 32px;
}

.modal-description {
  text-align: center;
  color: #666;
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 2px solid #e0e0e0;
}

.stat-card.success {
  background: #e8f5e9;
  border-color: #4caf50;
}

.stat-card.error {
  background: #ffebee;
  border-color: #f44336;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.stat-card.success .stat-number {
  color: #4caf50;
}

.stat-card.error .stat-number {
  color: #f44336;
}

.stat-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.modal-info {
  background: #f0f7ff;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #2196f3;
}

.modal-info p {
  margin: 8px 0;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.modal-info strong {
  color: #1976d2;
}

.modal-footer {
  padding: 24px 32px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
}

.modal-close-button {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.modal-close-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 24px 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
/* admin-panel/src/App.css - Modern Design System */

/* CSS Reset and Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Colors */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-900: #1e3a8a;
  
  /* Neutral Colors */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Status Colors */
  --success-50: #f0fdf4;
  --success-100: #dcfce7;
  --success-500: #22c55e;
  --success-600: #16a34a;
  
  --warning-50: #fefce8;
  --warning-100: #fef3c7;
  --warning-500: #eab308;
  --warning-600: #ca8a04;
  
  --error-50: #fef2f2;
  --error-100: #fee2e2;
  --error-500: #ef4444;
  --error-600: #dc2626;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  font-feature-settings: 'kern' 1;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Enhanced Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.btn-primary {
  background-color: var(--primary-600);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: white;
  color: var(--gray-700);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--gray-50);
  border-color: var(--gray-400);
  box-shadow: var(--shadow);
}

.btn-danger {
  background-color: var(--error-600);
  color: white;
  box-shadow: var(--shadow);
}

.btn-danger:hover:not(:disabled) {
  background-color: var(--error-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Enhanced Input Styles */
.input {
  appearance: none;
  background-color: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  line-height: 1.25;
  color: var(--gray-900);
  transition: all var(--transition-fast);
  width: 100%;
}

.input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.input:disabled {
  background-color: var(--gray-100);
  color: var(--gray-500);
  cursor: not-allowed;
}

.input::placeholder {
  color: var(--gray-400);
}

/* Card Styles */
.card {
  background-color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: var(--space-6);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  background-color: var(--gray-50);
}

/* Loading States */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--gray-300);
  border-top: 2px solid var(--primary-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* Alert Styles */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.alert-success {
  background-color: var(--success-50);
  color: var(--success-800);
  border: 1px solid var(--success-200);
}

.alert-warning {
  background-color: var(--warning-50);
  color: var(--warning-800);
  border: 1px solid var(--warning-200);
}

.alert-error {
  background-color: var(--error-50);
  color: var(--error-800);
  border: 1px solid var(--error-200);
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }

/* Responsive Design */
@media (max-width: 640px) {
  :root {
    --space-4: 0.875rem;
    --space-6: 1.25rem;
    --space-8: 1.75rem;
  }
}

/* Focus Visible for Accessibility */
.btn:focus-visible,
.input:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

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

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}.featured-doctors-container {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  margin-bottom: 32px;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: #718096;
}

/* Filters Section */
.filters-section {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
  position: relative;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}

.filter-select,
.filter-input {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #2d3748;
  background: white;
  transition: all 0.2s ease;
}

.filter-select {
  cursor: pointer;
}

.filter-input {
  padding-right: 36px; /* Space for clear button */
}

.filter-select:hover,
.filter-input:hover {
  border-color: #f6ad55;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: #f6ad55;
  box-shadow: 0 0 0 3px rgba(246, 173, 85, 0.1);
}

.filter-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #a0aec0;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.clear-search-btn:hover {
  background: #edf2f7;
  color: #2d3748;
}

.filter-results {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 10px 16px;
  background: #f7fafc;
  border-radius: 8px;
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
}

.loading,
.error {
  text-align: center;
  padding: 48px 24px;
  font-size: 16px;
  color: #4a5568;
}

.error {
  color: #e53e3e;
}

.section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.empty-message {
  text-align: center;
  padding: 32px;
  color: #a0aec0;
  font-size: 15px;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.doctor-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.doctor-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.doctor-card.featured {
  border: 2px solid #f6ad55;
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(237, 137, 54, 0.3);
}

.doctor-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.specialization {
  color: #4a5568;
  font-size: 14px;
  margin-bottom: 4px;
}

.experience {
  color: #718096;
  font-size: 13px;
  margin-bottom: 12px;
}

.stats {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.stat {
  font-size: 13px;
  color: #4a5568;
}

.verified {
  background: #c6f6d5;
  color: #22543d;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.hospitals-info {
  font-size: 13px;
  color: #718096;
  margin-bottom: 16px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-view {
  background: #edf2f7;
  color: #2d3748;
}

.btn-view:hover:not(:disabled) {
  background: #e2e8f0;
}

.btn-feature {
  background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
  color: white;
}

.btn-feature:hover:not(:disabled) {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
  box-shadow: 0 2px 8px rgba(237, 137, 54, 0.3);
}

.btn-remove {
  background: #fc8181;
  color: white;
}

.btn-remove:hover:not(:disabled) {
  background: #f56565;
  box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: #a0aec0;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #edf2f7;
  color: #2d3748;
}

.modal-body {
  padding: 24px;
}

.detail-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 16px;
}

.detail-section p {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 8px;
  line-height: 1.6;
}

.detail-section strong {
  color: #2d3748;
  font-weight: 600;
}

.hospital-item {
  background: #f7fafc;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 3px solid #4299e1;
}

.hospital-item:last-child {
  margin-bottom: 0;
}

.hospital-item p {
  margin-bottom: 6px;
}

.hospital-item p:last-child {
  margin-bottom: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #bee3f8;
  color: #2c5282;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .featured-doctors-container {
    padding: 16px;
  }

  .header h1 {
    font-size: 24px;
  }

  .doctors-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .modal-content {
    max-height: 95vh;
  }

  .modal-header,
  .modal-body {
    padding: 16px;
  }
  
  .filters-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    min-width: 100%;
  }
  
  .filter-results {
    margin-left: 0;
    justify-content: center;
  }
}
.home-doctors-container {
  padding: 20px;
  max-width: 1800px;
  margin: 0 auto;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
}

/* City Selector */
.city-selector {
  background: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  border: 1px solid #e8ecf1;
}

.city-selector select {
  width: 100%;
  max-width: 500px;
  padding: 10px 16px;
  border: 1px solid #e0e7ef;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.2s ease;
}

.city-selector select:hover {
  border-color: #3498db;
}

.city-selector select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Doctors Count */
.doctors-count {
  font-size: 13px;
  font-weight: 500;
  color: #5a6c7d;
  margin-bottom: 12px;
  padding: 0 4px;
}

/* Split View */
.split-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
  overflow: hidden;
}

/* Left Panel - All Doctors */
.left-panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8ecf1;
}

/* Search Bar */
.search-bar {
  padding: 12px 16px 12px 16px;
  background: white;
  border-bottom: 1px solid #f0f3f7;
}

.search-bar input {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #2c3e50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8f9fa;
}

.search-bar input:focus {
  outline: none;
  border-color: #3498db;
  background: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-bar input::placeholder {
  color: #95a5a6;
}

/* Doctors List */
.doctors-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #fafbfc;
}

/* Custom Scrollbar */
.doctors-list::-webkit-scrollbar,
.recommended-list::-webkit-scrollbar {
  width: 8px;
}

.doctors-list::-webkit-scrollbar-track,
.recommended-list::-webkit-scrollbar-track {
  background: #f0f3f7;
  border-radius: 10px;
}

.doctors-list::-webkit-scrollbar-thumb,
.recommended-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.doctors-list::-webkit-scrollbar-thumb:hover,
.recommended-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

/* Doctor Card (Left Side) */
.doctor-card {
  background: white;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  min-height: 70px;
}

.doctor-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
  border-color: #3498db;
}

.doctor-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.doctor-name {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.tag:first-of-type {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #856404;
}

.tag:last-of-type {
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
  color: white;
}

.doctor-details-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.detail-value {
  font-weight: 500;
  color: #2c3e50;
}

.detail-separator {
  color: #bdc3c7;
  font-weight: 300;
}

.btn-recommend {
  padding: 8px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.btn-recommend:hover:not(:disabled) {
  background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-recommend:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-recommend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #95a5a6 0%, #bdc3c7 100%);
  box-shadow: none;
}

.btn-remove {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-remove:hover:not(:disabled) {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Right Panel - Recommended Doctors */
.right-panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8ecf1;
}

.panel-header {
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
  color: white;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.panel-header span:first-child {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
}

.count {
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
  

.recommended-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #fafbfc;
}

/* Empty States */
.empty-message {
  text-align: center;
  padding: 60px 20px;
  color: #7f8c8d;
  font-size: 15px;
  font-weight: 500;
  background: white;
  border-radius: 12px;
  border: 2px dashed #e0e7ef;
  margin: 20px;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  color: #3498db;
  font-size: 16px;
  font-weight: 700;
}

.no-city-selected {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.1);
}

.no-city-selected p {
  font-size: 18px;
  font-weight: 600;
  color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .split-view {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 968px) {
  .split-view {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .right-panel {
    border: 2px solid #3498db;
  }
}

@media (max-width: 768px) {
  .home-doctors-container {
    padding: 16px;
  }

  .city-selector {
    padding: 16px;
  }

  .city-selector select {
    max-width: 100%;
    font-size: 15px;
  }

  .split-view {
    grid-template-rows: 1fr 1fr;
    gap: 16px;
  }

  .doctor-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .btn-recommend {
    width: 100%;
    margin-top: 12px;
  }

  .search-bar {
    padding: 16px;
  }

  .doctors-list,
  .recommended-list {
    padding: 16px;
  }
}
.home-hospitals-container {
  padding: 20px;
  max-width: 1800px;
  margin: 0 auto;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
}

/* City Selector */
.city-selector {
  background: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  border: 1px solid #e8ecf1;
}

.city-selector select {
  width: 100%;
  max-width: 500px;
  padding: 10px 16px;
  border: 1px solid #e0e7ef;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.2s ease;
}

.city-selector select:hover {
  border-color: #3498db;
}

.city-selector select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Hospitals Count */
.hospitals-count {
  font-size: 13px;
  font-weight: 500;
  color: #5a6c7d;
  margin-bottom: 12px;
  padding: 0 4px;
}

/* Split View */
.split-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
  overflow: hidden;
}

/* Left Panel - All Hospitals */
.left-panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8ecf1;
}

/* Search Bar */
.search-bar {
  padding: 12px 16px 12px 16px;
  background: white;
  border-bottom: 1px solid #f0f3f7;
}

.search-bar input {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #2c3e50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8f9fa;
}

.search-bar input:focus {
  outline: none;
  border-color: #3498db;
  background: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-bar input::placeholder {
  color: #95a5a6;
}

/* Hospitals List */
.hospitals-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #fafbfc;
}

/* Custom Scrollbar */
.hospitals-list::-webkit-scrollbar,
.recommended-list::-webkit-scrollbar {
  width: 8px;
}

.hospitals-list::-webkit-scrollbar-track,
.recommended-list::-webkit-scrollbar-track {
  background: #f0f3f7;
  border-radius: 10px;
}

.hospitals-list::-webkit-scrollbar-thumb,
.recommended-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.hospitals-list::-webkit-scrollbar-thumb:hover,
.recommended-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

/* Hospital Card */
.hospital-card {
  background: white;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  min-height: 70px;
}

.hospital-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
  border-color: #3498db;
}

.hospital-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hospital-name {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
  color: white;
}

.hospital-details-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.detail-value {
  font-weight: 500;
  color: #2c3e50;
}

.detail-separator {
  color: #bdc3c7;
  font-weight: 300;
}

.btn-recommend {
  padding: 8px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.btn-recommend:hover:not(:disabled) {
  background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-recommend:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-recommend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #95a5a6 0%, #bdc3c7 100%);
  box-shadow: none;
}

.btn-remove {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-remove:hover:not(:disabled) {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Right Panel - Recommended Hospitals */
.right-panel {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid #3498db;
}

.panel-header {
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
  color: white;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.panel-header span:first-child {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
}

.count {
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.recommended-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #fafbfc;
}

/* Empty States */
.empty-message {
  text-align: center;
  padding: 60px 20px;
  color: #7f8c8d;
  font-size: 15px;
  font-weight: 500;
  background: white;
  border-radius: 12px;
  border: 2px dashed #e0e7ef;
  margin: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .split-view {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 968px) {
  .split-view {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .right-panel {
    border: 2px solid #3498db;
  }
}

@media (max-width: 768px) {
  .home-hospitals-container {
    padding: 16px;
  }

  .city-selector {
    padding: 16px;
  }

  .city-selector select {
    max-width: 100%;
    font-size: 15px;
  }

  .split-view {
    grid-template-rows: 1fr 1fr;
    gap: 16px;
  }

  .hospital-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .btn-recommend {
    width: 100%;
    margin-top: 12px;
  }

  .search-bar {
    padding: 16px;
  }

  .hospitals-list,
  .recommended-list {
    padding: 16px;
  }
}
.earnings-page {
  max-width: 1400px;
  margin: 0 auto;
}

.earnings-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.summary-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.summary-icon.appointments {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.summary-icon.total {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.summary-icon.commission {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.summary-icon.doctor {
  background: linear-gradient(135deg, #10b981, #059669);
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.summary-value.commission-text {
  color: #ff6b35;
}

.summary-value.doctor-text {
  color: #10b981;
}

/* Search */
.search-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Table */
.earnings-table-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.earnings-table {
  width: 100%;
  border-collapse: collapse;
}

.earnings-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.earnings-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.earnings-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s ease;
}

.earnings-table tbody tr:hover {
  background: #f9fafb;
}

.earnings-table tbody tr:last-child {
  border-bottom: none;
}

.earnings-table td {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: #1f2937;
}

.doctor-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.doctor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.doctor-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.doctor-name {
  font-weight: 600;
  color: #1f2937;
}

.doctor-email {
  font-size: 0.875rem;
  color: #6b7280;
}

.appointments-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
}

.amount {
  font-weight: 600;
  font-size: 1rem;
}

.commission-amount {
  color: #ff6b35;
}

.doctor-amount {
  color: #10b981;
}

.no-data {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #9ca3af;
  font-size: 1rem;
}

/* Error Alert */
.error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: #dc2626;
}

.error-alert svg {
  flex-shrink: 0;
}

.error-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #dc2626;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.error-close:hover {
  background: #fee2e2;
}

/* Refresh Button */
.refresh-button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.refresh-button:hover {
  background: #f9fafb;
  border-color: #ff6b35;
  color: #ff6b35;
  transform: rotate(90deg);
}

.refresh-button:active {
  transform: rotate(90deg) scale(0.95);
}


/* Clickable Card */
.summary-card.clickable {
  cursor: pointer;
  position: relative;
}

.summary-card.clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.click-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.summary-card.clickable:hover .click-hint {
  color: #8b5cf6;
  transform: translateX(4px);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 2rem;
}

.modal-container {
  background: white;
  border-radius: 16px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 100000;
  position: relative;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.modal-body {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.appointments-table-container {
  overflow-x: auto;
}

.appointments-table {
  width: 100%;
  border-collapse: collapse;
}

.appointments-table thead {
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.appointments-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e5e7eb;
}

.appointments-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s ease;
}

.appointments-table tbody tr:hover {
  background: #f9fafb;
}

.appointments-table td {
  padding: 1rem;
  font-size: 0.95rem;
  color: #1f2937;
}

.type-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.type-badge.video {
  background: #ede9fe;
  color: #7c3aed;
}

.type-badge.clinic {
  background: #dbeafe;
  color: #2563eb;
}

.fees-cell {
  font-weight: 600;
  color: #8b5cf6;
}

.commission-cell {
  font-weight: 600;
  color: #ff6b35;
}

.doctor-earning-cell {
  font-weight: 600;
  color: #10b981;
}


/* Tabs */
.tabs-container {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: white;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-button svg {
  flex-shrink: 0;
}

.tab-button:hover {
  background: #f3f4f6;
  color: #ff6b35;
}

.tab-button.active {
  background: #ff6b35;
  color: white;
}

.tab-button.active svg {
  color: white;
}

/* Type Badges */
.type-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.type-badge.video {
  background: #ede9fe;
  color: #7c3aed;
}

.type-badge.clinic {
  background: #dbeafe;
  color: #2563eb;
}

/* Status Badges */
.withdrawn-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background: #d1fae5;
  color: #059669;
}

.pending-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background: #fef3c7;
  color: #d97706;
}

/* Discount and transparency styles */
.discount-badge {
  display: inline-block;
  padding: 4px 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: help;
}

.no-discount {
  color: #9ca3af;
  font-size: 14px;
}

.patient-paid {
  color: #059669;
  font-weight: 600;
}

.discount-indicator {
  color: #10b981;
  font-weight: bold;
  margin-left: 4px;
  font-size: 14px;
}

.table-note {
  padding: 12px 16px;
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.commission-amount[title] {
  cursor: help;
  position: relative;
}

.commission-amount:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
}


/* Action buttons */
.action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-button.send-payment {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.action-button.send-payment:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.action-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.action-button .spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


/* View Proof Button */
.action-button.view-proof {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.action-button.view-proof:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Verify Payment Button */
.action-button.verify-payment {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.action-button.verify-payment:hover:not(:disabled) {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.no-proof {
  color: #9ca3af;
  font-size: 13px;
  font-style: italic;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #6b7280;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #111827;
}

.modal-body {
  padding: 24px;
}

.proof-details {
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: #6b7280;
  font-size: 14px;
}

.detail-value {
  font-weight: 600;
  color: #111827;
  font-size: 14px;
}

.proof-image-container {
  text-align: center;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 20px;
}

.proof-image {
  max-width: 100%;
  max-height: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
}

.btn-secondary {
  padding: 10px 20px;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-primary {
  padding: 10px 20px;
  border: none;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.appointment-details-page {
  max-width: 1600px;
  margin: 0 auto;
}

.details-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: #f9fafb;
  border-color: #ff6b35;
  color: #ff6b35;
}

.header-content {
  flex: 1;
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 4px solid transparent;
}

.summary-card.total {
  border-left-color: #8b5cf6;
}

.summary-card.total .summary-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.summary-card.total .summary-value {
  color: #8b5cf6;
}

.summary-card.commission {
  border-left-color: #ff6b35;
}

.summary-card.commission .summary-icon {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.summary-card.commission .summary-value {
  color: #ff6b35;
}

.summary-card.doctor {
  border-left-color: #10b981;
}

.summary-card.doctor .summary-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.summary-card.doctor .summary-value {
  color: #10b981;
}

.summary-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.summary-value {
  font-size: 1.75rem;
  font-weight: 700;
}

/* Table */
.details-table-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}

.details-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.details-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.details-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s ease;
}

.details-table tbody tr:hover {
  background: #f9fafb;
}

.details-table tbody tr:last-child {
  border-bottom: none;
}

.details-table td {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: #1f2937;
}

.doctor-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.doctor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.type-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.type-badge.video {
  background: #ede9fe;
  color: #7c3aed;
}

.type-badge.clinic {
  background: #dbeafe;
  color: #2563eb;
}

.date-cell {
  color: #6b7280;
  font-size: 0.875rem;
}

.fees-cell {
  font-weight: 600;
  color: #8b5cf6;
  font-size: 1rem;
}

.commission-cell {
  font-weight: 600;
  color: #ff6b35;
  font-size: 1rem;
}

.doctor-earning-cell {
  font-weight: 600;
  color: #10b981;
  font-size: 1rem;
}

.no-data {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #9ca3af;
  font-size: 1rem;
}

/* Error Alert */
.error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: #dc2626;
}

.error-alert svg {
  flex-shrink: 0;
}

.error-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #dc2626;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.error-close:hover {
  background: #fee2e2;
}

.refresh-button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.refresh-button:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #0369a1;
  transform: rotate(180deg);
}
.refund-management {
  padding: 24px;
  background-color: #f8f9fa;
  min-height: 100vh;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.btn-refresh {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-refresh:hover:not(:disabled) {
  background: #2980b9;
}

.btn-refresh:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-alert {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.error-alert button {
  background: none;
  border: none;
  color: #c33;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
}

.refund-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.stats {
  display: flex;
  gap: 16px;
}

.stat {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
}

.stat.pending {
  background: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.stat.completed {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #e9ecef;
}

.tab {
  flex: 1;
  padding: 16px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.tab:hover {
  background: #f8f9fa;
}

.tab.active {
  color: #3498db;
  border-bottom-color: #3498db;
  background: #f8f9fa;
}

.tab-content {
  padding: 24px;
}

.loading-container {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.refund-table-container {
  overflow-x: auto;
}

.refund-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.refund-table th {
  background: #f8f9fa;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #e9ecef;
}

.refund-table td {
  padding: 16px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
}

.refund-table tr:hover {
  background: #f8f9fa;
}

.patient-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.patient-name {
  font-weight: 600;
  color: #2c3e50;
}

.patient-phone {
  font-size: 12px;
  color: #6c757d;
}

.amount {
  font-weight: 600;
  color: #e74c3c;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 8px;
}

.method-icon {
  font-size: 16px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge.completed {
  background: #d4edda;
  color: #155724;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-view, .btn-upload {
  background: none;
  border: 1px solid #dee2e6;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-view:hover {
  background: #3498db;
  border-color: #3498db;
  color: white;
}

.btn-upload:hover {
  background: #27ae60;
  border-color: #27ae60;
  color: white;
}

.no-data {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-style: italic;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.modal-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  padding: 24px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.details-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.details-section.full-width {
  grid-column: 1 / -1;
}

.details-section h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-item label {
  font-weight: 500;
  color: #6c757d;
  min-width: 120px;
}

.detail-item span {
  color: #2c3e50;
  text-align: right;
  flex: 1;
}

.proof-image {
  text-align: center;
}

.proof-image img {
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.proof-image p {
  margin-top: 12px;
  font-size: 12px;
  color: #6c757d;
}

.upload-info {
  background: #e3f2fd;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #bbdefb;
}

.upload-info p {
  margin: 4px 0;
  color: #1565c0;
}

.file-upload {
  margin-bottom: 16px;
}

.file-upload input[type="file"] {
  display: none;
}

.file-label {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.file-label:hover {
  background: #2980b9;
}

.file-help {
  margin-top: 8px;
  font-size: 12px;
  color: #6c757d;
}

.selected-file {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  border: 1px solid #f5c6cb;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.btn-cancel {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.btn-cancel:hover:not(:disabled) {
  background: #5a6268;
}

.btn-upload-submit {
  background: #27ae60;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-upload-submit:hover:not(:disabled) {
  background: #229954;
}

.btn-upload-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .refund-management {
    padding: 16px;
  }
  
  .page-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .stats {
    justify-content: center;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .modal {
    margin: 10px;
    max-width: none;
  }
  
  .refund-table {
    font-size: 14px;
  }
  
  .refund-table th,
  .refund-table td {
    padding: 8px;
  }
}.payment-methods-container {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.page-header p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.payment-method-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e5e5;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.payment-method-card.inactive {
  opacity: 0.6;
  background: #f8f8f8;
}

.method-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.method-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.method-icon {
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7ff;
  border-radius: 12px;
}

.method-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.status-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: #e8f5e8;
  color: #2d7d2d;
}

.status-badge.inactive {
  background: #fee;
  color: #d63384;
}

.edit-btn {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.edit-btn:hover {
  background: #e55a2b;
}

.method-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.detail-row .label {
  font-weight: 500;
  color: #666;
  min-width: 120px;
  font-size: 14px;
}

.detail-row .value {
  color: #1a1a1a;
  font-size: 14px;
  flex: 1;
}

.detail-row .value.instructions {
  line-height: 1.5;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: #f0f0f0;
}

.modal-body {
  padding: 0 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid #eee;
  margin-top: 24px;
}

.cancel-btn,
.save-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.cancel-btn {
  background: #f8f9fa;
  color: #666;
}

.cancel-btn:hover {
  background: #e9ecef;
}

.save-btn {
  background: #ff6b35;
  color: white;
}

.save-btn:hover {
  background: #e55a2b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .payment-methods-container {
    padding: 16px;
  }
  
  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
  
  .payment-method-card {
    padding: 16px;
  }
  
  .method-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .modal-content {
    margin: 20px;
    max-width: none;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}.discounts-page {
  padding: 24px;
  max-width: 1600px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
  flex: 1;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 14px;
  color: #718096;
  margin: 0;
}

.admin-cut-badge {
  padding: 12px 24px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

/* Hospital Selection Section */
.hospital-selection-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.hospital-count,
.doctor-count {
  font-size: 13px;
  color: #718096;
  background: #edf2f7;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.search-container {
  position: relative;
  margin-bottom: 20px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}

.hospital-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  position: relative;
}

.hospital-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.hospital-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.hospital-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.hospital-info {
  flex: 1;
  min-width: 0;
}

.hospital-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hospital-info p {
  font-size: 13px;
  color: #718096;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

/* Doctors Section */
.doctors-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doctors-table-container {
  overflow-x: auto;
  margin-top: 16px;
}

.doctors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.doctors-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.doctors-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doctors-table th:first-child {
  border-top-left-radius: 8px;
}

.doctors-table th:last-child {
  border-top-right-radius: 8px;
}

.doctors-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.2s;
}

.doctors-table tbody tr:hover {
  background: #f7fafc;
}

.doctors-table td {
  padding: 14px 16px;
  color: #4a5568;
}

.doctor-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doctor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.doctor-name {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

.verified-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: #48bb78;
  color: white;
  border-radius: 10px;
  font-weight: 500;
}

.discount-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.discount-badge.active {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.discount-badge.inactive {
  background: #edf2f7;
  color: #718096;
}

.video-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.video-badge.enabled {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: white;
}

.video-badge.disabled {
  background: #edf2f7;
  color: #718096;
}

.btn-apply-discount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-apply-discount:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Loading and Empty States */
.loading-state,
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #718096;
}

.empty-state svg {
  margin: 0 auto 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 18px;
  color: #2d3748;
  margin: 0 0 8px 0;
}

.empty-state p {
  font-size: 14px;
  color: #718096;
  margin: 0;
}

/* Alert Messages */
.error-alert,
.success-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  position: relative;
}

.error-alert {
  background: #fed7d7;
  color: #c53030;
  border: 1px solid #fc8181;
}

.success-alert {
  background: #c6f6d5;
  color: #2f855a;
  border: 1px solid #9ae6b4;
}

.error-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: inherit;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-container {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 4px 0;
}

.modal-subtitle {
  font-size: 13px;
  color: #718096;
  margin: 0;
}

.modal-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 28px;
  color: #a0aec0;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #edf2f7;
  color: #2d3748;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  cursor: pointer;
}

.form-group label input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.label-hint {
  float: right;
  font-size: 12px;
  font-weight: 500;
  color: #718096;
}

.input-with-suffix {
  position: relative;
}

.modal-input {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.modal-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: #718096;
}

.input-help {
  font-size: 12px;
  color: #718096;
  margin: 6px 0 0 0;
}

/* Simple Checkbox */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s;
}

.checkbox-container:hover {
  border-color: #cbd5e0;
  background: #f7fafc;
}

.simple-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #667eea;
}

.checkbox-label {
  flex: 1;
  cursor: pointer;
}

.checkbox-label strong {
  display: block;
  font-size: 14px;
  color: #2d3748;
  margin-bottom: 4px;
}

.checkbox-label small {
  display: block;
  font-size: 12px;
  color: #718096;
}

/* Discount Preview */
.discount-preview {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border: 2px solid #667eea;
  border-radius: 8px;
  padding: 16px;
  margin-top: 8px;
}

.discount-preview h4 {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 12px 0;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.preview-row:last-child {
  border-bottom: none;
}

.preview-row span {
  font-size: 13px;
  color: #718096;
}

.preview-row strong {
  font-size: 14px;
  color: #2d3748;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-btn.cancel {
  background: #edf2f7;
  color: #4a5568;
}

.modal-btn.cancel:hover {
  background: #e2e8f0;
}

.modal-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Scrollbar Styling */
.hospitals-grid::-webkit-scrollbar,
.modal-container::-webkit-scrollbar {
  width: 8px;
}

.hospitals-grid::-webkit-scrollbar-track,
.modal-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.hospitals-grid::-webkit-scrollbar-thumb,
.modal-container::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.hospitals-grid::-webkit-scrollbar-thumb:hover,
.modal-container::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}
.privacy-policy-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.privacy-policy-header {
  margin-bottom: 2rem;
}

.privacy-policy-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.privacy-policy-header p {
  color: #718096;
  font-size: 1rem;
}

.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-error {
  background-color: #fed7d7;
  color: #c53030;
  border: 1px solid #fc8181;
}

.alert-success {
  background-color: #c6f6d5;
  color: #2f855a;
  border: 1px solid #9ae6b4;
}

.alert button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-policy-form {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.sections-container {
  margin-top: 2rem;
}

.sections-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sections-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
}

.btn-add-section {
  background-color: #48bb78;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-add-section:hover {
  background-color: #38a169;
}

.section-card {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
}

.btn-remove-section {
  background-color: #fc8181;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-remove-section:hover {
  background-color: #f56565;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

.btn-save {
  background-color: #4299e1;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-save:hover:not(:disabled) {
  background-color: #3182ce;
}

.btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.current-policy-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #edf2f7;
  border-radius: 0.75rem;
}

.current-policy-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
}

.current-policy-info p {
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.current-policy-info strong {
  color: #2d3748;
  font-weight: 600;
}

@media (max-width: 768px) {
  .privacy-policy-container {
    padding: 1rem;
  }

  .privacy-policy-header h1 {
    font-size: 1.5rem;
  }

  .privacy-policy-form {
    padding: 1.5rem;
  }

  .sections-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .btn-add-section {
    width: 100%;
  }
}
