/**
 * Main Stylesheet
 * Consult by Ayushmednest
 */

:root {
  /* Brand Colors */
  --calm-green: #3FA476;
  --trust-blue: #4A90E2;
  --white: #FFFFFF;
  --mint: #E5F7F1;
  --light-gray: #F8F9FA;
  --dark-gray: #343A40;
  --medium-gray: #6C757D;
  --danger: #DC3545;
  --success: #28A745;
  --warning: #FFC107;
  --info: #17A2B8;
}

/* Base Styles */
body {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--light-gray);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

a {
  color: var(--trust-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--calm-green);
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--calm-green);
  border-color: var(--calm-green);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #348e64;
  border-color: #348e64;
}

.btn-secondary {
  background-color: var(--trust-blue);
  border-color: var(--trust-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #3a7bc2;
  border-color: #3a7bc2;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--calm-green);
  color: var(--calm-green);
}

.btn-outline:hover {
  background-color: var(--calm-green);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--white);
  background-clip: border-box;
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 1.25rem 1.5rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.card-body {
  flex: 1 1 auto;
  padding: 1.5rem;
}

.card-footer {
  padding: 1.25rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.125);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

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

.form-control {
  display: block;
  width: 100%;
  height: calc(2.5rem + 2px);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark-gray);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 10px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: var(--dark-gray);
  background-color: var(--white);
  border-color: var(--calm-green);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(63, 164, 118, 0.25);
}

textarea.form-control {
  height: auto;
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Navigation */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.nav-link:hover, .nav-link:focus {
  color: var(--calm-green);
}

.nav-link.active {
  color: var(--calm-green);
  font-weight: 600;
}

@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-flow: row nowrap;
    justify-content: flex-start;
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--mint) 0%, #ffffff 100%);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--medium-gray);
}

/* Doctor Card */
.doctor-card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

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

.doctor-card .verified-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--success);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.doctor-info {
  padding: 20px;
}

.doctor-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.doctor-specialty {
  color: var(--medium-gray);
  margin-bottom: 10px;
}

.doctor-rating {
  color: var(--warning);
  margin-bottom: 15px;
}

.doctor-fee {
  font-weight: 600;
  color: var(--calm-green);
  margin-bottom: 15px;
}

/* Specialty Icons */
.specialty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  background-color: var(--mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.specialty-icon:hover {
  background-color: var(--calm-green);
  color: var(--white);
}

.specialty-icon i {
  font-size: 2rem;
  color: var(--calm-green);
}

.specialty-icon:hover i {
  color: var(--white);
}

/* Testimonials */
.testimonial {
  text-align: center;
  padding: 30px;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.testimonial-role {
  color: var(--medium-gray);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-links h5 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.25rem;
}

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

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* Utilities */
.text-primary {
  color: var(--calm-green) !important;
}

.text-secondary {
  color: var(--trust-blue) !important;
}

.bg-primary {
  background-color: var(--calm-green) !important;
}

.bg-secondary {
  background-color: var(--trust-blue) !important;
}

.bg-light {
  background-color: var(--light-gray) !important;
}

.bg-mint {
  background-color: var(--mint) !important;
}

.rounded {
  border-radius: 10px !important;
}

.shadow {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
}

/* Dashboard Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 250px;
  z-index: 100;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--dark-gray);
  transition: all 0.3s;
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 40px);
  padding-top: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar .nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.75rem 1rem;
  border-radius: 5px;
  margin-bottom: 5px;
}

.sidebar .nav-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
  color: var(--white);
  background-color: var(--calm-green);
}

.sidebar .nav-link i {
  margin-right: 10px;
}

.sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 1rem;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  padding: 20px;
  transition: all 0.3s;
}

@media (max-width: 991.98px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .main-content {
    margin-left: 0;
  }
}

/* Responsive */
@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Consultation Room */
.consultation-room {
  background-color: var(--dark-gray);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consultation-controls {
  display: flex;
  justify-content: center;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.5);
}

.control-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.control-btn.end-call {
  background-color: var(--danger);
}

.control-btn.end-call:hover {
  background-color: #bd2130;
}

/* Appointment Calendar */
.calendar {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--calm-green);
  color: var(--white);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #eee;
}

.calendar-day {
  background-color: var(--white);
  padding: 10px;
  min-height: 100px;
}

.calendar-day.today {
  background-color: var(--mint);
}

.calendar-day.has-events {
  position: relative;
}

.calendar-day.has-events::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--trust-blue);
}

