/* Meal Report Wrapper Styles */
.meal-report-wrapper {
    opacity: 1 !important;
    position: relative;
    z-index: 100;
}
.report-section {
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
.report-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
@media print {
    .meal-report-wrapper {
        background: #fff !important;
        box-shadow: none !important;
        color: #000 !important;
    }
    .report-section {
        page-break-inside: avoid;
        border-bottom: 1px solid #ccc !important;
    }
    .btn, .d-flex, .alert, nav, header, footer, .no-print, .raw-materials-entry-wrapper { display: none !important; }
    body, html { background: #fff !important; }
}
/* --- Raw Materials Entry Page Specific Styles --- */
.raw-materials-entry-wrapper {
    opacity: 1 !important;
    position: relative;
    z-index: 2000;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 24px 0 rgba(0,0,0,0.08);
}
/* /public/assets/css/app.css */

/* ===================================================================
   --- V2 Button System Overrides ---
   This section defines the core button styles for the entire portal,
   overriding any default framework styles for a consistent look.
   =================================================================== */

/* --- Base Button Style --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Space between icon and text */
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

.btn:disabled, .btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Primary Button --- */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

/* --- Secondary Button --- */
.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--app-bg);
    color: var(--text-primary);
    border-color: var(--divider-color);
}

/* --- Success Button --- */
.btn-success {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}
.btn-success:hover {
    background-color: #149909; /* A slightly darker green */
    border-color: #149909;
    color: white;
}

/* --- Danger Button --- */
.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: white;
}
.btn-danger:hover {
    background-color: #d32f2f; /* A slightly darker red */
    border-color: #d32f2f;
    color: white;
}

/* --- Outline Buttons (as seen in dashboard) --- */
.btn-outline-primary {
    border-radius: 50px;
    font-weight: 600;
    padding: 10px 20px;
    color: var(--primary-dark);
    border-color: var(--primary-light);
    background-color: var(--primary-light);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* --- Dashboard Specific Styles --- */

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* In main-layout.css */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--app-bg);
    position: relative;
}
/* Enhanced Welcome Card */
.welcome-card {
    background: linear-gradient(110deg, var(--secondary-light) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border: none;
    padding: 32px;
}

.welcome-content {
    display: flex;
    align-items: center;
}

.welcome-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    margin-right: 20px;
    border: 3px solid var(--primary-light);
    flex-shrink: 0;
}

.welcome-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.welcome-text p {
    color: var(--text-secondary);
    margin: 0;
}

.user-info-pills {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.user-info-pills .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
}
.badge.badge-primary { background-color: var(--primary-light); color: var(--primary-dark); }
.badge.badge-secondary { background-color: var(--secondary-light); color: var(--secondary); }
.badge.badge-info { background-color: #E0F2FE; color: #0284C7; } /* A light blue for info */

.welcome-actions {
    margin-left: 20px;
}

.btn.btn-outline-primary {
    border-radius: 50px;
    font-weight: 600;
    padding: 10px 20px;
    color: var(--primary-dark);
    border-color: var(--primary-light);
    background-color: var(--primary-light);
    transition: all 0.2s ease;
}

.btn.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Grid for Action Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Action Card Styling */
.dashboard-action-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text-primary);
    padding: 24px;
    gap: 12px;
    text-align: left;
}
.dashboard-action-card:hover {
    border-color: var(--primary);
}

.action-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.action-card-icon.icon-primary { background-color: var(--primary-light); color: var(--primary); }
.action-card-icon.icon-secondary { background-color: var(--secondary-light); color: var(--secondary); }

.action-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.action-card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.dashboard-content-wrapper {
    opacity: 1 !important;
}

.profile-content-wrapper {
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr 320px;
    }
}

.profile-header {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--primary-light) 100%);
    padding: 30px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar-large-img, .profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.profile-avatar-large {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
}

.profile-identity {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.profile-role-badge {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    background-color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 50px;
    align-self: flex-start;
    margin-top: 8px;
}

.profile-nav-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    overflow-x: auto;
}

.profile-tab {
    padding: 15px 20px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.profile-tab:hover {
    color: var(--text-primary);
}

.profile-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-pane {
    display: none;
    padding-top: 24px;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--divider-color);
}

.profile-details-list {
    display: grid;
    grid-template-columns: minmax(150px, 25%) 1fr;
    gap: 16px 24px;
}

