:root {
    --navy: #2c4d62;
    --green: #8cc63f;
    --yellow: #f9d423;
    --light-bg: #f9fafb;
}

body { font-family: 'Segoe UI', sans-serif; margin: 0; direction: rtl; background: var(--light-bg); }

/* Header */
.main-header { background: #fff; border-bottom: 3px solid var(--green); padding: 10px 20px; position: sticky; top: 0; z-index: 1000; }
.header-container {
    display: flex;
    flex-direction: row; /* In RTL, this puts the first child on the right */
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure icons on the left have spacing */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.logo-img {
    max-height: 80px;
    display: block;
}

.icon-btn, .login-link { color: var(--navy); font-size: 1.5rem; text-decoration: none; margin-right: 15px; cursor: pointer; }
.login-link { font-size: 1rem; background: var(--green); color: white; padding: 8px 20px; border-radius: 20px; }

/* Drawer & Overlay */
#overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1500; }

/* Footer */
.main-footer { background: var(--navy); color: white; text-align: center; padding: 20px; margin-top: 50px; }
.main-footer a { color: var(--green); text-decoration: none; font-weight: bold; }

/* Transparent Burger Icon */
.menu-toggle-clean {
    background: none;
    border: none;
    color: var(--navy);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.menu-toggle-clean:hover {
    color: var(--green);
}

/* Drawer - Moved to the LEFT */
.drawer { 
    position: fixed; 
    left: -280px; /* Hidden off-screen to the left */
    right: auto;  /* Override previous right setting */
    top: 0; 
    width: 280px; 
    height: 100%; 
    background: var(--navy); 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 2000; 
    padding-top: 80px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
}

.drawer.open { 
    left: 0; 
}

/* Ensure the nav text is still RTL inside the left-aligned drawer */
.drawer-nav a { 
    display: block; 
    color: white; 
    padding: 15px 25px; 
    text-decoration: none; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: right; /* Keeps Arabic text aligned correctly */
    font-size: 1.1rem;
}

.drawer-nav a i {
    margin-left: 10px; /* Icon spacing for RTL */
    color: var(--green);
}

.section-title {
    color: var(--navy);
    margin-bottom: 25px;
    padding-right: 15px;
    border-right: 5px solid var(--green);
}



.kid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}


.kid-info h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.2rem;
}

.kid-notes {
    margin: 5px 0;
    font-size: 0.85rem;
    color: #888; /* Lighter font */
    line-height: 1.4;
}

.kid-dob {
    font-size: 0.8rem;
    color: var(--green);
    display: block;
}

/* Floating Settings Icon */
.kid-settings-link {
    position: absolute;
    top: 0px;
    left: 5px; /* Opposite side for RTL flow */
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s;
    z-index: 5;
}

.kid-settings-link:hover {
    color: var(--navy);
}

/* Adding breathable space to the main content */
.content-wrapper {
    padding: 20px; /* Ensures text doesn't touch the edges */
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

/* Changing the grid to a List (1 kid per line) */
.kids-grid {
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 15px; /* Space between cards */
    padding: 10px 0;
}

/* Adjusting the card for a horizontal list look */
.kid-card {
    background: #fff;
    border-radius: 15px;
    position: relative;
    width: 100%; /* Full width of the container */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-right: 5px solid var(--green); /* Branded accent on the right for RTL */
}

/* Ensuring the link takes up the full card width */
.kid-main-link {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}



/* Styling for the student count text */
.kid-class {
    font-size: 0.95rem;
    color: var(--navy);
    margin: 5px 0;
}

.kid-class i {
    color: var(--green);
    margin-left: 8px;
}

/* Ensure images in the list are uniform */
.kid-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 12px; /* Classes look better with rounded squares than circles */
    object-fit: cover;
    /* background: #f0f0f0; */
    margin:10px;

}

/* Ensure the card feels like a list item */
.kid-card {
    border-right: 5px solid var(--green);
    margin-bottom: 10px;
}

.class-info-header {
    background: #fff;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between; /* Pushes one group right, one left */
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--yellow); /* Added yellow from logo for flair */
}

/* Right Group: Logo and Title */
.class-meta-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sub-header-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.class-text h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.4rem;
}

/* Left Group: Date and Button */
.class-actions-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns items to the left in RTL */
    gap: 10px;
}

.date-picker-group {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: bold;
}

.date-picker-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.btn-attendance {
    background: var(--green);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    width: 100%; /* Makes button same width as date input on mobile */
    transition: background 0.3s;
}

.btn-attendance:hover {
    background: var(--navy);
}

.attendance-check
{
    display: inline;
    float: left;
    margin-top: -145px;
    margin-left: 0px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .class-info-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .class-meta-right {
        flex-direction: column;
    }
    .class-actions-left {
        align-items: center;
        width: 100%;
    }
}

#notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
}

.toast {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    color: white;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none; /* Controlled by JS */
    direction: rtl;
}

.toast.success {
    background-color: var(--green); /* Using your logo green */
    border-right: 5px solid #5d8a2a;
}