/* Alerts */
.alert {
  position: relative;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-primary {
  color: var(--white);
  background-color: var(--calm-green);
}

.badge-secondary {
  color: var(--white);
  background-color: var(--trust-blue);
}

.badge-success {
  color: var(--white);
  background-color: var(--success);
}

.badge-danger {
  color: var(--white);
  background-color: var(--danger);
}

.badge-warning {
  color: var(--dark-gray);
  background-color: var(--warning);
}

.badge-info {
  color: var(--white);
  background-color: var(--info);
}

/* Prescription */
.prescription {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.prescription-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.prescription-logo {
  max-width: 150px;
}

.prescription-doctor {
  text-align: right;
}

.prescription-doctor h4 {
  margin-bottom: 5px;
}

.prescription-doctor p {
  margin-bottom: 5px;
  color: var(--medium-gray);
}

.prescription-patient {
  margin-bottom: 30px;
}

.prescription-patient h5 {
  margin-bottom: 10px;
}

.prescription-patient p {
  margin-bottom: 5px;
}

.prescription-medicines {
  margin-bottom: 30px;
}

.prescription-medicine {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.prescription-medicine:last-child {
  border-bottom: none;
}

.prescription-notes {
  background-color: var(--mint);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.prescription-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

.prescription-signature {
  text-align: center;
}

.prescription-signature img {
  max-width: 150px;
  margin-bottom: 10px;
}

/* Loader */
.loader {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.loader:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid var(--calm-green);
  border-color: var(--calm-green) transparent var(--calm-green) transparent;
  animation: loader 1.2s linear infinite;
}

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

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Admin Dashboard */
.admin-sidebar {
  background-color: #212529;
}

.admin-main {
  background-color: var(--light-gray);
}

.stat-card {
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-card .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.stat-card .stat-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-card .stat-label {
  color: var(--medium-gray);
  font-size: 0.875rem;
}

/* Table */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--dark-gray);
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
  background-color: var(--light-gray);
}

.table tbody + tbody {
  border-top: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

/* Pagination */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.25rem;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: var(--calm-green);
  background-color: var(--white);
  border: 1px solid #dee2e6;
}

.page-link:hover {
  z-index: 2;
  color: var(--calm-green);
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-item.active .page-link {
  z-index: 3;
  color: var(--white);
  background-color: var(--calm-green);
  border-color: var(--calm-green);
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  cursor: auto;
  background-color: var(--white);
  border-color: #dee2e6;
}

/* Responsive Utilities */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

@media (min-width: 576px) {
  .d-sm-none {
    display: none !important;
  }
  
  .d-sm-block {
    display: block !important;
  }
  
  .d-sm-flex {
    display: flex !important;
  }
}

@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }
  
  .d-md-block {
    display: block !important;
  }
  
  .d-md-flex {
    display: flex !important;
  }
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }
  
  .d-lg-block {
    display: block !important;
  }
  
  .d-lg-flex {
    display: flex !important;
  }
}

@media (min-width: 1200px) {
  .d-xl-none {
    display: none !important;
  }
  
  .d-xl-block {
    display: block !important;
  }
  
  .d-xl-flex {
    display: flex !important;
  }
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, 
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
  .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
  .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1200px) {
  .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
  .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Spacing Utilities */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mr-0 { margin-right: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }

.m-1 { margin: 0.25rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.ml-1 { margin-left: 0.25rem !important; }

.m-2 { margin: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.ml-2 { margin-left: 0.5rem !important; }

.m-3 { margin: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.ml-3 { margin-left: 1rem !important; }

.m-4 { margin: 1.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.ml-4 { margin-left: 1.5rem !important; }

.m-5 { margin: 3rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mr-5 { margin-right: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.ml-5 { margin-left: 3rem !important; }

.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pr-0 { padding-right: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }

.p-1 { padding: 0.25rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pr-1 { padding-right: 0.25rem !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pl-1 { padding-left: 0.25rem !important; }

.p-2 { padding: 0.5rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pl-2 { padding-left: 0.5rem !important; }

.p-3 { padding: 1rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pl-3 { padding-left: 1rem !important; }

.p-4 { padding: 1.5rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pl-4 { padding-left: 1.5rem !important; }

.p-5 { padding: 3rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pr-5 { padding-right: 3rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.pl-5 { padding-left: 3rem !important; }

/* Text Utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.font-weight-light { font-weight: 300 !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-bold { font-weight: 700 !important; }

.text-white { color: var(--white) !important; }
.text-muted { color: var(--medium-gray) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }

/* Border Utilities */
.border { border: 1px solid #dee2e6 !important; }
.border-top { border-top: 1px solid #dee2e6 !important; }
.border-right { border-right: 1px solid #dee2e6 !important; }
.border-bottom { border-bottom: 1px solid #dee2e6 !important; }
.border-left { border-left: 1px solid #dee2e6 !important; }

.border-0 { border: 0 !important; }
.border-top-0 { border-top: 0 !important; }
.border-right-0 { border-right: 0 !important; }
.border-bottom-0 { border-bottom: 0 !important; }
.border-left-0 { border-left: 0 !important; }

.border-primary { border-color: var(--calm-green) !important; }
.border-secondary { border-color: var(--trust-blue) !important; }
.border-success { border-color: var(--success) !important; }
.border-danger { border-color: var(--danger) !important; }
.border-warning { border-color: var(--warning) !important; }
.border-info { border-color: var(--info) !important; }

/* Responsive Images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-thumbnail {
  padding: 0.25rem;
  background-color: var(--white);
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  max-width: 100%;
  height: auto;
}

/* Accessibility */
.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;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  a[href]:after {
    content: none !important;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
}
/* AyushMedNest Homepage Styles */
.hero-section {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 200px;
}

.hero-buttons .btn-light {
    background: white;
    color: #2C3E50;
    border-color: white;
}

.hero-buttons .btn-light:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.hero-buttons .btn-outline-light:hover {
    background: white;
    color: #2C3E50;
}

.hero-stats {
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.hero-stats .stat-item h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-stats .stat-item p {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.features-section {
    padding: 80px 0;
    background: #fafafa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #4ECDC4;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    background: #4ECDC4;
}

.feature-icon.video-icon { background: #FF6B6B; }
.feature-icon.voice-icon { background: #4ECDC4; }
.feature-icon.prescription-icon { background: #45B7D1; }
.feature-icon.pharmacy-icon { background: #96CEB4; }
.feature-icon.secure-icon { background: #FECA57; }
.feature-icon.availability-icon { background: #FF9FF3; }
.feature-icon.verified-icon { background: #54A0FF; }
.feature-icon.pricing-icon { background: #5F27CD; }

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.brand-strip {
    background: #f8f9fa;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.cta-band {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-band h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-band p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    margin: 0.5rem;
}

/* Doctor Cards Section */
.doctors-section {
    padding: 80px 0;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    font-size: 1rem;
}

.search-box input:focus {
    border-color: #4ECDC4;
    box-shadow: 0 0 0 0.2rem rgba(78, 205, 196, 0.25);
}

.doctor-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.doctor-image {
    position: relative;
    text-align: center;
    padding: 20px 20px 0;
}

.doctor-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
}

.availability-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.doctor-info {
    padding: 20px;
    text-align: center;
}

.doctor-info h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

.speciality {
    color: #4ECDC4;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.experience {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.rating {
    margin-bottom: 1rem;
}

.stars {
    color: #FFD700;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.rating-text {
    color: #666;
    font-weight: 600;
}

.consultation-fee {
    margin-bottom: 1.5rem;
}

.consultation-fee strong {
    font-size: 1.3rem;
    color: #2C3E50;
}

.fee-label {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-top: 2px;
}

.doctor-card .btn-primary {
    background: #4ECDC4;
    border-color: #4ECDC4;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
}

.doctor-card .btn-primary:hover {
    background: #44A08D;
    border-color: #44A08D;
}

/* Header Updates */
#header {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.logo img {
    height: 45px;
    width: auto;
}

/* Horizontal Menu Layout */
.navbar ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar ul li {
    margin: 0 5px;
}

.navbar ul li a {
    color: #2C3E50;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    background: #4ECDC4;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .doctor-card {
        margin-bottom: 2rem;
    }
}
/* ===== Header / Bottom-nav safe area fix =====
   Ensures fixed header and mobile bottom nav do not cover content,
   and ensures in-page anchors & flash messages are visible.
   Adjust --header-height and --bottom-nav-height only if needed.
*/
:root{
  --header-height: 90px;    /* default header height (desktop) */
  --header-height-mobile: 110px; /* default for mobile stacked header */
  --bottom-nav-height: 0px; /* if you have mobile bottom nav, JS will set it */
}

/* Make room for header and any bottom nav */
body {
  padding-top: var(--header-height);
  padding-bottom: var(--bottom-nav-height);
  /* ensure anchor scrolling accounts for fixed header */
  scroll-padding-top: calc(var(--header-height) + 8px);
}

/* If header becomes taller on small screens (stacked nav), use a larger value */
@media (max-width: 991.98px){
  body {
    padding-top: var(--header-height-mobile);
    scroll-padding-top: calc(var(--header-height-mobile) + 8px);
  }
}

/* Extra safety for flash messages: ensure they sit below header */
.container > .alert,
.container > .alert + .alert {
  margin-top: 1rem;
}

/* If a specific page element (like .mobile-bottom-nav) exists, give bottom spacing */
.mobile-bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1200;
  /* keep its own native height so JS can compute it */
}

/* Prevent the header from overlapping the top of fixed-top elements inside pages */
#header {
  z-index: 1300; /* keep header above most things */
}

/* Minor visual tweak: make sure the topmost content isn't hidden by overflow/clip */
main#main-content {
  position: relative;
  z-index: 1;
}
/* Accessibility: visually-hide skip link until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  background: #fff;
  color: #2C3E50;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(15,77,62,0.08);
}
.skip-link:focus {
  left: 16px;
  top: 80px;         /* show slightly below header */
  width: auto;
  height: auto;
  overflow: visible;
  text-decoration: none;
}

/* Ensure main content sits below the fixed header so alerts are visible */
header#header.fixed-top {
  height: auto;
  z-index: 1100;
}
main#main-content {
  /* adjust top padding equal (or slightly larger) than your header height */
  padding-top: 110px; /* tweak this value if header height changes */
}

/* smaller screens need a smaller offset */
@media (max-width: 767px) {
  .skip-link:focus { top: 110px; } /* when mobile, show below mobile header */
  main#main-content { padding-top: 140px; }
}

/* If you still see overlap for anchor-targets, increase these values slightly */
/* Skip link — hidden until keyboard focus (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}

.skip-link:focus {
  left: 16px;
  top: 80px; /* adjust if your header height differs */
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #ffffff;
  color: #0f4d3e;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