.profile-details-list dt {
    font-weight: 500;
    color: var(--text-secondary);
}

.profile-details-list dd {
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.profile-details-list dd i.fa-lock {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-left: 8px;
    cursor: help;
}

.profile-actions-container .card-header {
    background-color: #f8f9fa;
    padding: .75rem 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--divider-color);
    color: var(--text-secondary);
    border: none;
}
.btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* --- Edit Profile Page Specific Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.profile-edit-wrapper {
    opacity: 1 !important;
}

/* Re-use the profile grid layout from the view page */
/* No new grid styles needed if .profile-grid is already defined */

.card-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Form Styling */
.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.form-divider {
    margin: 2rem 0;
    border-color: var(--divider-color);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--card-bg);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    appearance: none;
    border-radius: var(--radius-sm);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    color: var(--text-primary);
    background-color: var(--card-bg);
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

.form-control:disabled {
    background-color: var(--app-bg);
    opacity: 1;
}

.form-text {
    font-size: 0.875em;
    color: var(--text-secondary);
}

.current-profile-pic {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider-color);
}

/* --- Apply for Leave Page & General Form Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches, as per your fix */
.leave-apply-wrapper {
    opacity: 1 !important;
    max-width: 800px; /* Constrain width for better form readability */
    margin: 0 auto;   /* Center the form container on the page */
}

/* Re-use form styles from edit-profile if they exist, or define them here */
.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--card-bg);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    appearance: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-select:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

.meal-options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background-color: var(--app-bg);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--divider-color);
}

@media (max-width: 576px) {
    .meal-options-container {
        grid-template-columns: 1fr;
    }
}

.meal-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.form-check-label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-check-input {
    width: 1.5em;
    height: 1.5em;
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

/* --- Leave History Page Specific Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.leave-history-wrapper {
    opacity: 1 !important;
}

.page-header {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.page-header-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}
.page-header-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 4px 0 16px 0;
}

/* Modern V2 Table Styling */
.table-v2 {
    width: 100%;
    border-collapse: collapse;
}

.table-v2 thead tr {
    border-bottom: 2px solid var(--border-color);
}

.table-v2 th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-v2 td {
    padding: 16px;
    vertical-align: middle;
}

/* Main row for an effective leave request */
.history-row-main {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg);
}

/* Indented row for a historical modification attempt */
.history-row-modification {
    background-color: var(--app-bg); /* Slightly different background to group visually */
    font-size: 0.9em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--divider-color);
}
.history-row-modification:last-of-type {
    border-bottom: 1px solid var(--border-color); /* Thicker border after the last mod in a group */
}
.history-row-modification td:first-child {
    padding-left: 30px; /* Indent the historical items */
}

/* Reusable Status Badges */
.badge {
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
}
.badge-status-approved, .badge-status-auto_approved_hod { background-color: var(--secondary-light); color: var(--secondary); }
.badge-status-pending, .badge-status-pending_superintendent, .badge-status-pending_hod, .badge-status-pending_modification_superintendent, .badge-status-pending_modification_hod { background-color: var(--primary-light); color: var(--primary-dark); }
.badge-status-rejected, .badge-status-modification_rejected_super, .badge-status-modification_rejected_hod { background-color: #FEE2E2; color: #B91C1C; }
.badge-status-cancelled, .badge-status-modification_cancelled_student { background-color: var(--divider-color); color: var(--text-secondary); }
.badge-status-superseded { background-color: #E0F2FE; color: #0284C7; } /* Light blue */

/* General button styling adjustments if needed */
.btn-outline-secondary { border-color: var(--border-color); color: var(--text-secondary); }
.btn-outline-secondary:hover { background-color: var(--divider-color); color: var(--text-primary); }


/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Meal Preference Page Specific Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.meal-request-history-wrapper {
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

/* We reuse the .page-header style from leave_history.css, so no new CSS needed for that. */

.meal-sections-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.meal-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--divider-color);
}

.meal-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* /public/assets/css/app.css */
/* These styles should already exist from the leave_history page */

.badge {
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
}
.badge-status-approved { background-color: var(--secondary-light); color: var(--secondary); }
.badge-status-pending { background-color: var(--primary-light); color: var(--primary-dark); }
.badge-status-rejected { background-color: #FEE2E2; color: #B91C1C; }
.badge-status-cancelled { background-color: var(--divider-color); color: var(--text-secondary); }

/* Additional styles for consistency */
.bg-secondary-light { background-color: var(--divider-color); }
.text-secondary { color: var(--text-secondary); }

/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Modify Leave Page Specific Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches, as per your established fix */
.leave-modify-wrapper {
    opacity: 1 !important;
    max-width: 800px; /* Constrain width for better form readability */
    margin: 0 auto;   /* Center the form container on the page */
}

/* Style for the info alert box */
.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}
.leave-detail-wrapper {
    opacity: 1 !important;
}

/* Reusing the profile grid for a consistent 2-column layout on desktop */
/* No new grid CSS needed if .profile-grid is already defined */
.leave-details-main-container { /* Renamed for clarity */
    grid-column: 1 / -1;
}
.leave-details-sidebar-container { /* Renamed for clarity */
    grid-column: 1 / -1;
}
@media (min-width: 992px) {
    .leave-details-main-container { grid-column: 1 / span 1; }
    .leave-details-sidebar-container { grid-column: 2 / span 1; }
}

.badge-lg {
    font-size: 1rem;
    padding: 8px 16px;
}
.badge-sm {
    font-size: 0.75rem;
    padding: 4px 8px;
    vertical-align: middle;
}

/* Workflow List Styling */
.workflow-list {
    list-style-type: none;
    padding-left: 0;
    position: relative;
}
.workflow-list:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--divider-color);
}
.workflow-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}
.workflow-list li:last-child {
    margin-bottom: 0;
}
.workflow-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    z-index: 2;
    background-color: var(--card-bg); /* To cover the timeline line */
}
.workflow-icon.icon-submit { background-color: var(--primary); }
.workflow-icon.icon-review { background-color: var(--secondary); }

