/* Custom styles for Patient Portal - ECH Lite Clean Design */
/* Clean, professional healthcare design with white background */

/* GLOBAL FIX: Disable all transitions and animations to prevent disappearing sections */
*, *::before, *::after {
    transition: none !important;
    animation: none !important;
}

/* Ensure all content is always visible */
.row, .col, [class*="col-"], .card, .dashboard-tile, .container, main, section, div {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Color Palette - ECH Lite */
:root {
    --ech-primary: #3B5998;
    --ech-primary-light: #5B7EC0;
    --ech-primary-dark: #2E4A7D;
    --ech-secondary: #6c757d;
    --ech-text: #333333;
    --ech-text-muted: #6c757d;
    --ech-background: #f8f9fa;
    --ech-card-bg: #ffffff;
    --ech-border: #e9ecef;
    --ech-icon-color: #5B9BD5;
    --bs-primary: #3B5998 !important;
    --bs-primary-rgb: 59, 89, 152 !important;
}

html, body {
    --bs-primary: #3B5998 !important;
    --bs-primary-rgb: 59, 89, 152 !important;
}

* {
    --bs-primary: #3B5998 !important;
    --bs-primary-rgb: 59, 89, 152 !important;
}

/* Main body - clean white/light background */
body {
    background: #f8f9fa !important;
    color: #333333 !important;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navigation bar - clean white */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: none !important;
}

.navbar-brand, .navbar-nav .nav-link {
    color: #3B5998 !important;
    transition: color 0.3s ease;
}

.navbar-brand {
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-nav .nav-link:hover {
    color: #2E4A7D !important;
}

.navbar-brand:hover .navbar-brand-text {
    color: #2E4A7D !important;
}

.navbar-brand-text {
    font-size: 2rem;
    font-weight: 600;
    color: #3B5998 !important;
    transition: color 0.3s ease;
}

/* ECH Logo and brand styling */
.navbar-logo {
    height: 80px;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
}

/* All headings - navy blue */
h1, h2, h3, h4, h5, h6,
.card-header h1, .card-header h2, .card-header h3,
.card-header h4, .card-header h5, .card-header h6,
.text-primary {
    color: #3B5998 !important;
}

/* Override Bootstrap primary colors */
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary,
input[type="button"].btn-primary,
.btn.btn-primary,
a.btn.btn-primary,
html body .btn-primary {
    background-color: #3B5998 !important;
    background: #3B5998 !important;
    border: 2px solid #3B5998 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.btn-primary:hover,
button.btn-primary:hover,
.btn.btn-primary:hover,
html body .btn-primary:hover {
    background-color: #2E4A7D !important;
    background: #2E4A7D !important;
    border-color: #2E4A7D !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.3) !important;
}

.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #3B5998 !important;
    border-color: #3B5998 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 89, 152, 0.25) !important;
}

/* Outline buttons */
.btn-outline-primary {
    color: #3B5998 !important;
    border: 2px solid #3B5998 !important;
    background: transparent !important;
    border-radius: 8px !important;
}

.btn-outline-primary:hover {
    background: #3B5998 !important;
    color: #ffffff !important;
    border-color: #3B5998 !important;
}

/* Secondary button for "Log In" style outline */
.btn-outline-secondary,
.btn-secondary {
    color: #3B5998 !important;
    border: 2px solid #3B5998 !important;
    background: transparent !important;
    border-radius: 8px !important;
}

.btn-outline-secondary:hover,
.btn-secondary:hover {
    background: #f8f9fa !important;
    color: #2E4A7D !important;
    border-color: #2E4A7D !important;
}

/* Links */
a {
    color: #3B5998 !important;
    text-decoration: none;
}

a:hover {
    color: #2E4A7D !important;
    text-decoration: underline;
}

/* Cards - clean white with subtle shadow */
.card, .dashboard-tile {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: none !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.card:hover, .dashboard-tile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    border-color: #dee2e6 !important;
}

.card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e9ecef !important;
    color: #3B5998 !important;
}

.card-body {
    color: #333333 !important;
    background: #ffffff !important;
}

.dashboard-tile .text-light {
    color: #333333 !important;
}

/* Dashboard grid cards - feature cards like in the image */
.dashboard-grid-card {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 16px !important;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.dashboard-grid-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    border-color: #5B9BD5 !important;
}

.dashboard-grid-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #5B9BD5 !important;
    transition: color 0.3s ease;
}

