﻿/* 1) Box-sizing */
html {
    box-sizing: border-box;
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* 2) Base font sizing */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* 3) Focus outlines */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  margin: 0;
  margin-bottom: 60px;
  margin-top: 50px;
  background: linear-gradient(135deg, #1439ba61 0%, #48c6ef38 100%);   /* or whatever your app bg is */
  /* no display:flex here any more */
}

/* 4) .auth-page background & flex centering */
.auth-page {
    margin: 0;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #1439ba61 0%, #48c6ef38 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5) Two-pane login layout */
.login-container {
    max-width: 900px;
    width: 100%;
    height: 600px;
    margin: 2rem auto;
    display: flex;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
}

.login-image {
    flex: 1;
    background: url('/images/login-bg.jpg') center/cover no-repeat;
}

.login-form {
    flex: 1;
    background: #fff;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    /* 6) Brand & floating labels */
    .login-form .brand {
        text-align: center;
        margin-bottom: 0.5rem;
        font-size: 1.75rem;
        font-weight: 700;
        color: #333;
    }

    .login-form .form-floating > .form-control:focus ~ label,
    .login-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
        opacity: 1;
        transform: scale(.85) translateY(-0.5rem);
    }

    /* 7) Button & link tweaks */
    .login-form .btn-primary {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        border-radius: 0.5rem;
    }

    .login-form .text-muted a {
        color: #48c6ef;
        text-decoration: none;
    }

        .login-form .text-muted a:hover {
            text-decoration: underline;
        }

/* 8) Mobile: stack panels & hide image */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column-reverse;
        height: 800px;
        margin: 1rem auto;
    }

    .login-form {
        padding: 1rem;
    }
}

/* Hero banner */
.dashboard-hero {
    background: linear-gradient(135deg, #48c6ef80 0%, #1439ba80 100%);
    color: #fff;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    margin-bottom: 2rem;
  }
  .dashboard-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  .dashboard-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
  }
  
  /* Quick-action cards */
  .quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
  }
  .action-card {
    flex: 1 1 200px;
    max-width: 260px;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
    padding: 1.75rem 1rem;
    text-align: center;
    color: #333;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
  }
  .action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  }
  .action-card i {
    color: #48c6ef;
  }
  .action-card span {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
  }
  
  /* Search bar */
  .search-container .input-group {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.05);
    border-radius: 0.5rem;
    overflow: hidden;
  }
  .search-container .input-group-text {
    background: #fff;
    border: none;
    font-size: 1.2rem;
    color: #888;
  }
  .search-container .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  /* Table wrapper */
  .table-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
    padding: 1rem;
  }
  .table-card table {
    margin-bottom: 0;
  }
  .table-card thead {
    background: #48c6ef;
    color: #fff;
  }
  .table-card tbody tr:hover {
    background: #f0f8ff;
  }
  
  /* Responsive tweaks */
  @media (max-width: 576px) {
    .dashboard-hero h1 { font-size: 2rem; }
    .quick-actions { gap: 0.5rem; }
  }

  /* widen form card on desktop so two columns fit nicely */

  @media (min-width: 768px) {
    .form-card {
      max-width: 800px;
    }
  }
  /* Form card wrapper */
.form-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 1000px;
  margin-bottom: 2rem;
}

/* Floating-label tweak inside form-card */
.form-card .form-floating > .form-control:focus ~ label,
.form-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 1;
  transform: scale(.85) translateY(-0.5rem);
}

/* Button full-width consistency */
.form-card .btn {
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-left: 25%;
}

/* Adjust hero margins on form pages */
.dashboard-hero {
  margin-bottom: 0.5rem;
}
/* Container for filter + stats cards */
.filter-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* White card for the date-range filter */
.filter-card {
  flex: 2 1 300px;
  background: #fff;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  justify-items: center;
    align-content: center;
}

/* White card for the net balance */
.stats-card {
  flex: 1 1 200px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  text-align: center;
}
.stats-card h5 {
  margin-bottom: 0.5rem;
  color: #555;
}
.stats-card p {
  color: #333;
}

