/* 
 * MediSlot - ThemeForest "Medical Clinic" Theme
 * Complete UI Styling
 */

:root {
  --mc-blue-dark: #1b4b82;      /* Deep Header & Dark Accent Blue */
  --mc-blue-primary: #2b6cb0;   /* Primary Brand Blue */
  --mc-cyan-accent: #00b5d8;    /* Vibrant Aqua/Cyan */
  --mc-cyan-light: #e6f8fa;     /* Light Cyan Card Background */
  --mc-blue-light: #ebf8ff;     /* Light Blue Background Tint */
  --mc-dark-bg: #1a202c;        /* Footer Dark Background */
  --mc-dark-card: #2d3748;      /* Footer Card/Input Dark Background */
  --mc-text-main: #2d3748;      /* Main Body Text */
  --mc-text-muted: #718096;     /* Muted Grey Text */
  --mc-line: #e2e8f0;           /* Subtle Border Line */
  --mc-white: #ffffff;
  
  --font-headings: 'Figtree', system-ui, -apple-system, sans-serif;
  --font-body: 'Noto Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--mc-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1200px, 92%);
  margin: auto;
}

.page-content {
  background: #f4fbfc;
  flex: 1 0 auto;
  padding: 20px 0 70px;
}

.admin-footer {
  background: var(--mc-dark-bg);
  color: #a0aec0;
  padding: 18px 0;
  border-top: 1px solid #2d3748;
  margin-top: auto;
}

a {
  color: var(--mc-cyan-accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--mc-blue-primary);
}

/* --- Top Header Contact Bar --- */
.top-header-bar {
  background: rgba(27, 75, 130, 0.95);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;
}