.toast.error {
    background-color: #e74c3c; /* Red for errors */
    border-right: 5px solid #c0392b;
}

.age-text {
    color: #888;
    margin-right: 5px;
    font-size: 0.85rem;
    font-weight: normal;
}

.kid-dob {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* Tabs Wrapper */
.tabs-container {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.tabs-header {
    overflow-x:scroll;
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: bold;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn i { color: #888; }

.tab-btn.active {
    background: #fff;
    color: var(--green);
    border-bottom: 3px solid var(--green);
}

.tab-btn.active i { color: var(--green); }

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active { display: block; }

/* Buttons & Absence State */
.button-group-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-outline {
    background: white;
    border: 2px solid #ddd;
    color: #666;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
}

.btn-outline.absent-active {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fdf2f2;
}

.placeholder-text { color: #aaa; text-align: center; font-style: italic; }


.report-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.report-section h3 {
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    background: #f8f9fa;
    border: 2px solid #eee;
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.option-btn.selected {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.option-btn i {
    margin-left: 5px;
}

.comment-box {
    width: 100%;
    min-height: 120px;
    padding: 5px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
    background-color: #fafafa;
    color: var(--navy);
}

.comment-box:focus {
    outline: none;
    border-color: var(--green);
    background-color: #fff;
}

/* Optional: Different color for parent notes to distinguish */
#parentComment {
    border-right: 5px solid var(--yellow);
}

#teacherComment {
    border-right: 5px solid var(--green);
}

/* Color Palette for Degrees */
.d0 { background-color: #e74c3c; color: #fff; } /* Bad - Red */
.d1 { background-color: #e67e22; color: #fff; } /* Satisfactory - Orange */
.d2 { background-color: #f1c40f; color: #000; } /* Fair - Yellow */
.d3 { background-color: #3498db; color: #fff; } /* Good - Blue */
.d4 { background-color: #9b59b6; color: #fff; } /* Very Good - Purple */
.d5 { background-color: var(--green); color: #fff; } /* Excellent - Green */

/* Legend Styling */
.degree-legend {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.degree-box {
    flex: 1;
    padding: 10px 5px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
}

.degree-box span {
    font-size: 0.7rem;
    font-weight: normal;
}

/* Subject Row Styling */
.subject-row {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.subject-name {
    font-weight: bold;
    color: var(--navy);
    font-size: 1.05rem;
}

.degree-selector {
    display: flex;
    gap: 5px;
}

.deg-btn {
    width: 32px;
    height: 32px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.4; /* Dimmed when not selected */
    transition: all 0.2s;
}

.deg-btn.selected {
    opacity: 1;
    transform: scale(1.1);
    border-color: #333;
}

.homework-desc {
    width: 100%;
    height: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
}

.supplies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.supply-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: background 0.3s;
}

.supply-item.filled {
    background: #f0fff4;
    border-color: var(--green);
}

.supply-info {
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 500;
}

.supply-count {
    background: var(--navy);
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-left: 10px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

#Supplies.tab-content {
    position: relative;
    min-height: 400px; /* Ensures there is space for the button even if the list is empty */
    padding-bottom: 80px; /* Adds padding so the list doesn't get hidden under the button */
}

/* 2. Change FAB from fixed to absolute */
.fab-add {
    position: absolute; /* Follows the tab, not the screen */
    bottom: 20px;       /* Distance from the bottom of the tab */
    left: 20px;         /* Distance from the left of the tab */
    width: 55px;
    height: 55px;
    background-color: var(--yellow);
    color: var(--navy);
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.fab-add:hover {
    background-color: #f1c40f;
}

.fab-add:active {
    transform: scale(0.9);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

/* .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    position: relative;
    animation: slideUp 0.3s ease-out;
} */

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.close { font-size: 28px; cursor: pointer; color: #aaa; }
.input-group { margin-bottom: 15px; }
.input-group label { display: block; margin-bottom: 5px; font-weight: bold; color: var(--navy); }
.input-group input { width: 100%; padding: 5px; border: 1px solid #ddd; border-radius: 8px; }

#Attachments.tab-content {
    position: relative;
    min-height: 400px;
    padding-bottom: 80px;
}

.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.attachment-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.attachment-item img, 
.attachment-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.attachment-type-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 5px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.btn-delete-attach {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.announcement-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-right: 5px solid var(--navy); /* Branding accent */
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.class-tag {
    background: #eef2f7;
    color: var(--navy);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.announcement-date {
    font-size: 0.8rem;
    color: #888;
}

.announcement-body p {
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.btn-add-announcement {
    background: var(--yellow);
    color: var(--navy);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: #ccc;
}
.empty-state i { font-size: 3rem; margin-bottom: 10px; }

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    background-color: #fafafa;
}

.form-control:focus {
    border-color: var(--yellow);
    outline: none;
}

.readers-summary {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: bold;
    color: var(--navy);
}

.readers-scroll-container {
    max-height: 300px; /* Limits the height */
    overflow-y: auto;  /* Adds the scroll bar */
    border: 1px solid #eee;
    border-radius: 8px;
}

.readers-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.readers-table th {
    position: sticky; /* Keeps header visible while scrolling */
    top: 0;
    background: #eee;
    padding: 10px;
    font-size: 0.9rem;
}

.readers-table td {
    padding: 10px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.85rem;
}

/* Custom Scrollbar for better UX */
.readers-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.readers-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th {
    background-color: var(--navy);
    color: white;
    padding: 12px;
    font-size: 0.9rem;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.amount-cell {
    font-weight: bold;
    color: var(--green);
}

.type-tag {
    font-size: 0.75rem;
    background: #eef2f7;
    padding: 3px 8px;
    border-radius: 4px;
}

.btn-view-img {
    color: var(--navy);
    font-size: 1.2rem;
}

.stats-badge {
    background: var(--yellow);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    margin-top: 10px;
}

.payment-container { padding: 20px; max-width: 1200px; margin: auto; }
.form-row { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.form-row .input-group { flex: 1; min-width: 200px; }
.upload-wrapper { border: 2px dashed #ddd; padding: 20px; border-radius: 12px; text-align: center; background: #fafafa; cursor: pointer; }
.image-preview-box img { max-width: 100%; max-height: 150px; margin-top: 10px; border-radius: 8px; }
.admin-card { background: white; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); padding: 20px; overflow: hidden; }
.scrollable-x { overflow-x: auto; width: 100%; }
.status-badge { padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; background: #eef2f7; }
.amount-text { font-weight: bold; color: #27ae60; }
.semester-info { background: #fff9db; padding: 10px 20px; border-radius: 10px; border-right: 5px solid #f1c40f; margin-bottom: 20px; }

/* Delete Button Styling */
.btn-delete {
    background-color: #ff4d4d; /* Modern red */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background-color: #ff3333;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 77, 77, 0.3);
}

.btn-delete:active {
    transform: scale(0.95);
}

.btn-delete i {
    font-size: 0.9rem;
}

/* Optional: Center buttons within table cells */
.admin-table td .btn-delete {
    margin: 0 auto;
}

/* Profile Edit Specifics */
.profile-pic-section { text-align: center; margin-bottom: 30px; }
.pic-wrapper { position: relative; display: inline-block; }

.profile-pic-large {
    width: 140px; height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--yellow);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-camera-overlay {
    position: absolute; bottom: 5px; right: 5px;
    background: var(--navy); color: white;
    border: none; width: 35px; height: 35px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}

.btn-camera-overlay:hover { background: var(--yellow); color: var(--navy); }
.upload-hint { font-size: 0.8rem; color: #888; margin-top: 8px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.full-width { grid-column: span 2; }

.password-safety-zone {
    background: #fff9f9;
    padding: 15px;
    border-radius: 10px;
    border: 1px dashed #ffcccc;
    margin-top: 25px;
}

.password-safety-zone h4 { margin-top: 0; color: #d63031; font-size: 1rem; }

/* General utility button */
.btn-view-img {
    background: #eef2f7; color: var(--navy);
    border: none; padding: 5px 12px; border-radius: 5px;
    cursor: pointer; font-size: 0.9rem;
}

.table-img-tiny { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.btn-approve { background: #27ae60; color: white; border: none; padding: 5px 12px; border-radius: 4px; cursor: pointer; margin-left: 5px; }
.btn-approve:hover { background: #219150; }
.btn-delete-small { background: #e74c3c; color: white; border: none; padding: 5px 12px; border-radius: 4px; cursor: pointer; }



/* Floating Action Button */
.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--yellow);
    color: var(--navy);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
    transition: 0.3s;
}

.fab-btn:hover { transform: scale(1.1) rotate(90deg); background-color: var(--navy); color: white; }

.table-img-kid { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; }
.header-actions { margin-bottom: 20px; }

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Modal Container Fix */
.modal-content {
    background-color: #fff;
    padding: 20px;
    max-height: 90vh; /* Modal won't exceed 90% of screen height */
    display: flex;
    flex-direction: column;
    padding: 0; /* Remove default padding to handle sections better */
}

.modal-header, .modal-footer {
    padding: 20px;
    background: #fff;
    z-index: 2;
}

.modal-header {
    border-bottom: 1px solid #eee;
}

.modal-footer {
    border-top: 1px solid #eee;
}

/* The Scrollable Section */
.modal-body-scroll {
    padding: 20px;
    overflow-y: auto; /* Enable vertical scroll */
    flex-grow: 1;    /* Takes up available space between header/footer */
}

/* Scrollbar Styling for a cleaner look */
.modal-body-scroll::-webkit-scrollbar {
    width: 6px;
}
.modal-body-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.check-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.notification-icon-wrapper {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}

.nav-badge {
    position: absolute;
    top: 15px;
    right: -13px;
    background-color: #ff3b30; /* Bright Red */
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff; /* Makes it pop against the background */
}

.nav-badge-inline {
    
    background-color: #ff3b30; /* Bright Red */
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff; /* Makes it pop against the background */
}