.workflow-content { flex-grow: 1; }
.workflow-title { font-weight: 600; display: block; }
.workflow-meta { font-size: 0.85rem; color: var(--text-secondary); }
.workflow-remarks {
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 10px;
    background-color: var(--app-bg);
    border-radius: var(--radius-sm);
    white-space: pre-wrap;
    border-left: 3px solid var(--primary-light);
}

/* History List Styling */
.history-link { font-size: 0.95rem; }
.history-list {
    list-style-type: none;
    padding-left: 0;
}
.history-list li {
    margin-bottom: 8px;
}
.history-list li a {
    font-weight: 500;
}
/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Special Meals Page Specific Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.special-meals-wrapper {
    opacity: 1 !important;
}

/* We reuse .page-header, .card, and .table-v2 styles, so no new CSS is needed for them. */

/* Custom badges for meal periods for better visual distinction */
.badge-breakfast {
    background-color: #E0F2FE; /* Light Blue */
    color: #0284C7;
}
.badge-lunch {
    background-color: var(--primary-light); /* Saffron Light */
    color: var(--primary-dark);
}
.badge-dinner {
    background-color: #E2E8F0; /* Gray */
    color: #4A5568;
}

/* Universal stacking context fix for all animated content wrappers */
.dashboard-content-wrapper,
.profile-content-wrapper,
.leave-apply-wrapper,
.leave-history-wrapper,
.meal-request-history-wrapper,
.leave-modify-wrapper,
.leave-detail-wrapper,
.special-meals-wrapper,
.meal-preference-wrapper {
    opacity: 1 !important;
    position: relative;
    z-index: 100;
}

/* Ensure main layout containers establish stacking context */
.main-content,
.app-container {
    position: relative;
    z-index: 0;
}

/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Daily Meal Count Page Specific Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.daily-count-wrapper {
    opacity: 1 !important;
}

.alert-warning {
    background-color: #FFFBEB;
    border-color: #FBBF24;
    color: #92400E;
}
.alert-warning .alert-heading {
    color: inherit;
}

.meal-count-table th {
    background-color: var(--app-bg);
}
.meal-count-table th:nth-child(2),
.meal-count-table td:nth-child(2) {
    text-align: center;
}
.meal-count-table th:nth-child(3),
.meal-count-table td:nth-child(3) {
    text-align: center;
}
.meal-count-table .system-count {
    font-weight: 500;
    color: var(--text-secondary);
}
.meal-count-table .final-count-input {
    max-width: 80px;
    text-align: center;
    font-weight: 600;
    margin: 0 auto;
}
.meal-count-table tfoot {
    border-top: 2px solid var(--border-color);
    font-size: 1.1rem;
}
.meal-count-table tfoot td {
    background-color: var(--app-bg);
}