.dashboard-grid-card:hover i {
    color: #3B5998 !important;
}

.dashboard-grid-card h6 {
    color: #333333 !important;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.dashboard-grid-card:hover h6 {
    color: #3B5998 !important;
}

.dashboard-grid-card p {
    color: #6c757d !important;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Welcome section */
.welcome-section {
    background: #ffffff !important;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #3B5998 !important;
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #6c757d !important;
    margin-bottom: 0;
}

/* Container styling */
.container, .container-fluid {
    background: transparent !important;
    border-radius: 0;
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: none !important;
}

/* Row and column spacing */
.row {
    margin-bottom: 1.5rem !important;
}

.row > [class*="col-"] {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

/* Form group spacing */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

/* Section headers inside tiles */
.dashboard-tile h5 {
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #e9ecef !important;
}

/* List items spacing */
.dashboard-tile ul li {
    margin-bottom: 0.75rem !important;
}

/* Alert box spacing */
.dashboard-tile .alert {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

/* Form controls - clean light style */
.form-control, .form-select {
    background: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #333333 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
}

.form-control:focus, .form-select:focus {
    background: #ffffff !important;
    border-color: #3B5998 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 89, 152, 0.15) !important;
    color: #333333 !important;
}

.form-control::placeholder {
    color: #adb5bd !important;
}

.form-label {
    color: #333333 !important;
    font-weight: 500;
}

.form-select option {
    background: #ffffff !important;
    color: #333333 !important;
}

/* Tables - clean styling */
.table {
    color: #333333 !important;
    background: #ffffff !important;
}

.table thead th {
    background: #f8f9fa !important;
    color: #3B5998 !important;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef !important;
    padding: 1rem !important;
}

.table tbody td {
    color: #333333 !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 1rem !important;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8f9fa !important;
}

/* Medical Records Table */
.medical-records-table,
table.table.medical-records-table {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #e9ecef !important;
}

.medical-records-table thead,
table.table.medical-records-table thead {
    background: #f8f9fa !important;
}

.medical-records-table thead th,
table.table.medical-records-table thead th {
    color: #3B5998 !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 1rem !important;
    background: #f8f9fa !important;
    border-bottom: 2px solid #e9ecef !important;
}

.medical-records-table tbody tr,
table.table.medical-records-table tbody tr {
    background: #ffffff !important;
}

.medical-records-table tbody tr:hover,
table.table.medical-records-table tbody tr:hover {
    background: #f8f9fa !important;
}

.medical-records-table tbody td,
table.table.medical-records-table tbody td {
    color: #333333 !important;
    border: none !important;
    padding: 1rem !important;
    border-bottom: 1px solid #e9ecef !important;
    background: transparent !important;
}

.medical-records-table td i.fas,
table.table.medical-records-table td i.fas {
    background: #3B5998 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 0.75rem !important;
    font-size: 14px !important;
    box-shadow: 0 2px 6px rgba(59, 89, 152, 0.3) !important;
}

.medical-records-table .btn-outline-primary,
table.table.medical-records-table .btn-outline-primary {
    color: #3B5998 !important;
    border: 1px solid #3B5998 !important;
    background: transparent !important;
    border-radius: 6px !important;
}

.medical-records-table .btn-outline-primary:hover,
table.table.medical-records-table .btn-outline-primary:hover {
    background: #3B5998 !important;
    color: #ffffff !important;
}

/* Dashboard tile tables */
.dashboard-tile .table th {
    border: none;
    padding: 1rem;
    background: #f8f9fa !important;
    color: #3B5998 !important;
}

.dashboard-tile .table td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
    color: #333333 !important;
    border-bottom: 1px solid #e9ecef !important;
}

/* Nav tabs */
.nav-tabs {
    border-bottom: 2px solid #e9ecef !important;
    background: transparent !important;
    padding: 0 !important;
}

.nav-tabs .nav-link {
    color: #6c757d !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.5rem !important;
    margin-right: 0 !important;
    transition: all 0.3s ease !important;
    border-bottom: 3px solid transparent !important;
}

.nav-tabs .nav-link:hover {
    color: #3B5998 !important;
    background: transparent !important;
    border-bottom-color: #dee2e6 !important;
}

.nav-tabs .nav-link.active {
    color: #3B5998 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid #3B5998 !important;
    font-weight: 600;
}

.tab-content {
    background: transparent !important;
    border: none !important;
    padding-top: 1.5rem !important;
}

/* Badges */
.badge.bg-success {
    background: #28a745 !important;
    color: white !important;
}

.badge.bg-warning {
    background: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-danger {
    background: #dc3545 !important;
    color: white !important;
}

.badge.bg-secondary {
    background: #6c757d !important;
    color: white !important;
}

.badge.bg-primary {
    background: #3B5998 !important;
    color: white !important;
}

.badge.bg-info {
    background: #5B9BD5 !important;
    color: white !important;
}

/* Dropdown menus */
.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: none !important;
}

.dropdown-item {
    color: #333333 !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: #f8f9fa !important;
    color: #3B5998 !important;
}

.dropdown-divider {
    border-color: #e9ecef !important;
}

/* Notification dropdown */
.notification-dropdown {
    min-width: 400px !important;
    max-width: 450px !important;
}

.notification-item {
    padding: 1rem !important;
    border-bottom: 1px solid #e9ecef !important;
    background: transparent !important;
}

.notification-item:hover {
    background: #f8f9fa !important;
}

.notification-item h6 {
    color: #3B5998 !important;
    font-size: 0.95rem !important;
}

.notification-item p {
    color: #6c757d !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}

.notification-item i {
    color: #5B9BD5 !important;
}

/* Notification bell */
.navbar-nav .nav-link.position-relative .fa-bell {
    font-size: 1.2rem;
    color: #3B5998 !important;
}

.navbar-nav .nav-link.position-relative:hover .fa-bell {
    color: #2E4A7D !important;
}

.navbar-nav .nav-link.position-relative .badge {
    background: #dc3545 !important;
}

/* Alerts */
.alert {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    color: #333333 !important;
    backdrop-filter: none !important;
    border-left: 4px solid;
}

.alert-info {
    border-left-color: #5B9BD5 !important;
    background: #f0f7ff !important;
}

.alert-warning {
    border-left-color: #ffc107 !important;
    background: #fffbf0 !important;
}

.alert-success {
    border-left-color: #28a745 !important;
    background: #f0fff4 !important;
}

.alert-danger {
    border-left-color: #dc3545 !important;
    background: #fff5f5 !important;
}

/* Calendar Styling */
.calendar-grid {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 400px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    justify-content: center;
    margin-bottom: 1rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    width: 40px;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    gap: 4px;
    justify-content: center;
}

.calendar-day {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333333;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.calendar-day.other-month {
    color: #ced4da;
    cursor: not-allowed;
}

.calendar-day.available {
    background: #e9ecef;
    border-color: #dee2e6;
}

.calendar-day.available:hover {
    background: #5B9BD5;
    color: #ffffff;
    transform: scale(1.1);
}

.calendar-day.selected {
    background: #3B5998 !important;
    border-color: #3B5998 !important;
    color: #ffffff !important;
}

.calendar-day.unavailable {
    color: #ced4da;
    cursor: not-allowed;
}

.legend-dot.selected {
    background: #3B5998;
}

.legend-dot.available {
    background: #e9ecef;
}

/* Time slots */
.time-slot {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: #333333;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.time-slot:hover {
    background: #e9ecef;
    border-color: #5B9BD5;
}

.time-slot.selected {
    background: #3B5998 !important;
    border-color: #3B5998 !important;
    color: #ffffff !important;
}

.time-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    padding: 1rem;
}

/* Month navigation */
#prevMonthBtn, #nextMonthBtn {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #3B5998 !important;
    border-radius: 8px !important;
    width: 40px !important;
    height: 40px !important;
}

#prevMonthBtn:hover, #nextMonthBtn:hover {
    background: #3B5998 !important;
    border-color: #3B5998 !important;
    color: #ffffff !important;
}

#monthYearDisplay {
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    color: #333333 !important;
}

