@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:ital,wght@0,100..700;1,100..700&display=swap');

:root {
    --primary-color: #4A90E2;
    --secondary-color: #357ABD;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --neutral-color: #bdc3c7;
    --success-hover-color: #27ae60;
    --danger-hover-color: #c0392b;
    --warning-bg-color: #fdf3e1;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
    --border-radius: 8px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 6px 20px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Kantumruy Pro", sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
}

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

.login-form {
    background: rgb(246, 161, 161);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.logo {
    margin-bottom: 1.5rem;
}

.logo img {
    max-width: 80px;
}

.login-form h2 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

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

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.btn-login {
    width: 100%;
    padding: 0.85rem;
    background-color: white;
    color: rgb(240, 183, 183);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.btn-logout:hover {
    background-color: var(--danger-color);
    color: white;
}

.actions button {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 4px;
    transition: all 0.2s ease-in-out;
}

.actions button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-approve {
    background-color: var(--success-color);
}

.btn-approve:hover {
    background-color: var(--success-hover-color);
}

.btn-reject {
    background-color: var(--danger-color);
}

.btn-reject:hover {
    background-color: var(--danger-hover-color);
}

.btn-view {
    background-color: var(--primary-color); 
}

.btn-view:hover {
    background-color: var(--secondary-color); 
}

.btn-confirm-reject {
    background-color: var(--danger-color);
    color: white;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-confirm-reject:hover {
    background-color: var(--danger-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.btn-cancel {
    background-color: transparent;
    color: var(--neutral-color);
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--neutral-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background-color: var(--neutral-color);
    color: white;
    box-shadow: var(--shadow-soft);
}

.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    display: none;
}

.message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
}

.message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
}


.dashboard-container {
    display: none;
}

.dashboard-header {
    background-color: white;
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
    position: fixed;
    width: calc(100% - var(--sidebar-width));
    top: 0;
    left: var(--sidebar-width);
    z-index: 100;
    transition: all 0.3s ease;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 600;
}



.user-profile {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
    border: 2px solid var(--light-color);
}

.user-profile span {
    font-weight: 500;
}

.user-profile i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}


.user-profile .dropdown-menu.active+i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-strong);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    display: none;
    min-width: 160px;
    z-index: 101;
    overflow: hidden;
}


.dropdown-menu.active {
    display: block;
}


.btn-logout {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--dark-color);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.btn-logout i {
    margin-right: 0.75rem;
}