/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Hostel Dashboard Enhancements --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.hostel-dashboard-wrapper {
    opacity: 1 !important;
}

/* New Action Button Group Styling */
.action-btn-group {
    display: inline-flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.action-btn-group .btn {
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--divider-color);
    background-color: var(--card-bg);
    color: var(--text-secondary);
}
.action-btn-group .btn:last-child {
    border-right: none;
}
.action-btn-group .btn:hover {
    background-color: var(--app-bg);
    z-index: 1; /* Bring to front on hover */
}
.btn.btn-action-view:hover { color: var(--primary); }
.btn.btn-action-leave:hover { color: var(--danger); }

/* Styling for DataTables Filter Dropdowns in the Footer */
.dataTables_wrapper tfoot th {
    padding: 8px 10px; /* Adjust padding for filter row */
}
tfoot .form-select {
    width: 100%;
    min-width: 120px;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}
/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Meal Constraints Page Specific Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.meal-constraints-wrapper {
    opacity: 1 !important;
}

/* Reusing the .profile-grid for the 2-column layout */
/* On mobile, they will stack. On desktop, they will be side-by-side. */
.constraints-list-container {
    grid-column: 1 / -1;
}
.add-constraint-container {
    grid-column: 1 / -1;
}

@media (min-width: 992px) {
    .constraints-list-container {
        grid-column: 1 / span 1;
    }
    .add-constraint-container {
        grid-column: 2 / span 1;
    }
}
/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Manage Student Leaves Page Specific Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.manage-leaves-wrapper {
    opacity: 1 !important;
}

.filter-card {
    background-color: var(--card-bg);
    border: none;
    box-shadow: var(--shadow-sm);
}

.filter-card .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Meal Change Requests Page Specific Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.meal-requests-wrapper {
    opacity: 1 !important;
}

/* We reuse the .page-header, .grid, and .card styles */

.reason-box {
    background-color: var(--app-bg);
    border: 1px solid var(--divider-color);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.reason-box strong {
    color: var(--text-primary);
}

.preference-comparison-table td {
    vertical-align: middle;
}

/* Highlight for changed rows */
.changed-row {
    background-color: var(--primary-light) !important;
}
.changed-row strong {
    color: var(--primary-dark);
}

/* Row for constraint info */
.constraint-row td {
    padding-top: 0;
    border-top: none;
}
.constraint-row .alert {
    font-size: 0.85rem;
}
.alert-success { /* Re-style for V2 */
    background-color: var(--secondary-light);
    color: var(--secondary);
    border-color: var(--secondary-light);
}
.alert-warning {
    background-color: #FFFBEB;
    border-color: #FBBF24;
    color: #92400E;
}

/* Action form styling */
.card-footer {
    background-color: var(--app-bg);
}
.input-group {
    display: flex;
}
.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-group .btn {
    border-radius: 0;
}
.input-group .btn-danger {
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Review Leave Requests Page Specific Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.review-leaves-wrapper {
    opacity: 1 !important;
}

.review-requests-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.request-review-card .card-header {
    background-color: var(--app-bg);
}

.badge-status-new {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.action-form-container {
    background-color: var(--app-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--divider-color);
}
.btn-success { background-color: var(--secondary); border-color: var(--secondary); }
.btn-success:hover { background-color: #149909; border-color: #149909; }
.btn-danger { background-color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background-color: #d32f2f; border-color: #d32f2f; }
/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Special Meal Count Submission Page Specific Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.special-meal-submission-wrapper {
    opacity: 1 !important;
}

.submission-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card.card-submitted {
    border-color: var(--secondary);
}

.card.card-submitted .card-header {
    background-color: var(--secondary-light);
}

.submission-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 50px;
    background-color: var(--secondary);
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
}
/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Superintendent View Student Detail Page --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.student-detail-wrapper {
    opacity: 1 !important;
}

/* Reusing .profile-header and related styles from the student's own profile view */
/* No new CSS needed for the header if .profile-header is already defined */

.profile-view-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* We reuse .grid and .profile-details-list, so no new CSS needed for them */

/* Make links in definition lists more subtle */
.profile-details-list dd a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}
.profile-details-list dd a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Customizing the DataTable search box for this specific table */
#leaveHistoryTable_filter input {
    margin-left: 0.5em;
    border-radius: var(--radius-sm);
}

/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Bulk Hostel Change Page Specific Styles --- */

/* Wrapper to enforce opacity and prevent animation glitches */
.hostel-change-wrapper {
    opacity: 1 !important;
}

/* We reuse .page-header, .card, and form styles */

.action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--app-bg);
    border-bottom: 1px solid var(--border-color);
}
.action-bar .form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.table-v2 .form-check-input {
    width: 1.25em;
    height: 1.25em;
}