/* Book now button */
.book-now-btn {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #333333 !important;
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    font-weight: 500 !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.book-now-btn:hover {
    background: #3B5998 !important;
    border-color: #3B5998 !important;
    color: #ffffff !important;
}

.book-now-btn.selected,
button.book-now-btn.selected {
    background: #3B5998 !important;
    border-color: #3B5998 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Appointment summary */
.appointment-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Form field styling for dashboard */
.dashboard-tile .form-select,
.dashboard-tile .form-control,
#bookingForm .form-select, 
#bookingForm .form-control {
    background: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #333333 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
}

.dashboard-tile .form-select:focus,
.dashboard-tile .form-control:focus,
#bookingForm .form-select:focus, 
#bookingForm .form-control:focus {
    background: #ffffff !important;
    border-color: #3B5998 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 89, 152, 0.15) !important;
}

.dashboard-tile .form-label,
#bookingForm .form-label {
    color: #333333 !important;
}

/* Form select dropdown arrow */
.dashboard-tile .form-select,
#bookingForm .form-select {
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 16px 12px !important;
}

/* Dashboard form buttons */
#bookingForm .btn-secondary, 
#bookingForm .btn-primary,
.dashboard-tile .btn-secondary,
.dashboard-tile .btn-primary {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #3B5998 !important;
    border: 1px solid #3B5998 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    padding: 0.5rem 1.25rem !important;
    min-height: auto !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#bookingForm .btn-secondary:hover, 
#bookingForm .btn-primary:hover:not(:disabled),
.dashboard-tile .btn-secondary:hover,
.dashboard-tile .btn-primary:hover:not(:disabled) {
    background: #2E4A7D !important;
    border-color: #2E4A7D !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.3) !important;
}

#bookingForm .btn-primary:disabled,
.dashboard-tile .btn-primary:disabled {
    background: #ced4da !important;
    border-color: #ced4da !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

/* Payment page styling */
.payment-form-container {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.payment-form-container .form-control {
    background: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #333333 !important;
}

.payment-form-container .form-label {
    color: #333333 !important;
}

.payment-form-container .form-check-label {
    color: #6c757d !important;
}

.payment-form-container .text-muted {
    color: #6c757d !important;
}

/* Accordion / FAQ styling */
.accordion-button {
    color: #333333 !important;
    background-color: #ffffff !important;
    border: 1px solid #e9ecef !important;
}

.accordion-button:not(.collapsed) {
    color: #ffffff !important;
    background-color: #3B5998 !important;
    border-color: #3B5998 !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 89, 152, 0.15) !important;
}

.accordion-body {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e9ecef !important;
    border-top: none !important;
}

.accordion-item {
    border: none !important;
    margin-bottom: 0.5rem;
}

/* Footer styling */
footer {
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    color: #6c757d !important;
    padding: 1.5rem 0;
}

footer a {
    color: #3B5998 !important;
}

footer a:hover {
    color: #2E4A7D !important;
}

/* Text utilities */
.text-muted {
    color: #6c757d !important;
}

.text-light {
    color: #333333 !important;
}

.text-white {
    color: #333333 !important;
}

/* Status badges in tables */
.badge.bg-scheduled {
    background-color: #5B9BD5 !important;
}

.badge.bg-cancelled {
    background-color: #dc3545 !important;
}

.badge.bg-completed {
    background-color: #6c757d !important;
}

/* Star rating */
.rating-stars label {
    color: #ced4da;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input[type="radio"]:checked ~ label {
    color: #ffc107;
}

/* File upload area */
.file-upload-area {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
}

.file-upload-area:hover {
    border-color: #3B5998;
    background: #f0f4ff;
}

/* Progress bars */
.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
}

.progress-bar {
    background-color: #3B5998;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Print styles */
@media print {
    .navbar, .btn, .card-header {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .welcome-section h1 {
        font-size: 1.75rem;
    }
    
    .dashboard-grid-card {
        padding: 1.5rem;
        min-height: 120px;
    }
}

/* Animation classes - disabled for stability */
.fade-in {
    /* Animations disabled to prevent disappearing sections */
}

/* Appointment row */
.appointment-row {
    transition: all 0.2s ease;
}

.appointment-row:hover {
    background: #f8f9fa !important;
}

/* Action buttons in tables */
.btn-outline-danger {
    color: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    background: transparent !important;
    border-radius: 6px !important;
}

.btn-outline-danger:hover {
    background: #dc3545 !important;
    color: #ffffff !important;
}

.btn-outline-warning {
    color: #856404 !important;
    border: 1px solid #ffc107 !important;
    background: transparent !important;
    border-radius: 6px !important;
}

.btn-outline-warning:hover {
    background: #ffc107 !important;
    color: #000 !important;
}

.btn-outline-success {
    color: #28a745 !important;
    border: 1px solid #28a745 !important;
    background: transparent !important;
    border-radius: 6px !important;
}

.btn-outline-success:hover {
    background: #28a745 !important;
    color: #ffffff !important;
}

.btn-outline-info {
    color: #5B9BD5 !important;
    border: 1px solid #5B9BD5 !important;
    background: transparent !important;
    border-radius: 6px !important;
}

.btn-outline-info:hover {
    background: #5B9BD5 !important;
    color: #ffffff !important;
}

/* Choose timeslot placeholder */
.choose-timeslot-placeholder {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: #6c757d;
}

/* Month selector buttons */
.month-btn {
    border-radius: 20px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #333333 !important;
}

.month-btn.active {
    background: #3B5998 !important;
    border-color: #3B5998 !important;
    color: #ffffff !important;
}

/* Calendar section layout - always visible */
#calendarSection {
    display: flex !important;
    flex-wrap: wrap !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 400px !important;
}

#calendarSection .col-md-6:first-child {
    min-width: 40% !important;
    flex: 0 0 40% !important;
    max-width: 40% !important;
}

#calendarSection .col-md-6:last-child {
    min-width: 58% !important;
    flex: 0 0 58% !important;
    max-width: 58% !important;
}

@media (max-width: 767px) {
    #calendarSection .col-md-6:first-child,
    #calendarSection .col-md-6:last-child {
        min-width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Attachment styling */
.attachment-item {
    font-size: 0.85rem;
}

.attachment-item .d-flex {
    padding: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.attachment-item .btn-outline-light {
    border-color: #ced4da !important;
    color: #6c757d !important;
}

.attachment-item .btn-outline-light:hover {
    background: #e9ecef !important;
    color: #333333 !important;
}

/* ECH button class */
.ech-btn-primary {
    background: #3B5998 !important;
    border: 2px solid #3B5998 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.ech-btn-primary:hover {
    background: #2E4A7D !important;
    border-color: #2E4A7D !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.3) !important;
}

/* Ensure form checkboxes look good */
.form-check-input {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
}

.form-check-input:checked {
    background-color: #3B5998 !important;
    border-color: #3B5998 !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 89, 152, 0.15) !important;
}

.form-check-label {
    color: #333333 !important;
}

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

/* Focus styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
}