.top-header-container {
  width: min(1200px, 92%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-header-links {
  display: flex;
  gap: 18px;
}

.top-header-links a {
  color: rgba(255, 255, 255, 0.85);
}

.top-header-links a:hover {
  color: var(--mc-cyan-accent);
}

.top-header-socials {
  display: flex;
  gap: 14px;
}

.top-header-socials a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

/* --- Main Navigation Header --- */
.nav-main-header {
  background: var(--mc-blue-primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.nav-container {
  width: min(1200px, 92%);
  margin: auto;
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: var(--font-headings);
  font-size: 24px;
  font-weight: 300;
}

.brand-logo strong {
  font-weight: 800;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-menu a:hover, .nav-menu a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.user-badge small {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  text-transform: uppercase;
}

/* --- Hero Banner Slider --- */
.hero-slider {
  position: relative;
  min-height: 520px;
  background: linear-gradient(90deg, rgba(27, 75, 130, 0.92) 0%, rgba(27, 75, 130, 0.75) 45%, rgba(27, 75, 130, 0.25) 100%), url('https://images.unsplash.com/photo-1584515979956-d9f6e5d09982?q=80&w=1600&auto=format&fit=crop') right center / cover no-repeat;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.hero-container {
  width: min(1200px, 92%);
  margin: auto;
  padding: 60px 0;
}

.hero-subtitle {
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mc-cyan-accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-headings);
  font-size: 44px;
  font-weight: 700;
  max-width: 600px;
  line-height: 1.2;
  margin: 0 0 24px;
}

.hero-btns {
  display: flex;
  gap: 14px;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-glass:hover {
  background: #ffffff;
  color: var(--mc-blue-primary);
}

.btn-cyan {
  background: var(--mc-cyan-accent);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-cyan:hover {
  background: #009dbb;
}

/* --- Quick Contact 3-Column Bar --- */
.quick-contact-bar {
  background: #ffffff;
  padding: 30px 0;
  border-bottom: 1px solid var(--mc-line);
}

.quick-contact-grid {
  width: min(1200px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.quick-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quick-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--mc-cyan-accent);
  color: var(--mc-cyan-accent);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: none;
}

.quick-contact-text label {
  display: block;
  font-size: 12px;
  color: var(--mc-text-muted);
  margin: 0 0 2px;
  font-weight: 600;
  text-transform: uppercase;
}

.quick-contact-text strong {
  font-size: 18px;
  color: var(--mc-text-main);
  font-family: var(--font-headings);
}

/* --- Feature Trio Cards --- */
.feature-trio-grid {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trio-card {
  padding: 40px;
  color: #ffffff;
}

.trio-card.card-light-cyan {
  background: #00b5d8;
}

.trio-card.card-med-blue {
  background: #008da8;
}

.trio-card.card-dark-blue {
  background: #1b4b82;
}

.trio-card h3 {
  font-size: 24px;
  font-family: var(--font-headings);
  margin: 0 0 14px;
  color: #ffffff;
}

.trio-card p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hours-list li:last-child {
  border-bottom: 0;
}

/* --- Section Title --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 60px auto 40px;
}

.section-header h2 {
  font-size: 32px;
  font-family: var(--font-headings);
  color: var(--mc-blue-dark);
  margin: 0 0 10px;
}

.section-header p {
  color: var(--mc-text-muted);
  font-size: 16px;
}

/* --- 4 Feature Pillars Grid --- */
.pillars-grid {
  width: min(1200px, 92%);
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.pillar-item {
  text-align: center;
  padding: 20px;
}

.pillar-icon {
  font-size: 42px;
  color: var(--mc-cyan-accent);
  margin-bottom: 14px;
}

.pillar-item h4 {
  font-size: 18px;
  font-family: var(--font-headings);
  color: var(--mc-text-main);
  margin: 0 0 10px;
}

.pillar-item p {
  font-size: 13.5px;
  color: var(--mc-text-muted);
  line-height: 1.6;
}

/* --- Departments & Services Grid --- */
.services-dept-grid {
  width: min(1200px, 92%);
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.dept-sidebar {
  background: var(--mc-blue-primary);
  color: #ffffff;
  padding: 30px 24px;
  border-radius: 8px;
}

.dept-sidebar h3 {
  font-size: 22px;
  color: #ffffff;
  margin: 0 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.dept-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dept-sidebar li a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
}

.dept-sidebar li a:hover {
  color: #ffffff;
  padding-left: 6px;
}

.dept-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dept-card {
  background: #ffffff;
  border: 1px solid var(--mc-line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.dept-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.dept-badge-icon {
  position: absolute;
  top: 120px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: var(--mc-cyan-accent);
  color: #ffffff;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.dept-card-body {
  padding: 16px;
}

.dept-card-body h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-family: var(--font-headings);
  color: var(--mc-text-main);
}

.dept-card-body span {
  font-size: 12px;
  color: var(--mc-text-muted);
}

/* --- Testimonials Section --- */
.testimonials-section {
  background: linear-gradient(rgba(27, 75, 130, 0.85), rgba(27, 75, 130, 0.85)), url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  color: #ffffff;
  padding: 70px 0;
  text-align: center;
}

.testimonials-grid {
  width: min(1200px, 92%);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: #ffffff;
  color: var(--mc-text-main);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-head {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.testimonial-head.head-cyan { background: var(--mc-cyan-accent); }
.testimonial-head.head-blue { background: var(--mc-blue-primary); }
.testimonial-head.head-dark { background: var(--mc-blue-dark); }

.testimonial-head img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.testimonial-head strong {
  display: block;
  font-size: 15px;
}

.testimonial-head small {
  opacity: 0.85;
  font-size: 12px;
}

.testimonial-body {
  padding: 20px;
  font-size: 14px;
  color: var(--mc-text-muted);
  line-height: 1.6;
}

/* --- Live Stats Banner --- */
.stats-banner {
  background: var(--mc-cyan-accent);
  color: #ffffff;
  padding: 40px 0;
}

.stats-grid {
  width: min(1200px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 38px;
  font-family: var(--font-headings);
  font-weight: 800;
}

.stat-box span {
  font-size: 14px;
  opacity: 0.9;
}

/* --- Doctors Team Grid --- */
.doctors-team-grid {
  width: min(1200px, 92%);
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.doctor-team-card {
  background: #ffffff;
  border: 1px solid var(--mc-line);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease;
}

.doctor-team-card:hover {
  transform: translateY(-4px);
}

.doctor-team-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
}

.doctor-team-info {
  padding: 16px;
}

.doctor-team-info h4 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--mc-text-main);
  font-family: var(--font-headings);
}

.doctor-team-info p {
  margin: 0;
  font-size: 13px;
  color: var(--mc-cyan-accent);
  font-weight: 600;
}

/* --- Newsletter Bar --- */
.newsletter-bar {
  background: var(--mc-cyan-accent);
  color: #ffffff;
  padding: 34px 0;
}

.newsletter-container {
  width: min(1200px, 92%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  padding: 12px 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 320px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.newsletter-form button {
  background: #ffffff;
  color: var(--mc-blue-primary);
  border: 0;
  border-radius: 4px;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
}

/* --- Dark Agency Footer --- */
.dark-footer {
  background: var(--mc-dark-bg);
  color: #a0aec0;
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer-columns {
  width: min(1200px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-headings);
  font-size: 18px;
  margin: 0 0 20px;
  border-bottom: 2px solid var(--mc-cyan-accent);
  display: inline-block;
  padding-bottom: 6px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #a0aec0;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1200px, 92%);
  margin: auto;
  padding-top: 24px;
  border-top: 1px solid #2d3748;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--mc-blue-primary);
  color: #ffffff;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 99;
}

@media (max-width: 900px) {
  .top-header-container, .nav-container, .quick-contact-grid, .feature-trio-grid, .pillars-grid, .services-dept-grid, .dept-cards-grid, .testimonials-grid, .stats-grid, .doctors-team-grid, .newsletter-container, .footer-columns {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }
}

/* --- Login & Auth Card Styling --- */
.auth-wrapper {
  padding: 60px 0 80px;
  background: var(--mc-blue-light);
  display: flex;
  justify-content: center;
}

.auth-card-modern {
  width: min(480px, 92%);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(27, 75, 130, 0.12);
  overflow: hidden;
  border: 1px solid var(--mc-line);
}

.auth-card-header {
  background: var(--mc-blue-primary);
  color: #ffffff;
  padding: 24px 30px;
  text-align: center;
}

.auth-card-header h2 {
  font-family: var(--font-headings);
  font-size: 22px;
  margin: 0 0 6px;
  color: #ffffff;
}

.auth-card-header p {
  margin: 0;
  opacity: 0.85;
  font-size: 13.5px;
}

.auth-card-body {
  padding: 30px;
}

.auth-form-group {
  margin-bottom: 18px;
}

.auth-form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mc-text-main);
  margin-bottom: 6px;
}

.auth-form-group input, .auth-form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mc-line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
}

.auth-form-group input:focus, .auth-form-group select:focus {
  outline: none;
  border-color: var(--mc-cyan-accent);
  box-shadow: 0 0 0 3px rgba(0, 181, 216, 0.2);
}

.demo-credentials-box {
  background: var(--mc-cyan-light);
  border: 1px solid #b2f5ea;
  border-radius: 8px;
  padding: 16px;
  margin-top: 24px;
  font-size: 13px;
}

.demo-credentials-box h5 {
  margin: 0 0 8px;
  font-family: var(--font-headings);
  color: var(--mc-blue-dark);
  font-size: 14px;
}

.demo-credential-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(0, 181, 216, 0.3);
}

.demo-credential-item:last-child {
  border-bottom: 0;
}

/* --- Admin & Portal Inner Pages Styling --- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--mc-cyan-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.page-head h1 {
  font-family: var(--font-headings);
  font-size: 30px;
  color: var(--mc-blue-dark);
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 24px 0 34px;
}

.stat {
  background: #ffffff;
  border: 1px solid var(--mc-line);
  border-top: 4px solid var(--mc-cyan-accent);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(27, 75, 130, 0.05);
  transition: transform 0.2s ease;
}

.stat:hover {
  transform: translateY(-2px);
}

.stat strong {
  font-size: 36px;
  font-family: var(--font-headings);
  color: var(--mc-blue-dark);
  display: block;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat span {
  color: var(--mc-text-muted);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--mc-line);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(27, 75, 130, 0.05);
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th {
  background: #f0f7ff;
  color: var(--mc-blue-dark);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 2px solid var(--mc-line);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mc-line);
  color: var(--mc-text-main);
  vertical-align: middle;
}

tr:hover td {
  background: #f8fafc;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.badge.scheduled {
  background: #e6f6ff;
  color: #007791;
  border: 1px solid #b3e5fc;
}

.badge.checked_in {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge.in_consultation {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.badge.completed {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.badge.cancelled {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}

.badge.no_show {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.btn-glass-sm {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-glass-sm:hover {
  background: #ffffff;
  color: var(--mc-blue-primary);
}

/* --- Cards, Forms & Generic Layout Utilities --- */
.card {
  background: #ffffff;
  border: 1px solid var(--mc-line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(27, 75, 130, 0.05);
  margin-bottom: 24px;
}

.filter.card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  background: #ffffff;
}

.filter input, .filter select {
  padding: 10px 14px;
  border: 1px solid var(--mc-line);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}

.filter input:focus, .filter select:focus {
  border-color: var(--mc-cyan-accent);
}

.filter input[name="search"] {
  min-width: 260px;
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--mc-cyan-accent);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}

.btn:hover {
  background: #009dbb;
}

.btn.secondary {
  background: #edf2f7;
  color: var(--mc-text-main) !important;
  border: 1px solid var(--mc-line);
}

.btn.secondary:hover {
  background: #e2e8f0;
}

.btn.danger {
  background: #e53e3e;
  color: #ffffff !important;
}

.btn.danger:hover {
  background: #c53030;
}

.btn.small {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 4px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: flex-end;
}

.grid4 select, .grid4 input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--mc-line);
  border-radius: 6px;
}

.form-card label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--mc-text-main);
}

.form-card input, .form-card select, .form-card textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--mc-line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 16px;
}

.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none;
  border-color: var(--mc-cyan-accent);
  box-shadow: 0 0 0 3px rgba(0, 181, 216, 0.15);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.doctor-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.doctor-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mc-blue-primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  flex: none;
}

.doctor-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-headings);
  font-size: 18px;
  color: var(--mc-blue-dark);
}

.doctor-card p {
  margin: 0 0 10px;
  font-size: 13.5px;
}

.inline-update {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-update select {
  padding: 6px 10px;
  border: 1px solid var(--mc-line);
  border-radius: 4px;
  font-size: 13px;
}

.muted {
  color: var(--mc-text-muted);
  font-size: 13px;
}

.center {
  text-align: center;
}

.slot-groups h3 {
  font-size: 16px;
  font-family: var(--font-headings);
  color: var(--mc-blue-dark);
  margin: 20px 0 10px;
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--mc-line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.slot:has(input:checked) {
  border-color: var(--mc-cyan-accent);
  background: var(--mc-cyan-light);
  font-weight: 600;
  color: var(--mc-blue-dark);
}

/* --- Strict Pagination & SVG Sizing Fix --- */
.pagination, nav[role="navigation"] {
  margin-top: 28px;
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hide duplicate uncompiled Tailwind mobile block */
nav[role="navigation"] > div.sm\:hidden,
nav[role="navigation"] > div:first-child:not(:only-child) {
  display: none !important;
}

nav[role="navigation"] > div {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.pagination svg, nav[role="navigation"] svg, svg.w-5.h-5 {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

nav[role="navigation"] span.relative, nav[role="navigation"] a.relative {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--mc-line);
  background: #ffffff;
  color: var(--mc-blue-dark);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

nav[role="navigation"] a.relative:hover {
  background: var(--mc-cyan-light);
  border-color: var(--mc-cyan-accent);
}