/* /public/assets/css/app.css */
/* --- Calendar View Page Specific Styles --- */

/* Wrapper for animation */
.calendar-view-wrapper {
    opacity: 1 !important;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 24px */
    margin-top: 24px;
}

.event-card {
    border-left: 4px solid transparent;
    transition: border-color 0.2s ease-in-out;
}

.event-card.card-holiday {
    border-left-color: var(--danger);
}

.event-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background-color: var(--app-bg);
}

.badge-holiday {
    background-color: #FEF2F2; /* Light Red */
    color: #DC2626; /* Darker Red */
    font-size: 0.8rem;
    font-weight: 600;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.event-detail-item {
    display: flex;
    flex-direction: column;
}

.event-detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-detail-value {
    font-weight: 500;
    color: var(--text-primary);
}

.event-description {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--app-bg);
    border-radius: var(--radius-sm);
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 0.95rem;
}

.no-events-message {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px dashed var(--border-color);
    margin-top: 24px;
}

.no-events-message .icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.no-events-message h4 {
    color: var(--text-primary);
    font-weight: 600;
}

.no-events-message p {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}
/* /public/assets/css/app.css */
/* --- System Message Page Styles (e.g., Access Denied, 404) --- */

/* Wrapper for animation */
.system-message-wrapper {
    opacity: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Ensures it takes up available space in the main content area */
}

.centered-message-container {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    max-width: 550px;
    width: 100%;
}

.centered-message-container .icon {
    font-size: 3.5rem;
    color: var(--danger); /* Using danger color for denied access */
    margin-bottom: 1.5rem;
}

.centered-message-container .message-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.centered-message-container .message-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.centered-message-container .message-action {
    margin-top: 1rem;
}

/* /public/assets/css/app.css */
/* --- Bulk User Create Page Specific Styles --- */

/* Wrapper for animation */
.bulk-create-wrapper {
    opacity: 1 !important;
}

/* V2 Tab Styling */
.v2-tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}
.v2-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 1rem 1.25rem;
    margin-bottom: -1px; /* Overlaps the container border */
}
.v2-tabs .nav-link:hover {
    color: var(--text-primary);
}
.v2-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: transparent;
}
.tab-content > .tab-pane {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Handsontable Container */
#hot-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.handsontable { /* Improve default Handsontable appearance */
    border-radius: var(--radius-sm);
    border-color: var(--border-color) !important;
}

/* V2 Progress Bar */
.progress-v2 {
    height: 25px;
    background-color: var(--divider-color);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}
.progress-v2-bar {
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    height: 100%;
    transition: width 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.progress-v2-label {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 25px;
}

/* Processing Summary & Result Card */
.processing-summary {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.processing-summary .badge {
    font-size: 0.9rem;
}

.result-card {
    background-color: var(--secondary-light);
    border: 1px solid var(--secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
}
.result-card .alert-heading {
    color: var(--secondary);
}
.result-card code {
    background-color: #fff;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-family: var(--font-monospace);
    font-size: 1em;
}

/* Processing Log */
.processing-log {
    max-height: 250px;
    overflow-y: auto;
    background-color: var(--app-bg);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--divider-color);
    font-family: var(--font-monospace);
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--text-secondary);
}
.processing-log .log-success { color: var(--secondary); }
.processing-log .log-failed { color: var(--danger); }

/* /public/assets/css/app.css */
/* --- Create User Page Specific Styles --- */

/* Wrapper for animation */
.user-create-wrapper {
    opacity: 1 !important;
}

/* Wrapper for the dynamic profile field sections */
#profileFieldsContainer {
    margin-top: 1.5rem;
}

/* Styling for the hidden/visible state of profile sections */
.profile-fields {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-in, padding-top 0.5s ease-out;
    padding-top: 0;
    border-top: none;
}
.profile-fields.visible {
    opacity: 1;
    max-height: 600px; /* A large enough value to not clip content */
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider-color);
}

/* /public/assets/css/app.css */
/* --- Delete User Page Specific Styles --- */