/* Reuse table-card you already have */
.table-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}


.patient-info-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  overflow: hidden;
}

.patient-info-card .card-header {
  background: linear-gradient(135deg, #48c6ef80 0%, #1439ba80 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.patient-info-card .card-body {
  padding: 1.5rem;
}

/* Info card for patient details */
.info-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  padding: 1.5rem;
}

/* Reuse .action-card and .quick-actions for the button set */
.quick-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Table card already defined, same styling as other pages */
.table-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  padding: 1rem;
  margin-bottom: 2rem;
}

/* Adjust hero margin if needed */
.dashboard-hero {
  margin-bottom: 1rem;
}


/* Ensure the form-card is wide enough on desktop */
@media (min-width: 768px) {
  .form-card {
    max-width: 800px;
  }
}

/* Card wrapper for forms */
.form-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Floating labels inside .form-card */
.form-card .form-floating > .form-control:focus ~ label,
.form-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 1;
  transform: scale(.85) translateY(-0.5rem);
}


/* Gradient hero (reuse from other pages) */
.dashboard-hero {
  background: linear-gradient(135deg, #48c6ef80 0%, #1439ba80 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Form card wrapper */
.form-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 800px; /* wide enough for two-column */
  margin-bottom: 2rem;
}

/* Floating-label tweaks */
.form-card .form-floating > .form-control:focus ~ label,
.form-card .form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-card .form-floating > .form-select:focus ~ label,
.form-card .form-floating > .form-select:not([value=""]) ~ label {
  opacity: 1;
  transform: scale(.85) translateY(-0.5rem);
}


/* Hero banner (reuse across pages) */
.dashboard-hero {
  background: linear-gradient(135deg, #48c6ef80 0%, #1439ba80 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Form card wrapper */
.form-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 800px;
  margin-bottom: 2rem;
}

/* Two-column layout on md+ */
@media (max-width: 767.98px) {
  .form-card { padding: 1rem; }
}

/* Floating-label tweaks for inputs & selects */
.form-card .form-floating > .form-control:focus ~ label,
.form-card .form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-card .form-floating > .form-select:focus ~ label,
.form-card .form-floating > .form-select:not([value=""]) ~ label {
  opacity: 1;
  transform: scale(.85) translateY(-0.5rem);
}

/* Ensure select uses the same look */
.form-card .form-floating .form-select {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
}


/* Hero banner */
.dashboard-hero {
  background: linear-gradient(135deg, #48c6ef80 0%, #1439ba80 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Form card wrapper */
.form-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Two-column layout on md+ */
@media (min-width: 768px) {
  .form-card { max-width: 800px; }
}

/* Floating-label tweaks */
.form-card .form-floating > .form-control:focus ~ label,
.form-card .form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-card .form-floating > .form-select:focus ~ label,
.form-card .form-floating > .form-select:not([value=""]) ~ label {
  opacity: 1;
  transform: scale(.85) translateY(-0.5rem);
}


/* Hero banner */
.dashboard-hero {
  background: linear-gradient(135deg, #48c6ef80 0%, #1439ba80 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Form card wrapper */
.form-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Expand card slightly on larger screens */
@media (min-width: 768px) {
  .form-card {
    max-width: 800px;
  }
}

/* Floating-label tweaks */
.form-card .form-floating > .form-control:focus ~ label,
.form-card .form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-card .form-floating > .form-select:focus ~ label,
.form-card .form-floating > .form-select:not([value=""]) ~ label {
  opacity: 1;
  transform: scale(.85) translateY(-0.5rem);
}


/* Card for detail views */
.info-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  padding: 1.5rem;
}

/* Adjust definition list spacing */
.info-card dl.row {
  margin: 0;
}

/* Hero banner (reuse) */
.dashboard-hero {
  background: linear-gradient(135deg, #48c6ef80 0%, #1439ba80 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Print-specific overrides */
@media print {
  .d-print-none,
  .bg-light,
  .mb-3 {
    display: none !important;
  }
  body {
    margin: 0;
  }
  .table {
    width: 100%;
  }
}

.dashboard-hero {
  background: linear-gradient(135deg, #48c6ef80 0%, #1439ba80 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.form-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .form-card {
    max-width: 800px;
  }
}

.form-card .form-floating > .form-control:focus ~ label,
.form-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 1;
  transform: scale(.85) translateY(-0.5rem);
}


/* 1) allow the logo to overflow out of the bar */
.navbar {
  overflow: visible;
  /* optionally force a fixed height */
  height: 60px;      /* ← your desired bar height */
}

/* 2) remove extra padding on the brand link */
.navbar .navbar-brand {
  padding-top: 8%;
  padding-bottom: 0;
}

/* 3) blow the logo up and pull it up a bit */
.brand-logo {
  height: 125px;          /* ← make this larger than your navbar height */
  width: auto;
  position: relative;
  top: -15px;          
  /* if needed: z-index: 1; */
}

/* Hero stats */
.quick-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.action-card {
  flex: 1 1 180px;
  max-width: 220px;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  padding: 1.5rem 1rem;
  text-align: center;
  color: #333;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* Doctor cards */
.doctor-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
}
.doctor-card .card-header {
  background: #48c6ef;
  color: #fff;
  font-weight: 600;
}
.doctor-card .badge {
  font-size: 0.9rem;
}

/* Ensure dashboard-hero is defined too */
.dashboard-hero {
  background: linear-gradient(135deg, #48c6ef80 0%, #1439ba80 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Hero filter row */
.hero-filter {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-filter .form-floating {
  width: auto;
}

.hero-filter .form-floating > .form-control-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.hero-filter .btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Adjust floating labels on small form controls */
.hero-filter .form-floating > .form-control-sm:focus ~ label,
.hero-filter .form-floating > .form-control-sm:not(:placeholder-shown) ~ label {
  opacity: 1;
  transform: scale(.85) translateY(-0.5rem);
}

.combined-info-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  overflow: hidden;
}

.combined-info-card .card-header {
  background: linear-gradient(135deg, #48c6ef80 0%, #1439ba80 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.25rem;
}

.form-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 500px;
  margin-bottom: 2rem;
}

.form-card .form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-card .form-floating > .form-select:not([value=""]) ~ label {
  opacity: 1;
  transform: scale(.85) translateY(-0.5rem);
}

/* Scrollable pagination wrapper */
.pagination-wrapper {
  overflow-x: auto;          /* allow horizontal scroll if needed */
  padding: 0.5rem 0;         /* some breathing room */
  margin-top: 1rem;
}

/* Force page items in a single row */
.pagination {
  display: flex;
  flex-wrap: nowrap !important;  /* never wrap onto multiple lines */
  gap: 0.5rem;
  justify-content: center;
  padding: 0;
  margin: 0;
}

/* Style individual page links */
.pagination .page-item .page-link {
  min-width: 2.5rem;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: none;
  background: #fff;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.05);
  transition: background 0.2s, color 0.2s;
}

/* Hover & focus */
.pagination .page-link:hover,
.pagination .page-link:focus {
  background: rgba(72,198,239,0.1);
  color: #48c6ef;
}

/* Active page */
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #48c6ef, #1439ba);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
}

/* Disabled pages */
.pagination .page-item.disabled .page-link {
  color: #ccc;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}


.search-container .input-group {
  max-width: 400px;
  margin: 0;
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.05);
  border-radius: 0.5rem;
  overflow: hidden;
}
.search-container .input-group .form-control {
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}
.search-container .input-group .btn {
  border: none;
  background: #fff;
}
.search-container .input-group .btn:hover {
  background: #f0f8ff;
}

.preserve-lines { 
  white-space: pre-wrap;
}

/* Doctor Card Patient List Scroll */
.doctor-card .patient-list {
  max-height: 220px;       /* enough for ~5 items */
  overflow-y: auto;
}

/* Optional: style the scrollbar */
.doctor-card .patient-list::-webkit-scrollbar {
  width: 6px;
}
.doctor-card .patient-list::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 3px;
}

