* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(145deg, #f0f9ff 0%, #e6f0fa 100%);
  color: #1a2c3e;
  scroll-behavior: smooth;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background: #0f1724;
  color: #eef2ff;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(135deg, #0b4f6c, #2ba0c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2ba0c4, #0b4f6c);
  border-radius: 2px;
  margin: 12px auto 0;
}

.glass-card, .doctor-card, .specialty-card, .dashboard-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.5);
}

body.dark .glass-card,
body.dark .doctor-card,
body.dark .dashboard-card {
  background: rgba(20, 30, 45, 0.9);
  border-color: #2d3a4a;
}

.glass-card:hover, .doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 40px -12px rgba(0, 110, 130, 0.25);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 1rem 2rem;
}

body.dark .navbar {
  background: rgba(20, 30, 45, 0.96);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0b4f6c, #2ba0c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #1e3a4d;
  transition: 0.2s;
}

body.dark .nav-links a {
  color: #eef2ff;
}

.nav-links a:hover { color: #2ba0c4; }

.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(95deg, #0b4f6c, #2ba0c4);
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 6px 14px rgba(0,110,130,0.3);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0,110,130,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid #2ba0c4;
  color: #0b4f6c;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
}

body.dark .btn-outline {
  color: #2ba0c4;
}

.btn-danger {
  background: linear-gradient(95deg, #c4302b, #e05a54);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.btn-success {
  background: linear-gradient(95deg, #2d6a4f, #40916c);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 16px;
  font-size: 1rem;
  transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2ba0c4;
  box-shadow: 0 0 0 3px rgba(43,160,196,0.2);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.skeleton-card {
  background: linear-gradient(90deg, #e0e7ef 25%, #f0f5fa 50%, #e0e7ef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 28px;
  height: 320px;
}

body.dark .skeleton-card {
  background: linear-gradient(90deg, #1a2533 25%, #2a3545 50%, #1a2533 75%);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dashboard-container {
  display: flex;
  min-height: calc(100vh - 80px);
}

.sidebar {
  width: 260px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  padding: 2rem 1rem;
  border-radius: 28px;
  margin: 1rem;
}

body.dark .sidebar {
  background: rgba(20, 30, 45, 0.9);
}

.sidebar a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #1e3a4d;
  border-radius: 16px;
  margin-bottom: 8px;
  transition: 0.2s;
  cursor: pointer;
}

body.dark .sidebar a {
  color: #eef2ff;
}

.sidebar a:hover,
.sidebar a.active {
  background: linear-gradient(95deg, #0b4f6c, #2ba0c4);
  color: white;
}

.main-content {
  flex: 1;
  padding: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2ba0c4;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 20px;
  overflow: hidden;
}

body.dark .data-table {
  background: #1a2533;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

body.dark .data-table th,
body.dark .data-table td {
  border-bottom-color: #2d3a4a;
}

.data-table th {
  background: #f5f5f5;
  font-weight: 700;
}

body.dark .data-table th {
  background: #2a3545;
}

.filters-section {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 28px;
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.filter-group input,
.filter-group select {
  padding: 10px 16px;
  border-radius: 40px;
  border: 1px solid #ccc;
  flex: 1;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: white;
  border-radius: 8px;
  cursor: pointer;
}

.pagination button.active {
  background: #2ba0c4;
  color: white;
  border-color: #2ba0c4;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 28px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

body.dark .modal-content {
  background: #1a2533;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 100;
  transition: 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

footer {
  background: #0f2c38;
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
}

body.dark footer {
  background: #08141c;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 70%;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 2rem;
    transition: 0.3s;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
  }
  
  body.dark .nav-links {
    background: #1a2533;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .menu-icon {
    display: block;
  }
  
  .dashboard-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: auto;
    margin: 0 1rem 1rem 1rem;
  }
  
  .sidebar a {
    display: inline-block;
    margin-right: 8px;
  }
  
  .filter-group {
    flex-direction: column;
  }
  
  .filter-group input,
  .filter-group select {
    width: 100%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}