.btn-logout:hover {
    background-color: var(--danger-color);
    color: white;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: rgb(19, 19, 88);
    color: white;
    padding-top: 1.5rem;
    transition: all 0.3s ease;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    height: var(--header-height);
    margin-bottom: 1rem;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.sidebar-logo img {
    height: 70px;
    margin-right: 1rem;
}

.sidebar-logo span {
    font-size: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar nav {
    flex-grow: 1; /* Allow nav to take available space */
    overflow-y: auto; /* Add scroll if content is too long */
}

.sidebar nav ul {
    list-style: none;
    padding: 0 1rem;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.sidebar nav ul li a i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar nav ul li.active a {
    background-color: rgb(54, 48, 171);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    transition: opacity 0.3s ease;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.welcome-section,
.user-details,
.content-container,
.chart-container {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-item label {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
}

.detail-item span {
    font-weight: 500;
    font-size: 1.05rem;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    white-space: nowrap;

}

table th {
    background-color: var(--light-color);
    font-weight: 600;
}

table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

table tbody tr:hover {
    background-color: #f5f5f5;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.status-badge.pending {
    background-color: var(--warning-bg-color);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.status-badge.approved {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.status-badge.rejected {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: white;
    z-index: 2000;
    box-shadow: var(--shadow-strong);
    animation: slideIn 0.5s ease-out forwards;
}

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

.notification.error {
    background-color: var(--danger-color);
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
    }

    to {
        transform: translateX(0);
    }
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-strong);
    transform: scale(0.95);
    animation: scaleUp 0.3s forwards;
    display: flex;
    flex-direction: column;
}

.modal-header,
.modal-footer {
    padding: 1.5rem 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #eee;
    margin-top: 1rem;
    background-color: #f8f9fa;
}

.btn-export-pdf {
    background-color: var(--primary-color);
    color: white;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-export-pdf:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.rejection-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#rejection-reason {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
}

.rejection-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.filter-container {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1.25rem;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    min-width: 150px;
}

.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    background-color: var(--light-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-group select {
    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 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 3rem;
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
    background-color: #fff;
}

.btn-reset {
    padding: 0.7rem 1.5rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.btn-reset:hover {
    background-color: var(--dark-color);
    transform: translateY(-1px);
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.items-per-page-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-per-page-selector label {
    font-size: 0.9rem;
    color: var(--dark-color);
    font-weight: 500;
}

.items-per-page-selector select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background-color: #fff;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination-container button {
    background-color: rgb(11, 7, 86);
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination-container button:hover {
    background-color: #357ABD;
}

.pagination-container button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.pagination-container .page-info {
    margin: 0 10px;
    font-weight: 500;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.loader-overlay.show {
    display: flex;
}

/* === START: New SVG Loader Styles === */
.pl,
.pl__worm {
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

.pl {
    animation-name: bump9;
    animation-timing-function: linear;
    width: 8em;
    height: 8em;
}

.pl__ring {
    stroke: hsla(var(--hue),10%,10%,0.1);
    transition: stroke 0.3s;
}

.pl__worm {
    animation-name: worm9;
    animation-timing-function: cubic-bezier(0.42,0.17,0.75,0.83);
}

/* Animations */
@keyframes bump9 {
    from,
    42%,
    46%,
    51%,
    55%,
    59%,
    63%,
    67%,
    71%,
    74%,
    78%,
    81%,
    85%,
    88%,
    92%,
    to {
        transform: translate(0,0);
    }
    44% { transform: translate(1.33%,6.75%); }
    53% { transform: translate(-16.67%,-0.54%); }
    61% { transform: translate(3.66%,-2.46%); }
    69% { transform: translate(-0.59%,15.27%); }
    76% { transform: translate(-1.92%,-4.68%); }
    83% { transform: translate(9.38%,0.96%); }
    90% { transform: translate(-4.55%,1.98%); }
}

@keyframes worm9 {
    from { stroke-dashoffset: 10; }
    25% { stroke-dashoffset: 295; }
    to { stroke-dashoffset: 1165; }
}
/* === END: New SVG Loader Styles === */

button.loading {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-login.loading::after {
    content: 'Loading...';
    display: inline-block;
    animation: none;
}

.btn-login.loading {
    color: transparent;
    position: relative;
}

.btn-login.loading::after {
    color: rgb(240, 183, 183);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.btn-export-excel {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 10px 18px;
 border: none;
 border-radius: 8px;
 background-image: linear-gradient(to right, #217346, #1D976C);
 color: white;
 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 font-size: 14px;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.3s ease;
 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-export-excel .fas.fa-file-excel {
 font-size: 16px;
}

.btn-export-excel:hover {
 background-image: linear-gradient(to right, #1D976C, #217346);
 box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
 transform: translateY(-2px);
}

.btn-export-excel:active {
 transform: translateY(0);
 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-export-excel:disabled {
 background-image: none;
 background-color: #a0a0a0;
 cursor: not-allowed;
 box-shadow: none;
 transform: none;
}

/* === START: User-Friendly Modal Detail Styles === */

.modal-body {
    padding: 0; /* Remove default padding to allow sections to control their own */
    display: block; /* Override grid to allow for block-level sections */
    background-color: #fff;
}

.modal-detail-section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-detail-section:last-child {
    border-bottom: none;
}

.modal-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.details-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.5rem;
}

.detail-item-modal {
    display: flex;
    flex-direction: column;
}

.detail-item-modal .detail-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: 500;
}

.detail-item-modal .detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    padding: 0.5rem;
    background-color: var(--light-color);
    border-radius: 4px;
    border: 1px solid #e9ecef;
    word-wrap: break-word;
}

.detail-item-modal .detail-value .status-badge {
    display: inline-block;
    font-size: 0.85rem;
}

.detail-item-modal.full-span {
    grid-column: 1 / -1;
}

.detail-item-modal .detail-value.reason-box {
    min-height: 80px;
    white-space: pre-wrap;
    background-color: #fdf3e1;
    border-left: 4px solid var(--warning-color);
    line-height: 1.6;
}

.detail-card-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.detail-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.07);
}


.detail-card-header {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* === END: User-Friendly Modal Detail Styles === */


@media (max-width: 992px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar-logo span,
    .sidebar nav ul li a span,
    .sidebar-footer { /* Hide footer text on collapse */
        display: none;
    }

    .sidebar-logo {
        padding: 0;
        justify-content: center;
    }

    .sidebar-logo img {
        margin: 0;
    }

    .sidebar nav ul li a {
        justify-content: center;
    }

    .sidebar nav ul li a i {
        margin: 0;
        font-size: 1.4rem;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed-width);
    }

    .dashboard-header {
        width: calc(100% - var(--sidebar-collapsed-width));
        left: var(--sidebar-collapsed-width);
    }
}

@media (max-width: 576px) {
    .details-grid,
    .details-grid-container {
        grid-template-columns: 1fr;
    }

    .full-width,
    .detail-item-modal.full-span {
        grid-column: 1;
    }

    .main-content {
        padding: calc(var(--header-height) + 1rem) 1rem 1rem;
    }

    .dashboard-header {
        padding: 0 1rem;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem 1.25rem;
    }
    .modal-detail-section {
        padding: 1rem 1.25rem;
    }
}

.btn-primary {
 /* Sizing & Spacing */
 padding: 10px 20px;
 font-size: 16px;
 font-weight: 600;
 border-radius: 6px;
 width: 100px;

 background-color: #0b0756; 
 color: #ffffff;
 border: none;
 cursor: pointer;
 
 /* Smooth transition for effects */
 transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}

/* State: When the mouse hovers over the button */
.btn-primary:hover {
 background-color: #357ABD; /* A slightly darker blue */
}

/* State: When the button is being clicked */
.btn-primary:active {
 background-color: #2a6293; /* An even darker blue */
 transform: translateY(1px); /* Gives a "pressed" feeling */
}

/* State: For accessibility when using keyboard navigation */
.btn-primary:focus {
 outline: none;
 box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.4); /* A soft "glow" outline */
}

/* State: When the button is disabled */
.btn-primary:disabled {
 background-color: #cccccc;
 color: #666666;
 cursor: not-allowed;
 transform: none;
}
/* Add styling for the new daily records section within the modal */
.daily-records-section {
margin-top: 20px;
padding-top: 15px;
border-top: 1px solid #e0e0e0;
}

.daily-records-section h4 {
margin-bottom: 10px;
font-size: 1em;
color: #333;
font-weight: 600;
}

/* Ensure the nested table looks good */
.daily-records-section .table-responsive {
max-height: 250px; /* Add a scrollbar if records are too long */
overflow-y: auto;
}

.daily-records-section table {
width: 100%;
border-collapse: collapse;
font-size: 0.85em;
}

.daily-records-section th,
.daily-records-section td {
text-align: left;
padding: 8px 10px;
border-bottom: 1px solid #f0f0f0;
}

.daily-records-section th {
background-color: #f9f9f9;
font-weight: 500;
}

.daily-records-section td:first-child,
.daily-records-section th:first-child {
padding-left: 0;
}
/* === START: User-Friendly User Profile Modal Styles === */

.modal-profile-header {
    background: linear-gradient(to right, #4A90E2, #357ABD);
    color: white;
    display: flex;
    align-items: center;
    padding: 2rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-profile-header .modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    margin-right: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-profile-header .modal-profile-info {
    flex-grow: 1;
}

.modal-profile-header .modal-profile-name {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.modal-profile-header .modal-profile-role {
    margin: 0.25rem 0 0.75rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.modal-profile-header .status-badge {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
}

/* Add icons to detail items for better visual cues */
.detail-item-modal .detail-value.icon-email::before,
.detail-item-modal .detail-value.icon-phone::before {
    font-family: "Font Awesome 5 Free"; /* Ensure you have Font Awesome loaded */
    font-weight: 900;
    margin-right: 0.75rem;
    color: var(--primary-color);
    width: 20px;
    display: inline-block;
}

.detail-item-modal .detail-value.icon-email::before {
    content: "\f0e0"; /* fa-envelope */
}

.detail-item-modal .detail-value.icon-phone::before {
    content: "\f095"; /* fa-phone */
}

/* User Classroom Section Styling */
#classroom-data-container .modal-detail-section {
    background-color: #f8f9fa; /* Light grey background to separate this section */
}

#classroom-data-container .modal-section-title {
    color: var(--dark-color);
    border-bottom-color: var(--dark-color);
}

/* Overriding default card styles for this specific context if needed */
#classroom-data-container .detail-card {
    background-color: #ffffff; /* White cards on a grey background */
}

#classroom-data-container .daily-records-section {
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
    padding-top: 1rem;
}

#classroom-data-container .daily-records-section h4 {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

/* === END: User-Friendly User Profile Modal Styles === */

/* Existing modal avatar style - can be removed or adjusted */
.modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-detail-section.centered {
    text-align: center;
}
/* === START: Redesigned Classroom Info Modal Styles === */

.modal-classroom-header {
    display: flex;
    align-items: center;
    background: #6D28D9; /* A nice violet color */
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-classroom-header .header-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
}

.modal-classroom-header .header-info .classroom-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-classroom-header .header-info .classroom-subject {
    margin: 0;
    opacity: 0.8;
}

/* Wrapper for the section title and the new button */
.modal-section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.btn-fullscreen {
    display: none; /* Hidden by default until records are loaded */
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-fullscreen:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* === END: Redesigned Classroom Info Modal Styles === */


/* === START: Full Screen Daily Report Modal Styles === */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.fullscreen-modal.show {
    opacity: 1;
}

.fullscreen-modal .fullscreen-content {
    background-color: white;
    width: 95%;
    height: 90%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.fullscreen-modal.show .fullscreen-content {
    transform: scale(1);
}

.fullscreen-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fullscreen-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.close-fullscreen {
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.close-fullscreen:hover {
    color: var(--danger-color);
}

.fullscreen-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Make the table in the fullscreen modal more readable */
.fullscreen-body .daily-records-section {
    border-top: none;
    margin-top: 0;
}

.fullscreen-body .daily-records-section table {
    font-size: 1rem; /* Larger font size */
}

.fullscreen-body .daily-records-section th,
.fullscreen-body .daily-records-section td {
    padding: 12px 15px; /* More padding */
}

.password-wrapper {
    position: relative;
}

.password-wrapper #toggle-password {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #95a5a6; 
    transition: color 0.2s ease-in-out;
}

.password-wrapper #toggle-password:hover {
    color: var(--dark-color);
}

.filter-group.date-range-filter {
    display: block;
    gap: 1.5rem;
    align-items: flex-end;
    flex-grow: 2; 
}

.date-input-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.date-input-group label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.date-input-group input[type="date"] {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    background-color: var(--light-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
}

.date-input-group input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
    background-color: #fff;
}


.date-input-group input[type="date"]::-webkit-calendar-picker-indicator {
    color: transparent;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234A90E2'%3e%3cpath d='M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z'/%3e%3c/svg%3e") no-repeat center;
    background-size: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.date-input-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Add this to your style.css file with the other action button styles */

.btn-cancel {
    background-color: var(--warning-color); /* Use the orange variable you defined */
}

.btn-cancel:hover {
    background-color: #d88c0a; /* A slightly darker, more saturated orange for hover */
}