/* Wrapper for animation */
.user-delete-wrapper {
    opacity: 1 !important;
}

/* Make the confirmation area stand out */
.confirmation-section {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--divider-color);
}

.user-details-list {
    display: grid;
    grid-template-columns: minmax(120px, 20%) 1fr;
    gap: 12px 20px;
    background-color: var(--app-bg);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--divider-color);
}
.user-details-list dt {
    font-weight: 500;
    color: var(--text-secondary);
}
.user-details-list dd {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Modal specific styling */
.modal-header.modal-header-danger {
    background-color: var(--danger);
    color: white;
}
.modal-header.modal-header-danger .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* /public/assets/css/app.css */
/* --- Manage Assignments Page Specific Styles --- */

/* Wrapper for animation */
.assignments-wrapper {
    opacity: 1 !important;
}

/* Ensure vertical alignment in tables with form elements */
.assignments-wrapper .table-v2 td {
    vertical-align: middle;
}

/* Give select dropdowns a minimum width to prevent squishing */
.assignments-wrapper .form-select {
    min-width: 200px;
}
/* /public/assets/css/app.css */
/* --- Manage Calendar Page Specific Styles --- */

/* Wrapper for animation and grid layout */
.manage-calendar-wrapper {
    opacity: 1 !important;
}

/* Reusing the profile grid for a 2-column layout */
.calendar-form-container {
    grid-column: 1 / -1; /* Full width on mobile */
}
.calendar-list-container {
    grid-column: 1 / -1; /* Full width on mobile */
}
@media (min-width: 992px) {
    .calendar-form-container {
        grid-column: 1 / span 1;
        /* Make form sticky on desktop for long lists */
        position: sticky;
        top: 24px;
        align-self: start;
    }
    .calendar-list-container {
        grid-column: 2 / span 1;
    }
}

/* Ensure table cells are aligned well with action buttons */
.manage-calendar-wrapper .table-v2 td {
    vertical-align: middle;
}

/* Badge for holiday status */
.badge-holiday-yes {
    background-color: var(--secondary-light);
    color: var(--secondary);
}
.badge-holiday-no {
    background-color: var(--divider-color);
    color: var(--text-secondary);
}
/* /public/assets/css/app.css */
/* --- Batch Promotion Page Specific Styles --- */

/* Wrapper for animation */
.batch-promotion-wrapper {
    opacity: 1 !important;
}

/* Container for the list of students in the confirmation step */
.student-list-container {
    max-height: 350px;
    overflow-y: auto;
    background-color: var(--app-bg);
    border: 1px solid var(--divider-color);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.student-list-container ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.student-list-container li {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--divider-color);
}
.student-list-container li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.student-list-container li:first-child {
    padding-top: 0;
}
/* /public/assets/css/app.css */
/* --- Enhancements for Review Leave Cards --- */

.student-meta-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.student-meta-info strong {
    color: var(--text-primary);
}

.leave-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.leave-detail-item dt {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}
.leave-detail-item dd {
    font-weight: 500;
    margin-left: 0;
}

/* For multi-line reasons */
.leave-detail-reason {
    grid-column: 1 / -1; /* Span full width */
}
.leave-detail-reason dd {
    white-space: pre-wrap;
    background-color: var(--app-bg);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

/* Remarks from previous approvers */
.previous-remarks {
    font-style: italic;
    background-color: var(--app-bg);
    padding: 1rem;
    border-left: 3px solid var(--secondary);
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}
.previous-remarks strong {
    display: block;
    margin-bottom: 0.5rem;
    font-style: normal;
}

/* For Modification Info */
.modification-info-box {
    background-color: var(--primary-light);
    border: 1px solid var(--primary);
    color: var(--primary-dark);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.modification-info-box .badge {
    vertical-align: middle;
}

/* --- HOD View Students Page Specific Styles --- */

/* Wrapper for animation */
.hod-students-wrapper {
    opacity: 1 !important;
}

/* Custom badges for student presence status */
.badge-status-present {
    background-color: var(--secondary-light);
    color: var(--secondary);
}
.badge-status-onleave {
    background-color: #FEF3C7; /* Light Yellow */
    color: #92400E;
}

/* Improve DataTable control spacing and alignment */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1.5rem;
}
.dataTables_wrapper .dataTables_filter input {
    margin-left: 0.5em; /* From Bootstrap's default */
    border-radius: var(--radius-sm);
    border-color: var(--border-color);
}
.dataTables_wrapper .dataTables_paginate .page-link {
    color: var(--primary);
}
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* --- Responsive fixes for profile and detail pages --- */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px;
        text-align: left;
    }
    .profile-avatar-large {
        margin-bottom: 10px;
        margin-right: 0;
    }
    .profile-identity {
        align-items: flex-start;
    }
    .profile-view-badges {
        flex-wrap: wrap;
        gap: 6px;
    }
    .card-body .row.g-4 {
        flex-direction: column;
        gap: 1.5rem;
    }
    .profile-details-list {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 576px) {
    .profile-header {
        padding: 12px;
    }
    .profile-name {
        font-size: 1.2rem;
    }
    .profile-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .card {
        padding: 0.5rem;
    }
    .tab-pane-title {
        font-size: 1rem;
    }
    .badge, .profile-view-badges .badge {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    .profile-details-list dt, .profile-details-list dd {
        font-size: 0.95rem;
    }
}
/* Universal responsive table wrapper for horizontal scroll on mobile */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Always keep tables as tables, never stack rows/columns on mobile */
.table-responsive table {
    min-width: 600px;
    /* You can adjust min-width as needed for your widest table */
}

/* Optional: visually indicate scroll on mobile */
@media (max-width: 768px) {
  .table-responsive {
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
  }
  .table-responsive::-webkit-scrollbar {
    height: 8px;
    background: var(--divider-color);
  }
  .table-responsive::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
  }
}

/* /public/assets/css/app.css */
/* --- Notifications Page Specific Styles --- */

/* Wrapper for animation */
.notifications-wrapper {
    opacity: 1 !important;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* 12px */
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
    border: 1px solid var(--border-color);
}

.notification-item.unread {
    background-color: var(--app-bg);
    border-left: 4px solid var(--primary);
}
.notification-item.unread .notification-message {
    font-weight: 500;
    color: var(--text-primary);
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}
/* Icon color variants */
.icon-bg-primary { background-color: var(--primary); }
.icon-bg-success { background-color: var(--secondary); }
.icon-bg-danger  { background-color: var(--danger); }
.icon-bg-info    { background-color: #0ea5e9; } /* Sky Blue */
.icon-bg-warning { background-color: #f59e0b; } /* Amber */

.notification-content {
    flex-grow: 1;
}
.notification-message {
    margin: 0 0 0.25rem 0;
    color: var(--text-secondary);
}
.notification-meta {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}
.notification-meta .badge {
    font-size: 0.75rem;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto; /* Pushes actions to the right */
}
/* Make "Mark as Read" button very subtle */
.notification-actions .btn-mark-read {
    background: none;
    border: none;
    color: var(--text-tertiary);
    padding: 0.25rem 0.5rem;
}
.notification-actions .btn-mark-read:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* /public/assets/css/app.css */
/* ... (existing styles) ... */

/* --- Calendar View Page Specific Styles --- */

.calendar-view-wrapper {
    opacity: 1 !important;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.event-list {
    list-style-type: none;
    padding: 0;
    margin-top: 1.5rem;
}

.event-card {
    border-left-width: 4px;
    border-left-color: var(--primary);
}

.event-card.is-holiday {
    border-left-color: var(--danger);
    background-color: #FFF1F2; /* Light red background for holidays */
}

.event-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px; /* row-gap column-gap */
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-description {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--app-bg);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    white-space: pre-wrap;
    border-left: 3px solid var(--border-color);
}

/* In public/assets/css/main-layout.css */

/* ... other styles ... */

.main-content {
    flex: 1;
    margin-left: 260px; /* Or your sidebar width */
    transition: margin-left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    position: relative; /* <<<<<< ADD THIS */
    z-index: 1;         /* <<<<<< ADD THIS */
}

/* Top Navigation */
.top-nav {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* This makes it stick to the top of its scrolling container */
    top: 0;
    z-index: 1020; /* High z-index to stay above content *within* .main-content */
    flex-shrink: 0;
}

/* Content Area where module content is injected */
.content-area {
    padding: 25px;
    flex-grow: 1;
    background-color: var(--light-gray);
    /* By default, this content will scroll *under* the sticky top-nav, which is correct. */
}



.select2-container--open {
    z-index: 1051 !important; /* Bootstrap modals are at 1050, so 1051 is a safe bet to be on top of everything. */
}
/* ... responsive styles ... */