﻿/* SkillMatrix Modern Layout - Content Only (Navbar styles moved to Navbar.css) */

/* ===== GLOBAL RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f6fa;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    font-size: 14px;
}

/* ===== APP CONTAINER LAYOUT ===== */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-trigger {
    display: none;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .menu-trigger:hover {
        background: #f8f9fa;
        color: #CC0000;
    }

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #CC0000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 600;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.user-role {
    font-size: 10px;
    color: #6c757d;
    line-height: 1.2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.breadcrumb-item {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

    .breadcrumb-item i {
        font-size: 11px;
    }

.breadcrumb-separator {
    color: #dee2e6;
    font-size: 11px;
}

/* ===== CONTENT BODY ===== */
.content-body {
    flex: 1;
    padding: 15px;
    background: #f5f6fa !important;
}

/* ===== CONTENT SECTIONS ===== */
.section-header {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    background: #5a5a5a;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.section-title p {
    font-size: 14px;
    color: white;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== SEARCH AND FILTERS ===== */
.search-box {
    position: relative;
    min-width: 280px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #cc00007a;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .search-input:focus {
        outline: none;
        border-color: #CC0000;
        box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
    }

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
}

.search-filters {
    padding: 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-select:focus {
        outline: none;
        border-color: #CC0000;
        box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
    }

.filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ===== ACTION BUTTONS ===== */
.action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #cc00007a;
    background: white;
    color: #333;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.filter-btn:hover,
.export-btn:hover {
    border-color: #CC0000;
    color: #CC0000;
    background: rgba(204, 0, 0, 0.05);
}

.search-btn {
    background: #CC0000;
    color: white;
    border-color: #CC0000;
    padding: 10px 20px;
    width: auto;
}

    .search-btn:hover {
        background: #a00000;
        border-color: #a00000;
    }

.reset-btn {
    padding: 10px 20px;
    width: auto;
}

    .reset-btn:hover {
        background: #f8f9fa;
    }

.back-btn:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

/* ===== DATA GRID ===== */
.data-grid {
    background: white;
    overflow: auto;
}

.grid-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

    .grid-table th {
        background: #CC0000;
        color: white;
        padding: 16px 12px;
        text-align: left;
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        border-bottom: 2px solid #a00000;
    }

    .grid-table td {
        padding: 16px 12px;
        border-bottom: 1px solid #dedede;
        vertical-align: middle;
        text-align: left;
        font-size: 14px;
    }

    .grid-table tbody tr {
        transition: all 0.2s ease;
    }

        .grid-table tbody tr:hover {
            background: rgba(204, 0, 0, 0.09);
        }

/* ===== EMPLOYEE COMPONENTS ===== */
.employee-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #CC0000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.employee-details {
    flex-grow: 1;
}

    .employee-details h4 {
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        color: #333;
        line-height: 1.2;
    }

    .employee-details span {
        font-size: 12px;
        color: #6c757d;
        line-height: 1.2;
    }

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #CC0000;
}

.status-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.status-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

/* ===== PROGRESS BARS ===== */
.skills-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}

.progress-text {
    font-weight: 600;
    color: #333;
    font-size: 12px;
    min-width: 35px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
}

.progress-fill {
    height: 100%;
    background: #CC0000;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-percentage {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    min-width: 35px;
}

.mini-progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.mini-progress-fill {
    height: 100%;
    background: #CC0000;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ===== UTILITY BADGES ===== */
.plant-badge {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #e83e8c;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

/* ===== ACTION BUTTONS IN GRID ===== */
.action-buttons {
    display: flex;
    gap: 6px;
    min-width: 90px;
}

    .action-buttons .action-btn {
        width: 32px;
        height: 32px;
        border: 1px solid #cc00007a;
        border-radius: 6px;
        background: white;
        color: #6c757d;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 13px;
    }

.expand-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.view-btn:hover {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.edit-btn:hover {
    background: #CC0000;
    color: white;
    border-color: #CC0000;
}

.approve-btn:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.report-btn:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.add-gap-btn:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* ===== TAB CONTENT ===== */
.tab-content {
    display: none !important;
}

    .tab-content.active {
        display: block !important;
    }

/* Ensure no tab content is visible unless specifically active */
#supervisor-tab:not(.active),
#general-tab:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Only show active tabs */
#general-tab.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    left: auto !important;
}

.content-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgb(0 0 0 / 44%);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

/* ===== EXPANDABLE ROWS ===== */
.expand-btn.expanded {
    transform: rotate(180deg);
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.skills-detail-row {
    background: #f8f9fa !important;
    border: none !important;
    display: none;
}

    .skills-detail-row.show {
        display: table-row !important;
    }

    .skills-detail-row td {
        padding: 0 !important;
        border: none !important;
    }

.skills-detail-cell {
    padding: 0 !important;
    background: #f0f8ff !important;
    border: 1px solid #e9ecef !important;
}

.skills-detail-container {
    padding: 16px !important;
    background: #5a5a5a !important;
    border-left: 4px solid #cc0000 !important;
    border-radius: 0 8px 8px 0 !important;
    margin: 0 !important;
}

.skills-detail-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.skills-detail-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

.skills-detail-grid {
    background: white !important;
    border-radius: 6px !important;
    overflow: auto !important;
    border: 1px solid #cc0000 !important;
    box-shadow: 0 0px 15px rgb(255 255 255 / 89%) !important;
}

.skills-table {
    width: 100% !important;
    border-collapse: collapse !important;
    min-width: 800px !important;
}

    .skills-table th {
        background: #cc0000 !important;
        color: white !important;
        padding: 8px 6px !important;
        text-align: left !important;
        font-weight: 600 !important;
        font-size: 10px !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        border-bottom: 2px solid #a00000 !important;
    }

    .skills-table td {
        padding: 8px 6px !important;
        border-bottom: 1px solid #f8f9fa !important;
        font-size: 11px !important;
        vertical-align: middle !important;
        text-align: left !important;
    }

    .skills-table tbody tr:hover {
        background: rgba(0, 123, 255, 0.05) !important;
    }

/* ===== SUPERVISOR TABS ===== */

.sub-tab-content {
    background: transparent !important;
    border: none !important;
    display: none !important;
    padding: 0 !important;
}

    .sub-tab-btn:hover:not(.active) {
        background: rgba(204, 0, 0, 0.1) !important;
        color: #CC0000 !important;
    }

/* ===== SKILLS CARDS SECTION ===== */
.skills-cards-section {
    background: white !important;
    border-radius: 12px !important;
    padding: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e9ecef !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

    .skills-cards-section .section-title {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

        .skills-cards-section .section-title h2 {
            font-size: 18px !important;
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
        }

        .skills-cards-section .section-title p {
            font-size: 13px !important;
            color: #6c757d;
            margin: 0;
        }

/* Horizontal Scrolling Grid */
.skills-cards-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 0 12px 0 !important;
    margin: 0 !important;
    scroll-behavior: smooth !important;
    width: 100% !important;
    max-width: 100% !important;
    scrollbar-width: thin !important;
    scrollbar-color: #CC0000 #f1f1f1 !important;
    transition: max-width 0.3s ease !important;
}

/* Card Styling */
.skill-info-card {
    display: flex !important;
    background: #5a5a5a !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgb(0 0 0 / 32%) !important;
    min-width: 280px !important;
    max-width: 280px !important;
    flex-shrink: 0 !important;
    height: fit-content !important;
}

    .skill-info-card:hover {
        transform: translateY(-2px) !important;
        border-color: #CC0000 !important;
    }

/* Card Icon */
.skill-card-icon {
    margin-right: 16px !important;
    position: relative;
    flex-shrink: 0 !important;
}

.skill-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    background: #CC0000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px !important;
}

.skill-level-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50%;
    border: 2px solid white;
}

    .skill-level-indicator.level-advanced {
        background: #dc3545;
    }

    .skill-level-indicator.level-intermediate {
        background: #CC0000;
    }

    .skill-level-indicator.level-basic {
        background: #28a745;
    }

/* Card Content */
.skill-card-info {
    flex: 1;
    overflow: hidden;
}

.skill-name {
    font-size: 16px !important;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-details {
    display: flex;
    flex-direction: column;
    gap: 4px !important;
}

.skill-category,
.skill-complexity,
.skill-count {
    font-size: 12px !important;
    color: #cc0000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-coverage {
    margin-top: 8px !important;
}

.coverage-label {
    font-size: 11px !important;
    color: #6c757d;
    margin-bottom: 4px !important;
    display: block;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

    .modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: #CC0000;
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Gap Modal */
.gap-modal {
    display: none;
    position: fixed;
    z-index: 2001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

    .gap-modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.gap-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

/* ===== FORM ELEMENTS ===== */
.gap-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

    .form-input:focus,
    .form-textarea:focus {
        outline: none;
        border-color: #CC0000;
        box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
    }

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn {
    padding: 12px 24px;
    border: 1px solid;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: #CC0000;
    color: white;
    border-color: #CC0000;
}

    .btn-primary:hover {
        background: #a00000;
        border-color: #a00000;
    }

.btn-secondary {
    background: white;
    color: #6c757d;
    border-color: #e9ecef;
}

    .btn-secondary:hover {
        background: #f8f9fa;
        border-color: #dee2e6;
    }

/* ===== ENHANCED FORM STYLING ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

    .form-row .form-group {
        margin-bottom: 0;
    }

/* ===== COMPACT GAP MODAL STYLING ===== */
.gap-modal-compact {
    max-width: 500px !important;
    width: 90% !important;
    max-height: 80vh !important;
}

    .gap-modal-compact .gap-form {
        padding: 16px !important;
    }

    .gap-modal-compact .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .gap-modal-compact .form-group {
        margin-bottom: 12px;
    }

    .gap-modal-compact .form-label {
        font-size: 13px !important;
        margin-bottom: 4px !important;
        font-weight: 600;
        color: #333;
    }

    .gap-modal-compact .form-input,
    .gap-modal-compact .form-textarea {
        padding: 8px 10px !important;
        font-size: 13px !important;
        border: 1px solid #e9ecef;
        border-radius: 6px;
        transition: border-color 0.3s ease;
    }

        .gap-modal-compact .form-input:focus,
        .gap-modal-compact .form-textarea:focus {
            outline: none;
            border-color: #CC0000;
            box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
        }

    .gap-modal-compact .form-textarea {
        resize: vertical;
        min-height: 70px;
    }

    .gap-modal-compact .form-buttons {
        margin-top: 16px;
        gap: 8px;
    }

    .gap-modal-compact .btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }

    .gap-modal-compact input[type="date"] {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

/* ===== GRID WITH SHADOW CLASS FOR COMPACT STYLING ===== */
.content-section.grid-with-shadow {
    box-shadow: 0 2px 6px rgb(0 0 0 / 58%) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
}

    .content-section.grid-with-shadow .section-header {
        padding: 6px 10px !important;
        background: #5a5a5a !important;
        border-radius: 0 !important;
        gap: 15px !important;
    }

    .content-section.grid-with-shadow .section-title h2 {
        font-size: 14px !important;
        margin-bottom: 1px !important;
        font-weight: 600 !important;
    }

    .content-section.grid-with-shadow .section-title p {
        font-size: 11px !important;
        margin: 0 !important;
    }

    .content-section.grid-with-shadow .section-actions {
        gap: 8px !important;
    }

    .content-section.grid-with-shadow .search-box {
        min-width: 200px !important;
    }

    .content-section.grid-with-shadow .search-input {
        padding: 6px 30px 6px 10px !important;
        font-size: 12px !important;
    }

    .content-section.grid-with-shadow .data-grid {
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .content-section.grid-with-shadow .grid-table th {
        padding: 8px 6px !important;
        font-size: 10px !important;
        letter-spacing: 0.3px !important;
    }

    .content-section.grid-with-shadow .grid-table td {
        padding: 8px 6px !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    .content-section.grid-with-shadow .employee-cell {
        gap: 8px !important;
        min-width: 120px !important;
    }

    .content-section.grid-with-shadow .employee-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    .content-section.grid-with-shadow .employee-details h4 {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .content-section.grid-with-shadow .employee-details span {
        font-size: 9px !important;
        line-height: 1.1 !important;
    }

    .content-section.grid-with-shadow .skills-progress {
        gap: 4px !important;
        min-width: 100px !important;
    }

    .content-section.grid-with-shadow .progress-text {
        font-size: 9px !important;
        min-width: 25px !important;
    }

    .content-section.grid-with-shadow .progress-percentage {
        font-size: 9px !important;
        min-width: 25px !important;
    }

    .content-section.grid-with-shadow .status-badge {
        padding: 3px 6px !important;
        font-size: 9px !important;
        gap: 3px !important;
    }

        .content-section.grid-with-shadow .status-badge i {
            font-size: 8px !important;
        }

    .content-section.grid-with-shadow .action-buttons {
        gap: 4px !important;
        min-width: 60px !important;
    }

        .content-section.grid-with-shadow .action-buttons .action-btn {
            width: 24px !important;
            height: 24px !important;
            font-size: 10px !important;
            border-radius: 4px !important;
        }

    .content-section.grid-with-shadow code {
        font-size: 9px !important;
        padding: 1px 4px !important;
    }

/* ===== EMPLOYEE VIEW GAPS ROW - LEFT BORDER AND DROP SHADOW ===== */


/* ===== EMPLOYEE VIEW - RECORDS AND APPROVAL COLUMNS STYLING ===== */
.records-section {
    position: relative;
}

.view-attachments-btn,
.upload-file-btn {
    width: 32px !important;
    height: 32px !important;
    border: 1px solid #cc00007a !important;
    border-radius: 6px !important;
    background: white !important;
    color: #6c757d !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    position: relative;
}

    .view-attachments-btn:hover {
        background: #17a2b8 !important;
        color: white !important;
        border-color: #17a2b8 !important;
    }

    .upload-file-btn:hover {
        background: #28a745 !important;
        color: white !important;
        border-color: #28a745 !important;
    }

.attachment-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.effort-hours-btn {
    width: 60px !important;
    height: 32px !important;
    border: 1px solid #cc00007a !important;
    border-radius: 6px !important;
    background: white !important;
    color: #6c757d !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 6px !important;
    font-size: 10px !important;
    position: relative;
}

    .effort-hours-btn:hover {
        background: #CC0000 !important;
        color: #212529 !important;
        border-color: #CC0000 !important;
    }

.effort-progress-mini {
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    height: 3px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.effort-progress-bar {
    height: 100%;
    background: #CC0000;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.effort-text {
    font-size: 9px;
    font-weight: 600;
    color: #333;
    z-index: 1;
    position: relative;
}

.approval-section {
    /* display: flex;
    align-items: center;
    justify-content: center;*/
}

.approval-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid;
}

.approval-approved {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}

.approval-rejected {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

.approval-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #CC0000;
    border-color: rgba(255, 193, 7, 0.3);
}

.approval-text {
    font-size: 11px;
    font-weight: 600;
}

.no-records-text {
    color: #6c757d;
    font-style: italic;
    font-size: 12px;
    text-align: center;
}

/* ===== NAVBAR PROTECTION ===== */
.sidebar .nav-link i {
    font-size: 14px !important;
    margin-right: 8px !important;
    width: 18px !important;
    text-align: center !important;
}

.sidebar .nav-text {
    font-size: 13px !important;
    font-weight: 500 !important;
}

.sidebar .brand-text {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.sidebar .nav-section-title {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #8e9aaf !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.sidebar.collapsed .nav-link i {
    font-size: 14px !important;
}

.sidebar.collapsed .sidebar-brand i {
    font-size: 16px !important;
}

.pd0 {
    padding: 0px !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1200px) {
    .content-section.grid-with-shadow .grid-table th,
    .content-section.grid-with-shadow .grid-table td {
        padding: 6px 4px !important;
        font-size: 9px !important;
    }

    .content-section.grid-with-shadow .employee-avatar {
        width: 24px !important;
        height: 24px !important;
        font-size: 9px !important;
    }

    .effort-hours-btn {
        width: 50px !important;
        font-size: 9px !important;
    }

    .approval-status {
        padding: 4px 8px !important;
        font-size: 10px !important;
    }

    .approval-text {
        font-size: 9px !important;
    }
}

@media (max-width: 768px) {
    .gap-modal-compact {
        width: 95% !important;
        margin: 10px !important;
    }

        .gap-modal-compact .form-row {
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .gap-modal-compact .gap-form {
            padding: 12px !important;
        }

    .view-attachments-btn,
    .upload-file-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    .effort-hours-btn {
        width: 45px !important;
        height: 28px !important;
        font-size: 8px !important;
    }

    .approval-status {
        padding: 3px 6px !important;
        font-size: 9px !important;
    }

    .attachment-count {
        min-width: 14px;
        height: 14px;
        font-size: 7px;
    }
}

/* ===== HAS GAP COLUMN STYLING ===== */
.has-gap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid;
}

.has-gap-yes {
    background: rgba(255, 193, 7, 0.1);
    color: #CC0000;
    border-color: rgba(255, 193, 7, 0.3);
}

.has-gap-no {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}

.has-gap-badge i {
    font-size: 10px;
}

/* ===== EXPANDABLE GAPS ROWS STYLING ===== */
.skill-main-row {
    cursor: pointer;
}

    .skill-main-row:hover {
        background: rgba(204, 0, 0, 0.05) !important;
    }

.gaps-detail-row {
    background: #f8f9fa !important;
    border: none !important;
    display: none;
}

    .gaps-detail-row.show {
        display: table-row !important;
    }

    .gaps-detail-row td {
        padding: 0 !important;
        border: none !important;
    }

/* Updated expand button styling */
.expand-btn.expanded {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
    transform: rotate(0deg) !important;
}

    .expand-btn.expanded i {
        transform: rotate(180deg) !important;
    }

/* ===== HAS GAP COLUMN STYLING (MAIN TABLE) ===== */
.has-gap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid;
}

.has-gap-yes {
    background: rgba(255, 193, 7, 0.1);
    color: #CC0000;
    border-color: rgba(255, 193, 7, 0.3);
}

.has-gap-no {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}

.has-gap-badge i {
    font-size: 10px;
}

/* ===== STATUS BADGES IN EXPANDED SECTION ===== */

/* ===== COMPACT POPUP STYLES (for attachments, effort hours, etc.) ===== */
.compact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .compact-popup.show {
        opacity: 1;
        visibility: visible;
    }

.compact-popup-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.compact-popup.show .compact-popup-content {
    transform: translateY(0);
}

.compact-popup-header {
    padding: 10px 14px;
    background: linear-gradient(135deg, #CC0000 0%, #a00000 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.popup-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .popup-close:hover {
        background: #e9ecef;
        color: #333;
    }

/* Records List Compact */
.records-list-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.record-item-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

    .record-item-compact:hover {
        background: #e9ecef;
        border-color: #dee2e6;
    }

.record-icon-compact {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.record-info-compact {
    flex: 1;
}

.record-name-compact {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.record-details-compact {
    font-size: 12px;
    color: #6c757d;
}

.download-btn-compact {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

    .download-btn-compact:hover {
        background: #218838;
        transform: translateY(-1px);
    }

/* ===== FILE UPLOAD MODAL STYLES ===== */
.file-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .file-upload-modal.show {
        opacity: 1;
        visibility: visible;
    }

.file-upload-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.file-upload-modal.show .file-upload-content {
    transform: translateY(0);
}

.file-upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.file-upload-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-upload-body {
    padding: 20px;
}

.file-drop-zone {
    border: 2px dashed #007bff;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .file-drop-zone:hover,
    .file-drop-zone.dragover {
        border-color: #0056b3;
        background: #e3f2fd;
    }

.file-drop-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 16px;
}

.file-drop-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.file-drop-subtext {
    font-size: 14px;
    color: #6c757d;
}

.file-input-hidden {
    display: none;
}

.selected-files {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

    .selected-files h4 {
        margin: 0 0 16px 0;
        color: #333;
        font-size: 16px;
    }

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.file-size {
    font-size: 12px;
    color: #6c757d;
}

.file-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .file-remove:hover {
        background: #c82333;
    }

/* ===== EFFORT HOURS MODAL STYLES ===== */
.effort-hours-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .effort-hours-modal.show {
        opacity: 1;
        visibility: visible;
    }

.effort-hours-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.effort-hours-modal.show .effort-hours-content {
    transform: translateY(0);
}

.effort-hours-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.effort-hours-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.effort-hours-body {
    padding: 20px;
}

.effort-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.effort-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .effort-summary-row:last-child {
        margin-bottom: 16px;
    }

.effort-label {
    font-weight: 600;
    color: #333;
}

.effort-value {
    color: #007bff;
    font-weight: 600;
}

.effort-progress-full {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.effort-progress-fill-full {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

.effort-input-group {
    margin-bottom: 20px;
}

.effort-input-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.effort-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .effort-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

.effort-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.effort-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.effort-btn-secondary {
    background: #6c757d;
    color: white;
}

    .effort-btn-secondary:hover {
        background: #5a6268;
    }

.effort-btn-primary {
    background: #007bff;
    color: white;
}

    .effort-btn-primary:hover {
        background: #0056b3;
    }

/* Form buttons styling */
.form-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background: #5a6268;
    }

.btn-primary {
    background: #007bff;
    color: white;
}

    .btn-primary:hover {
        background: #0056b3;
    }

/* Effort progress mini in records section */
.effort-progress-mini {
    width: 80%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.effort-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

Matrix.css
/* ===== COMPACT POPUP STYLES (for attachments, effort hours, records, approval) ===== */
.compact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.compact-popup.show {
    opacity: 1;
    visibility: visible;
}

.compact-popup-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.compact-popup.show .compact-popup-content {
    transform: translateY(0);
}

.popup-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .popup-close:hover {
        background: #e9ecef;
        color: #333;
    }

/* Records List Compact */
.records-list-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.record-item-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

    .record-item-compact:hover {
        background: #e9ecef;
        border-color: #dee2e6;
    }

.record-icon-compact {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.record-info-compact {
    flex: 1;
}

.record-name-compact {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.record-details-compact {
    font-size: 12px;
    color: #6c757d;
}

.download-btn-compact {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

    .download-btn-compact:hover {
        background: #218838;
        transform: translateY(-1px);
    }

/* ===== APPROVAL POPUP SPECIFIC STYLES ===== */
.approval-popup .compact-popup-content {
    max-width: 600px;
}

.skill-status-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

    .status-row:last-child {
        margin-bottom: 0;
    }

.status-label {
    font-weight: 600;
    color: #333;
}

.status-value {
    color: #007bff;
    font-weight: 600;
}

.approval-options h4 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 16px;
}

.approval-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.approval-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.approve-action {
    background: #28a745;
    color: white;
}

    .approve-action:hover {
        background: #218838;
        transform: translateY(-2px);
    }

.reject-action {
    background: #dc3545;
    color: white;
}

    .reject-action:hover {
        background: #c82333;
        transform: translateY(-2px);
    }

.hold-action {
    background: #ffc107;
    color: #212529;
}

    .hold-action:hover {
        background: #e0a800;
        transform: translateY(-2px);
    }

.update-action {
    background: #007bff;
    color: white;
}

    .update-action:hover {
        background: #0056b3;
        transform: translateY(-2px);
    }

.progress-info {
    text-align: center;
}

    .progress-info h4 {
        margin: 0 0 12px 0;
        color: #333;
    }

    .progress-info p {
        margin: 0 0 20px 0;
        color: #6c757d;
        line-height: 1.5;
    }

.progress-actions {
    display: flex;
    justify-content: center;
}

/* File type icons for records */
.record-icon-compact .fa-certificate {
    color: #ffc107;
}

.record-icon-compact .fa-clipboard-check {
    color: #28a745;
}

.record-icon-compact .fa-video {
    color: #dc3545;
}

.record-icon-compact .fa-file-alt {
    color: #007bff;
}

/* Responsive design for approval popup */
@media (max-width: 768px) {
    .approval-buttons {
        flex-direction: column;
    }

    .approval-action-btn {
        min-width: 100%;
    }
}

/* Has Gap Badge Styles for Supervisor View */
.has-gap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

.has-gap-yes {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.has-gap-no {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Supervisor Gaps Detail Row Styles */
.supervisor-gaps-detail-row {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

    .supervisor-gaps-detail-row .gaps-detail-cell {
        padding: 0 !important;
    }

    .supervisor-gaps-detail-row .skills-gaps-list {
        padding: 20px;
        background: #ffffff;
        border-left: 4px solid #007bff;
        margin: 0;
    }

    /* Gap Detail Items for Supervisor View */
    .supervisor-gaps-detail-row .gap-detail-item {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 12px;
        border: 1px solid #e9ecef;
    }

        .supervisor-gaps-detail-row .gap-detail-item:last-child {
            margin-bottom: 0;
        }

/* Expand button animations for supervisor view */
.supervisor-skill-main-row .expand-btn {
    transition: all 0.2s ease;
}

    .supervisor-skill-main-row .expand-btn.expanded {
        background: #007bff;
        color: white;
        transform: rotate(180deg);
    }

    .supervisor-skill-main-row .expand-btn:hover {
        background: #0056b3;
        color: white;
    }

/* Gap field styling for supervisor view */
.supervisor-gaps-detail-row .gap-field-label {
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.supervisor-gaps-detail-row .gap-field-value {
    color: #333;
    font-weight: 500;
}

.supervisor-gaps-detail-row .gap-field-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: #e9ecef;
    color: #495057;
}

.supervisor-gaps-detail-row .gap-date-field {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #495057;
}

    .supervisor-gaps-detail-row .gap-date-field i {
        color: #6c757d;
    }

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-left: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Make header fixed over sidebar and content */
.app-header-over-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    background: #CC0000;
    color: #fff;
    z-index: 2001; /* higher than sidebar */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0 24px;
}

.header-center-title {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.header-right {
    position: absolute;
    right: 24px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.app-container {
    padding-top: 60px; /* offset for fixed header */
}

.app-header-over-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    background: #CC0000;
    color: #fff;
    z-index: 2001; /* Must be higher than .sidebar */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0 24px;
}

/* ===== FIXED HEADER OVER SIDEBAR ===== */
.app-header-over-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    background: #CC0000;
    color: #fff;
    z-index: 2001; /* HIGHER THAN SIDEBAR (1000) */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0 24px;
}

.header-center-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    white-space: nowrap;
}

.app-header-over-navbar .header-right {
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* OFFSET APP CONTAINER FOR FIXED HEADER */
.app-container {
    padding-top: 60px;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .app-header-over-navbar {
        padding: 0 15px;
    }

    .app-title {
        font-size: 18px;
    }
}


/* ===== CENTER APPLICATION NAME ===== */
.header-center-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .header-center-title i {
        font-size: 22px;
        color: #FFFFFF;
        text-shadow: 0 1px 10px rgb(0 0 0 / 62%);
    }

    .header-center-title .brand-text {
        font-size: 22px;
        font-weight: 700;
        letter-spacing: 1px;
        color: #FFFFFF;
        text-shadow: 0 1px 10px rgb(0 0 0 / 75%);
        white-space: nowrap;
    }

/* ===== RIGHT SIDE USER INFO ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CC0000;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
}

.user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

    .breadcrumb-item i {
        font-size: 11px;
    }

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.menu-trigger {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    color: #FFFFFF;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .menu-trigger:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

/* ===== APP CONTAINER LAYOUT ===== */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    padding-top: 0;
}

/* ===== REMOVE ANY OLD HEADER OVER NAVBAR STYLES ===== */
.app-header-over-navbar {
    display: none !important;
}

/* ===== GLOBAL RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f6fa;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* ===== LEFT LOGO (NO BACKGROUND) ===== */

/* ===== CENTER APPLICATION NAME ===== */
.header-center-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .header-center-title i {
        font-size: 22px;
        color: #FFFFFF;
        text-shadow: 0 1px 10px rgb(0 0 0 / 75%);
    }



/* ===== RIGHT SIDE USER INFO ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CC0000;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
    text-shadow: 0 0px 5px rgb(0 0 0 / 75%);
}

.user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

    .breadcrumb-item i {
        font-size: 11px;
    }

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.menu-trigger {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    color: #FFFFFF;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .menu-trigger:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

.f-white {
    color: #FFFFFF !important;
}

/* ===== APP CONTAINER LAYOUT ===== */
.app-container {
    display: flex;
    min-height: calc(100vh - 60px);
    position: relative;
    padding-top: 0;
    margin: 0;
}

/* ===== MAIN CONTENT ADJUSTMENT ===== */
.main-content {
    flex: 1;
    margin-left: 175px;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 60px);
}

/* When sidebar is collapsed */

    .sidebar.collapsed ~ .main-content {
        margin-left: 45px;
    }

/* When navbar is on the right */
.app-container.navbar-right .sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid #e9ecef;
}

.app-container.navbar-right .main-content {
    margin-left: 0;
    margin-right: 180px;
}

/* ===== REMOVE ANY OLD HEADER OVER NAVBAR STYLES ===== */
.app-header-over-navbar {
    display: none !important;
}

/* ===== SIDEBAR CONTENT ===== */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #8e9aaf;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px;
    margin-bottom: 12px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .nav-link:hover {
        background: rgba(204, 0, 0, 0.05);
        color: #CC0000;
        border-left-color: #CC0000;
    }

    .nav-link.active {
        background: rgba(204, 0, 0, 0.1);
        color: #CC0000;
        border-left-color: #CC0000;
        font-weight: 600;
    }

    .nav-link i {
        font-size: 16px;
        margin-right: 12px;
        width: 20px;
        text-align: center;
    }

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

/* Collapsed sidebar text hiding */
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .brand-text {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px;
}

    .sidebar.collapsed .nav-link i {
        margin-right: 0;
    }

/* ===== SIDEBAR TOGGLE BUTTONS ===== */
.sidebar-toggle-internal {
    padding: 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.toggle-btn-internal,
.position-toggle-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #e9ecef;
    background: white;
    color: #CC0000;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .toggle-btn-internal:hover,
    .position-toggle-btn:hover {
        background: rgba(204, 0, 0, 0.05);
        color: #CC0000;
        border-color: #CC0000;
    }


/* Reset body and html */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    overflow-x: hidden;
}

/* Center Title */
.header-center-title {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

    .header-center-title i {
        font-size: 22px !important;
        color: #FFFFFF !important;
    }

    .header-center-title .brand-text {
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #FFFFFF !important;
    }

/* Right User Info */
.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto !important;
}

.user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #CC0000 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.user-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
}

.user-role {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* App Container - Below Header */
.app-container {
    display: flex !important;
    margin-top: 60px !important;
    min-height: calc(100vh - 60px) !important;
    position: relative !important;
}

/* Main Content - Beside Sidebar */
/*.main-content {
    flex: 1;
    margin-left: 180px !important;*/ /* ✅ FIXED - Matches your 180px sidebar */
    /*transition: margin-left 0.3s ease;
    min-height: calc(100vh - 60px);
}*/

/* Sidebar Content */
.sidebar-content {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px 0 !important;
}

.nav-section-title {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #8e9aaf !important;
    text-transform: uppercase !important;
    padding: 0 20px !important;
    margin-bottom: 12px !important;
}

.nav-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-item {
    margin-bottom: 4px !important;
}

.nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 12px 20px !important;
    color: #495057 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
}

    .nav-link:hover {
        background: rgba(204, 0, 0, 0.05) !important;
        color: #CC0000 !important;
        border-left-color: #CC0000 !important;
    }

    .nav-link.active {
        background: rgba(204, 0, 0, 0.1) !important;
        color: #CC0000 !important;
        border-left-color: #CC0000 !important;
        font-weight: 600 !important;
    }

    .nav-link i {
        font-size: 16px !important;
        margin-right: 12px !important;
        width: 20px !important;
    }

.nav-text {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Sidebar Toggle */
.sidebar-toggle-internal {
    padding: 16px !important;
    border-top: 1px solid #e9ecef !important;
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
}

.toggle-btn-internal,
.position-toggle-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #e9ecef;
    background: white;
    color: #CC0000;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .toggle-btn-internal:hover,
    .position-toggle-btn:hover {
        background: rgba(204, 0, 0, 0.05) !important;
        color: #CC0000 !important;
        border-color: #CC0000 !important;
    }

/* When Sidebar Collapsed */


    .sidebar.collapsed .nav-text,
    .sidebar.collapsed .nav-section-title {
        display: none !important;
    }

    .sidebar.collapsed .nav-link {
        justify-content: center !important;
        padding: 12px !important;
    }

        .sidebar.collapsed .nav-link i {
            margin-right: 0 !important;
        }

/* When Navbar on Right */
.app-container.navbar-right .sidebar {
    left: auto !important;
    right: 0 !important;
    border-right: none !important;
    border-left: 1px solid #e9ecef !important;
}

.app-container.navbar-right .sidebar.collapsed ~ .main-content {
    margin-right: 50px !important;
    margin-left: 0 !important;
}

/* Hide old duplicate header */
.app-header-over-navbar {
    display: none !important;
}

/* Responsive */


/* ===== NAVBAR ICON SIZE REDUCTION - WITH PROPER SPECIFICITY ===== */

/* Override navigation link icon sizes */
.sidebar .nav-link i {
    font-size: 13px !important;
    margin-right: 10px !important;
    width: 16px !important;
    text-align: center !important;
}

/* Override section title */
.sidebar .nav-section-title {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #8e9aaf !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0 20px !important;
    margin-bottom: 10px !important;
}

/* Override navigation text */
.sidebar .nav-text {
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* Override navigation link padding */
.sidebar .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 9px 20px !important;
    color: #495057 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
}

    .sidebar .nav-link:hover {
        background: rgba(204, 0, 0, 0.05) !important;
        color: #CC0000 !important;
        border-left-color: #CC0000 !important;
    }

    .sidebar .nav-link.active {
        background: rgba(204, 0, 0, 0.1) !important;
        color: #CC0000 !important;
        border-left-color: #CC0000 !important;
        font-weight: 600 !important;
    }

/* When sidebar is collapsed */
.sidebar.collapsed .nav-link i {
    font-size: 13px !important;
    margin-right: 0 !important;
}

.sidebar.collapsed .nav-link {
    justify-content: center !important;
    padding: 9px !important;
}

/* Toggle buttons - make them smaller too */
.sidebar .sidebar-toggle-internal {
    padding: 14px !important;
    border-top: 1px solid #e9ecef !important;
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
}

.sidebar .toggle-btn-internal,
.sidebar .position-toggle-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #e9ecef;
    background: white;
    color: #CC0000;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .sidebar .toggle-btn-internal svg,
    .sidebar .position-toggle-btn svg {
        width: 13px !important;
        height: 13px !important;
    }

    .sidebar .toggle-btn-internal:hover,
    .sidebar .position-toggle-btn:hover {
        background: rgba(204, 0, 0, 0.05) !important;
        color: #CC0000 !important;
        border-color: #CC0000 !important;
    }

/* Responsive - even smaller on tablets */
@media (max-width: 992px) {
    .sidebar .nav-link i {
        font-size: 12px !important;
        width: 15px !important;
    }

    .sidebar .nav-text {
        font-size: 11px !important;
    }

    .sidebar .nav-section-title {
        font-size: 9px !important;
    }
}

/* Mobile - smallest */
@media (max-width: 768px) {
    .sidebar .nav-link i {
        font-size: 11px !important;
        width: 14px !important;
    }

    .sidebar .nav-text {
        font-size: 11px !important;
    }
}
/* ===== COMPACT USER PROFILE POPUP WITH ENHANCED COLOR INTENSITY ===== */
.user-profile-popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: rgba(250, 250, 252, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgb(0 0 0 / 52%), 0 4px 16px rgba(204, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgb(0 0 0 / 38%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    overflow: hidden;
}

    .user-profile-popup.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    /* Glass effect triangle pointer with red accent */
    .user-profile-popup::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 20px;
        width: 16px;
        height: 16px;
        background: rgba(250, 250, 252, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(204, 0, 0, 0.25);
        border-bottom: none;
        border-right: none;
        transform: rotate(45deg);
    }

/* Compact Body - NO AVATAR */
.user-profile-body-compact {
    padding: 16px;
}

/* User Name Section with red accent */
.user-profile-name-compact {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(204, 0, 0, 0.2); /* Stronger red border */
}

    .user-profile-name-compact h3 {
        font-size: 16px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 4px 0;
        line-height: 1.2;
    }

.user-profile-id-compact {
    font-size: 11px;
    color: #CC0000; /* Red accent for ID */
    margin: 0;
    font-weight: 600;
}

/* Compact User Details Grid with stronger styling */
.user-profile-details-compact {
    background: rgba(255, 245, 245, 0.9); /* Light red tint */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(204, 0, 0, 0.15);
    box-shadow: 0 1px 5px rgb(0 0 0 / 51%);
}

.user-detail-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(204, 0, 0, 0.1);
}

    .user-detail-item-compact:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .user-detail-item-compact:first-child {
        padding-top: 0;
    }

.user-detail-label-compact {
    font-size: 10px;
    font-weight: 700; /* Bolder */
    color: #CC0000; /* Red labels */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-detail-value-compact {
    font-size: 11px;
    font-weight: 700; /* Bolder */
    color: #1a1a1a;
    text-align: right;
}

/* Compact Stats with strong red theme */
.user-profile-stats-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(204, 0, 0, 0.2);
}

.user-stat-item-compact {
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.12) 0%, rgba(204, 0, 0, 0.08) 100%); /* Red gradient */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 8px;
    border: 2px solid rgba(204, 0, 0, 0.25); /* Stronger border */
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(204, 0, 0, 0.15);
}

    .user-stat-item-compact:hover {
        background: linear-gradient(135deg, rgba(204, 0, 0, 0.18) 0%, rgba(204, 0, 0, 0.12) 100%);
        border-color: rgba(204, 0, 0, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(204, 0, 0, 0.25);
    }

.user-stat-value-compact {
    font-size: 22px; /* Slightly larger */
    font-weight: 800; /* Bolder */
    color: #CC0000;
    margin: 0 0 4px 0;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(204, 0, 0, 0.2);
}

.user-stat-label-compact {
    font-size: 9px;
    color: #1a1a1a; /* Darker for better contrast */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin: 0;
}

/* Compact Footer with stronger red theme */
.user-profile-footer-compact {
    padding: 12px;
    background: linear-gradient(135deg, rgb(90 90 90 / 69%) 0%, rgb(90 90 90) 100%);
    border-top: 2px solid rgb(0 0 0 / 34%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
}

.user-profile-icon-btn-compact {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid rgba(204, 0, 0, 0.35); /* Stronger border */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #CC0000; /* Red icons */
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 6px rgba(204, 0, 0, 0.15);
}

    .user-profile-icon-btn-compact:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
        border-color: rgba(204, 0, 0, 0.5);
    }

    .user-profile-icon-btn-compact:active {
        transform: translateY(0);
    }

    /* Settings Button */
    .user-profile-icon-btn-compact:nth-child(1):hover {
        background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
        color: white;
        border-color: #6c757d;
    }

    /* Notification Button */
    .user-profile-icon-btn-compact.notification-btn-compact {
        position: relative;
    }

        .user-profile-icon-btn-compact.notification-btn-compact:hover {
            background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
            color: white;
            border-color: #ffc107;
        }

.notification-badge-compact {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #CC0000; /* Red badge */
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(250, 250, 252, 0.98);
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.5); /* Stronger shadow */
}

/* Logout Button */
.user-profile-icon-btn-compact.logout-btn-compact:hover {
    background: linear-gradient(135deg, #CC0000 0%, #a00000 100%);
    color: white;
    border-color: #CC0000;
}

/* Make user-info clickable */
.user-info {
    cursor: pointer;
    padding: 0px 0px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

    .user-info:hover {
        background: rgba(255, 255, 255, 0.1);
    }

/* Responsive */
@media (max-width: 768px) {
    .user-profile-popup {
        width: calc(100vw - 32px);
        right: 16px;
        left: 16px;
    }

        .user-profile-popup::before {
            right: 50%;
            transform: translateX(50%) rotate(45deg);
        }

    .user-profile-icon-btn-compact {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* Animation for stats counting effect */
@keyframes countUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.user-profile-popup.show .user-stat-value-compact {
    animation: countUp 0.5s ease forwards;
}

.user-profile-popup.show .user-stat-item-compact:nth-child(1) .user-stat-value-compact {
    animation-delay: 0.1s;
}

.user-profile-popup.show .user-stat-item-compact:nth-child(2) .user-stat-value-compact {
    animation-delay: 0.2s;
}

/* Smooth fade in for details */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-profile-popup.show .user-detail-item-compact {
    animation: fadeInUp 0.4s ease forwards;
}

    .user-profile-popup.show .user-detail-item-compact:nth-child(1) {
        animation-delay: 0.05s;
    }

    .user-profile-popup.show .user-detail-item-compact:nth-child(2) {
        animation-delay: 0.1s;
    }

    .user-profile-popup.show .user-detail-item-compact:nth-child(3) {
        animation-delay: 0.15s;
    }

    .user-profile-popup.show .user-detail-item-compact:nth-child(4) {
        animation-delay: 0.2s;
    }

    .user-profile-popup.show .user-detail-item-compact:nth-child(5) {
        animation-delay: 0.25s;
    }


/* ===== REDESIGNED FILE MANAGEMENT MODAL - TRULY COMPACT & SCROLLABLE PREVIEW ONLY ===== */

/* Modal sizing - COMPACT */
.file-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .file-upload-modal.show {
        opacity: 1;
    }

.file-upload-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 550px; /* Smaller width */
    max-height: 75vh; /* Reduced height */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden; /* ✅ PREVENT MODAL SCROLL */
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.file-upload-header {
    padding: 16px 20px; /* Reduced padding */
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: white;
}

.file-upload-title {
    font-size: 16px; /* Smaller */
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .file-upload-title i {
        color: white;
        font-size: 18px;
    }

.file-upload-body {
    padding: 16px 20px; /* Reduced padding */
    overflow-y: visible; /* ✅ NO SCROLL ON BODY */
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Upload section - COMPACT and at top */
.upload-new-files-section {
    margin-bottom: 0;
    flex-shrink: 0;
}

    .upload-new-files-section h4,
    .existing-files-section h4 {
        margin: 0 0 10px 0; /* Reduced margin */
        color: #333;
        font-size: 13px; /* Smaller */
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .upload-new-files-section h4 i,
        .existing-files-section h4 i {
            color: #CC0000;
            font-size: 14px;
        }

/* COMPACT drop zone */
.file-drop-zone {
    border: 2px dashed #CC0000;
    border-radius: 8px;
    padding: 20px 16px; /* Reduced padding */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(204, 0, 0, 0.02);
}

    .file-drop-zone:hover {
        background: rgba(204, 0, 0, 0.05);
        border-color: #a00000;
    }

    .file-drop-zone.dragover {
        background: rgba(204, 0, 0, 0.1);
        border-color: #CC0000;
    }

.file-drop-icon {
    font-size: 32px; /* Smaller */
    color: #CC0000;
    margin-bottom: 8px;
}

.file-drop-text {
    font-size: 13px; /* Smaller */
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.file-drop-subtext {
    font-size: 11px; /* Smaller */
    color: #6c757d;
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef 20%, #e9ecef 80%, transparent);
    margin: 16px 0; /* Reduced margin */
}

/* Existing files section */
.existing-files-section {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* ✅ SCROLLABLE PREVIEW ONLY - KEY FEATURE */
.scrollable-preview {
    max-height: 200px; /* ✅ FIXED HEIGHT FOR PREVIEW ONLY */
    overflow-y: auto; /* ✅ SCROLL ONLY THIS SECTION */
    overflow-x: hidden;
    padding-right: 6px;
    margin-top: 0;
}

    /* Custom scrollbar for preview */
    .scrollable-preview::-webkit-scrollbar {
        width: 5px;
    }

    .scrollable-preview::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 3px;
    }

    .scrollable-preview::-webkit-scrollbar-thumb {
        background: #CC0000;
        border-radius: 3px;
    }

        .scrollable-preview::-webkit-scrollbar-thumb:hover {
            background: #a00000;
        }

/* Firefox scrollbar */
.scrollable-preview {
    scrollbar-width: thin;
    scrollbar-color: #CC0000 #f8f9fa;
}

/* Record items - COMPACT */
.record-item-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px; /* Reduced */
    margin-bottom: 6px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .record-item-compact:last-child {
        margin-bottom: 0;
    }

    .record-item-compact:hover {
        border-color: #CC0000;
        box-shadow: 0 2px 8px rgba(204, 0, 0, 0.1);
    }

.record-icon-compact {
    width: 36px; /* Smaller */
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(204, 0, 0, 0.1);
    border-radius: 6px;
}

    .record-icon-compact i {
        font-size: 18px;
        color: #CC0000;
    }

.record-info-compact {
    flex: 1;
    min-width: 0;
}

.record-name-compact {
    font-size: 12px; /* Smaller */
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-details-compact {
    font-size: 10px; /* Smaller */
    color: #6c757d;
}

.file-actions-compact {
    display: flex;
    gap: 4px;
}

.download-btn-compact,
.delete-btn-compact {
    width: 32px; /* Smaller */
    height: 32px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.download-btn-compact {
    background: #17a2b8;
    color: white;
}

    .download-btn-compact:hover {
        background: #138496;
        transform: translateY(-1px);
    }

.delete-btn-compact {
    background: #dc3545;
    color: white;
}

    .delete-btn-compact:hover {
        background: #c82333;
        transform: translateY(-1px);
    }

/* Selected files for upload - COMPACT */
.selected-files {
    margin-top: 12px; /* Reduced */
}

    .selected-files h4 {
        font-size: 12px; /* Smaller */
        font-weight: 700;
        color: #333;
        margin-bottom: 8px;
    }

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px; /* Reduced */
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 6px;
}

.file-icon {
    width: 36px; /* Smaller */
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 6px;
}

    .file-icon i {
        font-size: 18px;
        color: #CC0000;
    }

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 12px; /* Smaller */
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 10px; /* Smaller */
    color: #6c757d;
}

.file-remove {
    width: 28px; /* Smaller */
    height: 28px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 12px;
}

    .file-remove:hover {
        background: #dc3545;
        color: white;
        border-color: #dc3545;
    }

/* Form buttons - COMPACT */
.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px; /* Reduced */
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.btn {
    padding: 8px 16px; /* Reduced */
    border-radius: 6px;
    font-size: 13px; /* Smaller */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background: #5a6268;
    }

.btn-primary {
    background: #CC0000;
    color: white;
}

    .btn-primary:hover {
        background: #a00000;
    }

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .popup-close:hover {
        color: white;
    }

.file-input-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .file-upload-content {
        width: 95%;
        max-height: 85vh;
    }

    .file-upload-header {
        padding: 12px 16px;
    }

    .file-upload-body {
        padding: 12px 16px;
    }

    .scrollable-preview {
        max-height: 150px;
    }

    .file-drop-zone {
        padding: 16px 12px;
    }

    .file-drop-icon {
        font-size: 28px;
    }
}

/* ===== REDESIGNED EFFORT HOURS MODAL - COMPACT WITH SCROLLABLE HISTORY ===== */

.effort-hours-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .effort-hours-modal.show {
        opacity: 1;
    }

.effort-hours-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px; /* Compact width */
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

.effort-hours-header {
    padding: 16px 20px; /* Reduced padding */
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: white;
}

.effort-hours-title {
    font-size: 16px; /* Smaller */
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .effort-hours-title i {
        color: #CC0000;
        font-size: 18px;
    }

.effort-hours-body {
    padding: 16px 20px; /* Reduced padding */
    overflow-y: visible; /* NO SCROLL ON BODY */
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Compact Summary */
.effort-summary-compact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 12px; /* Reduced */
    margin-bottom: 16px;
    flex-shrink: 0;
}

.summary-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-size: 20px; /* Smaller */
    font-weight: 700;
    color: #CC0000;
}

.stat-label {
    font-size: 10px; /* Smaller */
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: #dee2e6;
}

.effort-progress-compact {
    position: relative;
    height: 8px; /* Smaller */
    background: #e9ecef;
    border-radius: 4px;
    overflow: visible;
}

.effort-progress-fill-compact {
    height: 100%;
    background: linear-gradient(90deg, #CC0000, #a00000);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text-overlay {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Input Section - Hours + Description Side by Side */
.effort-input-section {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.input-row {
    display: grid;
    grid-template-columns: 120px 1fr; /* Hours column smaller */
    gap: 12px;
}

.input-col {
    display: flex;
    flex-direction: column;
}

.input-col-wide {
    flex: 1;
}

.effort-input-label {
    font-size: 12px; /* Smaller */
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.required {
    color: #dc3545;
    font-weight: 700;
}

.effort-input-compact {
    width: 100%;
    padding: 8px 10px; /* Reduced */
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 13px; /* Smaller */
    transition: all 0.2s ease;
}

    .effort-input-compact:focus {
        outline: none;
        border-color: #CC0000;
        box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
    }

/* History Section - SCROLLABLE ONLY THIS SECTION */
.effort-history-section {
    flex-shrink: 0;
    margin-bottom: 16px;
}

.history-title {
    font-size: 13px; /* Smaller */
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .history-title i {
        color: #CC0000;
        font-size: 14px;
    }

/* ✅ SCROLLABLE HISTORY LIST ONLY */
.effort-history-list {
    max-height: 200px; /* Fixed height */
    overflow-y: auto; /* Scroll only this section */
    overflow-x: hidden;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    /* Custom scrollbar */
    .effort-history-list::-webkit-scrollbar {
        width: 5px;
    }

    .effort-history-list::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 3px;
    }

    .effort-history-list::-webkit-scrollbar-thumb {
        background: #CC0000;
        border-radius: 3px;
    }

        .effort-history-list::-webkit-scrollbar-thumb:hover {
            background: #a00000;
        }

/* Firefox scrollbar */
.effort-history-list {
    scrollbar-width: thin;
    scrollbar-color: #CC0000 #f8f9fa;
}

.history-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px; /* Reduced */
    transition: all 0.2s ease;
}

    .history-item:hover {
        border-color: #CC0000;
        box-shadow: 0 2px 8px rgba(204, 0, 0, 0.1);
    }

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.history-hours {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #CC0000;
    font-size: 13px;
}

    .history-hours i {
        font-size: 12px;
    }

.history-date {
    font-size: 11px;
    color: #6c757d;
}

.history-description {
    font-size: 12px; /* Smaller */
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
}

.history-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
    border-top: 1px solid #f8f9fa;
}

.history-author {
    font-size: 10px; /* Smaller */
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .history-author i {
        font-size: 9px;
    }

/* Action Buttons - Compact */
.effort-buttons-compact {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.effort-btn {
    padding: 8px 16px; /* Reduced */
    border-radius: 6px;
    font-size: 13px; /* Smaller */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.effort-btn-secondary {
    background: #6c757d;
    color: white;
}

    .effort-btn-secondary:hover {
        background: #5a6268;
    }

.effort-btn-primary {
    background: #CC0000;
    color: white;
}

    .effort-btn-primary:hover {
        background: #a00000;
    }

/* Responsive */
@media (max-width: 768px) {
    .effort-hours-content {
        width: 95%;
        max-height: 90vh;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .effort-history-list {
        max-height: 150px;
    }
}

/* Compact User Details Grid with LEFT ALIGNMENT */
.user-profile-details-compact {
    background: rgba(255, 245, 245, 0.9); /* Light red tint */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(204, 0, 0, 0.15);
    box-shadow: 0 1px 5px rgb(0 0 0 / 51%);
}

.user-detail-item-compact {
    display: flex;
    justify-content: flex-start; /* ✅ CHANGED FROM space-between TO flex-start */
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(204, 0, 0, 0.1);
    gap: 12px; /* ✅ ADDED GAP BETWEEN LABEL AND VALUE */
}

    .user-detail-item-compact:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .user-detail-item-compact:first-child {
        padding-top: 0;
    }

.user-detail-label-compact {
    font-size: 10px;
    font-weight: 700; /* Bolder */
    color: #CC0000; /* Red labels */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px; /* ✅ FIXED WIDTH FOR LABELS */
    flex-shrink: 0; /* ✅ PREVENT LABEL FROM SHRINKING */
}

.user-detail-value-compact {
    font-size: 11px;
    font-weight: 700; /* Bolder */
    color: #1a1a1a;
    text-align: left; /* ✅ CHANGED FROM right TO left */
    flex: 1; /* ✅ ALLOW VALUE TO TAKE REMAINING SPACE */
}

/* ✅ ENHANCED: Progress Bar with Dynamic Colors Based on Percentage */
.effort-progress-compact {
    position: relative;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden; /* ✅ CHANGED FROM visible TO hidden - PREVENTS OVERFLOW */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.effort-progress-fill-compact {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease, background 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* ✅ ADDED - CLIPS THE SHIMMER ANIMATION */
}

/* ✅ Dynamic color based on percentage - Default RED (0-19%) */
.effort-progress-fill-compact {
    background: linear-gradient(90deg, #dc3545, #ff5252, #ff6b6b);
}

    /* ✅ ORANGE Progress (20-59%) */
    .effort-progress-fill-compact[style*="width: 2"],
    .effort-progress-fill-compact[style*="width: 3"],
    .effort-progress-fill-compact[style*="width: 4"],
    .effort-progress-fill-compact[style*="width: 5"] {
        background: linear-gradient(90deg, #ff9800, #ffb74d, #ffc947);
    }

    /* ✅ GREEN Progress (60-100%) */
    .effort-progress-fill-compact[style*="width: 6"],
    .effort-progress-fill-compact[style*="width: 7"],
    .effort-progress-fill-compact[style*="width: 8"],
    .effort-progress-fill-compact[style*="width: 9"],
    .effort-progress-fill-compact[style*="width: 100%"] {
        background: linear-gradient(90deg, #4caf50, #66bb6a, #81c784);
    }

    /* ✅ Shimmer animation - NOW PROPERLY CONTAINED */
    .effort-progress-fill-compact::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shimmer 2s infinite;
        pointer-events: none; /* ✅ ADDED - ENSURES NO INTERACTION */
    }

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.progress-text-overlay {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1; /* ✅ ADDED - ENSURES TEXT STAYS ON TOP */
}

/* ✅ CLASS-BASED PROGRESS COLORS (MORE RELIABLE) */
.effort-progress-fill-compact.progress-red {
    background: linear-gradient(90deg, #dc3545, #ff5252, #ff6b6b);
}

.effort-progress-fill-compact.progress-orange {
    background: linear-gradient(90deg, #ff9800, #ffb74d, #ffc947);
}

.effort-progress-fill-compact.progress-green {
    background: linear-gradient(90deg, #4caf50, #66bb6a, #81c784);
}


/* ===== NOTIFICATIONS MODAL STYLES ===== */
.notifications-modal-content {
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
}

.notification-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff4444;
    color: white;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    padding: 0 8px;
    margin-left: 8px;
}

/* Notification Filters */
.notification-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
    flex-wrap: wrap;
}

.notification-filter-btn {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
}

    .notification-filter-btn:hover {
        background: #f8f9fa;
        border-color: #CC0000;
        color: #CC0000;
    }

    .notification-filter-btn.active {
        background: #CC0000;
        color: white;
        border-color: #CC0000;
    }

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 6px;
}

.notification-filter-btn:not(.active) .filter-count {
    background: #e9ecef;
    color: #6c757d;
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 8px;
}

    /* Scrollbar styling */
    .notifications-list::-webkit-scrollbar {
        width: 6px;
    }

    .notifications-list::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 3px;
    }

    .notifications-list::-webkit-scrollbar-thumb {
        background: #CC0000;
        border-radius: 3px;
    }

        .notifications-list::-webkit-scrollbar-thumb:hover {
            background: #a00000;
        }

/* Notification Item */
.notification-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .notification-item:hover {
        border-color: #CC0000;
        box-shadow: 0 4px 12px rgba(204, 0, 0, 0.15);
    }

    .notification-item.pending {
        border-left: 4px solid #ffc107;
    }

    .notification-item.approved {
        border-left: 4px solid #28a745;
    }

    .notification-item.rejected {
        border-left: 4px solid #dc3545;
    }

/* Notification Header */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.notification-info {
    flex: 1;
}

.notification-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-subtitle {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-time {
    font-size: 11px;
    color: #6c757d;
    white-space: nowrap;
}

/* Notification Status Badge */
.notification-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

    .notification-status-badge.pending {
        background: rgba(255, 193, 7, 0.1);
        color: #ffc107;
        border: 1px solid rgba(255, 193, 7, 0.3);
    }

    .notification-status-badge.approved {
        background: rgba(40, 167, 69, 0.1);
        color: #28a745;
        border: 1px solid rgba(40, 167, 69, 0.3);
    }

    .notification-status-badge.rejected {
        background: rgba(220, 53, 69, 0.1);
        color: #dc3545;
        border: 1px solid rgba(220, 53, 69, 0.3);
    }

/* Notification Summary */
.notification-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Notification Actions */
.notification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-action-btn {
    flex: 1;
    min-width: 100px;
    padding: 8px 16px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.approve-btn {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

    .approve-btn:hover {
        background: #218838;
        border-color: #218838;
        transform: translateY(-2px);
    }

.reject-btn {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

    .reject-btn:hover {
        background: #c82333;
        border-color: #c82333;
        transform: translateY(-2px);
    }

.expand-btn {
    background: white;
    color: #007bff;
    border-color: #007bff;
}

    .expand-btn:hover {
        background: #007bff;
        color: white;
        transform: translateY(-2px);
    }

    .expand-btn.expanded {
        background: #007bff;
        color: white;
    }

/* Notification Details (Expandable) */
.notification-details {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

    .notification-details.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-section {
    margin-bottom: 16px;
}

.details-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
}

.detail-value {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.justification-text {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

/* Required Skills List */
.required-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(204, 0, 0, 0.1);
    color: #CC0000;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(204, 0, 0, 0.2);
}

    .skill-tag i {
        font-size: 10px;
    }

/* Empty State */
.notifications-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

    .notifications-empty i {
        font-size: 48px;
        color: #dee2e6;
        margin-bottom: 16px;
    }

    .notifications-empty h3 {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
    }

    .notifications-empty p {
        font-size: 13px;
        color: #6c757d;
    }

/* Responsive */
@media (max-width: 768px) {
    .notifications-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .notification-summary {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .notification-actions {
        flex-direction: column;
    }

    .notification-action-btn {
        min-width: 100%;
    }
}

/* ===== REDESIGNED COMPACT FOOTER WITH BUTTON GROUP ===== */
.user-profile-footer-compact {
    padding: 0;
    background: #000000;
    border-top: none;
    display: flex;
    overflow: hidden;
}

.footer-button-group {
    display: flex;
    width: 100%;
    border-top: 2px solid rgba(204, 0, 0, 0.15);
}

.footer-group-btn {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: linear-gradient(135deg, rgba(250, 250, 252, 0.95) 0%, rgba(240, 240, 245, 0.95) 100%);
    color: #333;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    .footer-group-btn i {
        font-size: 16px;
        transition: all 0.3s ease;
    }

    /* Divider between buttons */
    .footer-group-btn:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background: linear-gradient(180deg, transparent, rgba(204, 0, 0, 0.3), transparent);
    }

    /* Settings Button - Blue Theme */
    .footer-group-btn.settings-btn {
        border-bottom-left-radius: 12px;
    }

        .footer-group-btn.settings-btn:hover {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

            .footer-group-btn.settings-btn:hover i {
                transform: rotate(90deg);
            }

    /* Logout Button - Red Theme */
    .footer-group-btn.logout-btn {
        border-bottom-right-radius: 12px;
    }

        .footer-group-btn.logout-btn:hover {
            background: linear-gradient(135deg, #CC0000 0%, #a00000 100%);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
        }

            .footer-group-btn.logout-btn:hover i {
                transform: translateX(3px);
            }

    /* Active state */
    .footer-group-btn:active {
        transform: translateY(0);
    }

/* Smooth fade in for footer */
@keyframes fadeInFooter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*.user-profile-popup.show .footer-button-group {
    animation: fadeInFooter 0.4s ease forwards;
    animation-delay: 0.2s;
}*/

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-group-btn {
        padding: 12px 14px;
        font-size: 12px;
    }

        .footer-group-btn i {
            font-size: 14px;
        }
}

/* Remove old footer button styles (add this to override) */
.user-profile-icon-btn-compact,
.notification-btn-compact,
.logout-btn-compact {
    display: none !important;
}

/* ===== ULTRA-COMPACT USER DETAILS BAR (ENHANCED THEMED) ===== */
.user-details-bar-minimal {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #495057;
    border-left: 4px solid #CC0000;
    box-shadow: 0 2px 8px rgb(0 0 0 / 50%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

    .user-details-bar-minimal i.fa-info-circle {
        color: #CC0000;
        font-size: 15px;
        margin-right: 6px;
    }

    .user-details-bar-minimal strong {
        color: #212529;
        font-weight: 600;
        font-size: 13px;
    }

    .user-details-bar-minimal > span {
        color: #495057;
        font-size: 13px;
        line-height: 1.4;
    }

    .user-details-bar-minimal .separator {
        color: #ced4da;
        font-weight: 600;
        font-size: 14px;
        margin: 0 4px;
    }

    /* Hover effect for interactivity */
    .user-details-bar-minimal:hover {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

/* Responsive adjustments */
@media (max-width: 992px) {
    .user-details-bar-minimal {
        gap: 10px;
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .user-details-bar-minimal {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
    }

        .user-details-bar-minimal .separator {
            display: none;
        }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 10001;
    min-width: 300px;
    max-width: 400px;
}

    .toast.show {
        opacity: 1;
        transform: translateX(0);
    }

    .toast i {
        font-size: 20px;
    }

.toast-success {
    border-left: 4px solid #16a34a;
}

    .toast-success i {
        color: #16a34a;
    }

.toast-error {
    border-left: 4px solid #dc2626;
}

    .toast-error i {
        color: #dc2626;
    }

.toast-warning {
    border-left: 4px solid #f59e0b;
}

    .toast-warning i {
        color: #f59e0b;
    }

.toast-info {
    border-left: 4px solid #3b82f6;
}

    .toast-info i {
        color: #3b82f6;
    }

/* ===== SELECT2 CUSTOM STYLING ===== */
.select2-container--default .select2-selection--single {
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 12px;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 26px;
        color: #374151;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 38px;
    }

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #cc0000;
}

.select2-dropdown {
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #cc0000;
}

.select2-search--dropdown .select2-search__field {
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
}

    .select2-search--dropdown .select2-search__field:focus {
        border-color: #cc0000;
        outline: none;
    }

/* ===== ADD SKILLS MODAL - COMPACT SINGLE ROW LAYOUT ===== */
.add-skills-form {
    padding: 0;
}

    .add-skills-form .form-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-bottom: 16px;
    }

    .add-skills-form .form-group {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    .add-skills-form .form-label {
        font-size: 12px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .add-skills-form .form-input {
        width: 100%;
        padding: 8px 10px;
        border: 2px solid #e5e7eb;
        border-radius: 6px;
        font-size: 13px;
        color: #1f2937;
        transition: all 0.2s ease;
    }

        .add-skills-form .form-input:focus {
            outline: none;
            border-color: #cc0000;
            box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
        }

/* ===== COMPACT CHECKLIST SECTION ===== */
.checklist-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.checklist-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .checklist-title i {
        color: #3b82f6;
        font-size: 14px;
    }

.checklist-instruction {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 10px 0;
}

.checklist-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .checklist-item:hover {
        background: #f9fafb;
        border-color: #3b82f6;
    }

    .checklist-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
        margin-top: 2px;
        flex-shrink: 0;
    }

        .checklist-item input[type="checkbox"]:checked + .checklist-text {
            color: #059669;
            font-weight: 500;
        }

.checklist-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
    flex: 1;
}

/* ===== COMPACT FORM BUTTONS ===== */
.add-skills-form .form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 0;
}

.add-skills-form .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

    .add-skills-form .btn i {
        font-size: 13px;
    }

.add-skills-form .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

    .add-skills-form .btn-secondary:hover {
        background: #e5e7eb;
    }

.add-skills-form .btn-primary {
    background: #cc0000;
    color: white;
}

    .add-skills-form .btn-primary:hover {
        background: #b30000;
    }

/* ===== MODAL CONTENT ADJUSTMENTS ===== */
#addSkillsModal .modal-content {
    max-width: 800px;
    width: 90%;
}

#addSkillsModal .modal-body {
    padding: 16px 20px;
}

#addSkillsModal .modal-header {
    padding: 12px 20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .add-skills-form .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .checklist-items {
        grid-template-columns: 1fr;
    }

    #addSkillsModal .modal-content {
        width: 95%;
    }
}

/* ===== FILE UPLOAD MODAL - COMPACT WITH SCROLLABLE PREVIEW ===== */
.file-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .file-upload-modal.show {
        opacity: 1;
    }

.file-upload-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.file-upload-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #CC0000;
}

.file-upload-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-upload-body {
    padding: 16px 20px;
    overflow-y: visible;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-drop-zone {
    border: 2px dashed #CC0000;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(204, 0, 0, 0.02);
}

    .file-drop-zone:hover {
        background: rgba(204, 0, 0, 0.05);
        border-color: #a00000;
    }

.file-drop-icon {
    font-size: 32px;
    color: #CC0000;
    margin-bottom: 8px;
}

.file-drop-text {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.file-drop-subtext {
    font-size: 11px;
    color: #6c757d;
}

/* Scrollable Preview Section */
.scrollable-preview {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    margin-top: 0;
}

    .scrollable-preview::-webkit-scrollbar {
        width: 5px;
    }

    .scrollable-preview::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 3px;
    }

    .scrollable-preview::-webkit-scrollbar-thumb {
        background: #CC0000;
        border-radius: 3px;
    }

.record-item-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin-bottom: 6px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .record-item-compact:hover {
        border-color: #CC0000;
        box-shadow: 0 2px 8px rgba(204, 0, 0, 0.1);
    }

.record-icon-compact {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(204, 0, 0, 0.1);
    border-radius: 6px;
}

    .record-icon-compact i {
        font-size: 18px;
        color: #CC0000;
    }

.record-name-compact {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-btn-compact {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #17a2b8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .download-btn-compact:hover {
        background: #138496;
        transform: translateY(-1px);
    }

/* ===== EFFORT HOURS MODAL - COMPACT WITH SCROLLABLE HISTORY ===== */
.effort-hours-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .effort-hours-modal.show {
        opacity: 1;
    }

.effort-hours-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.effort-hours-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #CC0000;
}

.effort-hours-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.effort-hours-body {
    padding: 16px 20px;
    overflow-y: visible;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.effort-summary-compact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.summary-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #CC0000;
}

.stat-label {
    font-size: 10px;
    color: #6c757d;
    text-transform: uppercase;
}

.effort-progress-compact {
    position: relative;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.effort-progress-fill-compact {
    height: 100%;
    background: linear-gradient(90deg, #CC0000, #a00000);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Scrollable History Section */
.effort-history-list {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .effort-history-list::-webkit-scrollbar {
        width: 5px;
    }

    .effort-history-list::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 3px;
    }

    .effort-history-list::-webkit-scrollbar-thumb {
        background: #CC0000;
        border-radius: 3px;
    }

.history-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.2s ease;
}

    .history-item:hover {
        border-color: #CC0000;
        box-shadow: 0 2px 8px rgba(204, 0, 0, 0.1);
    }

.history-hours {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #CC0000;
    font-size: 13px;
}

.history-description {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* Action Buttons */
.effort-buttons-compact {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.effort-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.effort-btn-secondary {
    background: #6c757d;
    color: white;
}

    .effort-btn-secondary:hover {
        background: #5a6268;
    }

.effort-btn-primary {
    background: #CC0000;
    color: white;
}

    .effort-btn-primary:hover {
        background: #a00000;
    }

/* Responsive */
@media (max-width: 768px) {
    .file-upload-content,
    .effort-hours-content {
        width: 95%;
        max-height: 85vh;
    }

    .scrollable-preview,
    .effort-history-list {
        max-height: 150px;
    }
}

/* ===== COMPACT APPROVAL POPUP ===== */
.compact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .compact-popup.show {
        opacity: 1;
        visibility: visible;
    }

.compact-popup-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.compact-popup.show .compact-popup-content {
    transform: translateY(0);
}

.compact-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #CC0000;
    border-bottom: 1px solid #e9ecef;
}

.popup-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .popup-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.skill-status-info-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #495057;
    border: 1px solid #ffcdd2;
}

.status-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #333;
    padding: 3px 6px;
    background: white;
    border-radius: 4px;
    font-size: 11px;
}

    .status-info-item i {
        color: #CC0000;
        font-size: 13px;
    }

.progress-info {
    text-align: center;
    padding: 12px;
}

    .progress-info h4 {
        font-size: 14px;
        margin-bottom: 8px;
        color: #333;
    }

    .progress-info p {
        font-size: 12px;
        color: #6c757d;
        margin-bottom: 12px;
        line-height: 1.4;
    }

/* Responsive */
@media (max-width: 768px) {
    .compact-popup-content {
        width: 95%;
        max-height: 85vh;
    }
}


/* ===== FILE UPLOAD MODAL - COMPACT WITH SCROLLABLE PREVIEW ===== */
.file-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .file-upload-modal.show {
        opacity: 1;
    }

.file-upload-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.file-upload-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #CC0000;
}

.file-upload-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-upload-body {
    padding: 16px 20px;
    overflow-y: visible;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-drop-zone {
    border: 2px dashed #CC0000;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(204, 0, 0, 0.02);
}

    .file-drop-zone:hover {
        background: rgba(204, 0, 0, 0.05);
        border-color: #a00000;
    }

.file-drop-icon {
    font-size: 32px;
    color: #CC0000;
    margin-bottom: 8px;
}

.file-drop-text {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.file-drop-subtext {
    font-size: 11px;
    color: #6c757d;
}

/* Scrollable Preview Section */
.scrollable-preview {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    margin-top: 0;
}

    .scrollable-preview::-webkit-scrollbar {
        width: 5px;
    }

    .scrollable-preview::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 3px;
    }

    .scrollable-preview::-webkit-scrollbar-thumb {
        background: #CC0000;
        border-radius: 3px;
    }

.record-item-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin-bottom: 6px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .record-item-compact:hover {
        border-color: #CC0000;
        box-shadow: 0 2px 8px rgba(204, 0, 0, 0.1);
    }

.record-icon-compact {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(204, 0, 0, 0.1);
    border-radius: 6px;
}

    .record-icon-compact i {
        font-size: 18px;
        color: #CC0000;
    }

.record-name-compact {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-btn-compact {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #17a2b8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .download-btn-compact:hover {
        background: #138496;
        transform: translateY(-1px);
    }

/* ===== EFFORT HOURS MODAL - COMPACT WITH SCROLLABLE HISTORY ===== */
.effort-hours-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .effort-hours-modal.show {
        opacity: 1;
    }

.effort-hours-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.effort-hours-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #CC0000;
}

.effort-hours-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.effort-hours-body {
    padding: 16px 20px;
    overflow-y: visible;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.effort-summary-compact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.summary-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #CC0000;
}

.stat-label {
    font-size: 10px;
    color: #6c757d;
    text-transform: uppercase;
}

.effort-progress-compact {
    position: relative;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.effort-progress-fill-compact {
    height: 100%;
    background: linear-gradient(90deg, #CC0000, #a00000);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Scrollable History Section */
.effort-history-list {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .effort-history-list::-webkit-scrollbar {
        width: 5px;
    }

    .effort-history-list::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 3px;
    }

    .effort-history-list::-webkit-scrollbar-thumb {
        background: #CC0000;
        border-radius: 3px;
    }

.history-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.2s ease;
}

    .history-item:hover {
        border-color: #CC0000;
        box-shadow: 0 2px 8px rgba(204, 0, 0, 0.1);
    }

.history-hours {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #CC0000;
    font-size: 13px;
}

.history-description {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* Action Buttons */
.effort-buttons-compact {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.effort-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.effort-btn-secondary {
    background: #6c757d;
    color: white;
}

    .effort-btn-secondary:hover {
        background: #5a6268;
    }

.effort-btn-primary {
    background: #CC0000;
    color: white;
}

    .effort-btn-primary:hover {
        background: #a00000;
    }

/* Responsive */
@media (max-width: 768px) {
    .file-upload-content,
    .effort-hours-content {
        width: 95%;
        max-height: 85vh;
    }

    .scrollable-preview,
    .effort-history-list {
        max-height: 150px;
    }
}

/* ===== COMPACT APPROVAL POPUP ===== */
.compact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .compact-popup.show {
        opacity: 1;
        visibility: visible;
    }

.compact-popup-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.compact-popup.show .compact-popup-content {
    transform: translateY(0);
}

.compact-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #CC0000;
    border-bottom: 1px solid #e9ecef;
}

.popup-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .popup-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.skill-status-info-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #495057;
    border: 1px solid #ffcdd2;
}

.status-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #333;
    padding: 3px 6px;
    background: white;
    border-radius: 4px;
    font-size: 11px;
}

    .status-info-item i {
        color: #CC0000;
        font-size: 13px;
    }

.progress-info {
    text-align: center;
    padding: 12px;
}

    .progress-info h4 {
        font-size: 14px;
        margin-bottom: 8px;
        color: #333;
    }

    .progress-info p {
        font-size: 12px;
        color: #6c757d;
        margin-bottom: 12px;
        line-height: 1.4;
    }

/* Responsive */
@media (max-width: 768px) {
    .compact-popup-content {
        width: 95%;
        max-height: 85vh;
    }
}

/* ===== COMPACT SELECT2 STYLING FOR FILTER DROPDOWNS ===== */

/* Container */
.select2-container {
    width: 100% !important;
}

/* Selection Box (The main dropdown button) - COMPACT */
.select2-container--default .select2-selection--single {
    height: 38px !important; /* Reduced from 42px */
    border: 1px solid #5a5a5a !important;
    border-radius: 6px !important;
    padding: 6px 10px !important; /* Reduced from 8px 12px */
    font-size: 13px !important; /* Reduced from 14px */
    background: white !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
}

    /* Selected text - COMPACT */
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 24px !important; /* Reduced from 26px */
        color: #333 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        font-size: 13px !important; /* Reduced */
    }

    /* Placeholder text */
    .select2-container--default .select2-selection--single .select2-selection__placeholder {
        color: #6c757d !important;
        font-size: 13px !important; /* Reduced */
    }

    /* Arrow icon - COMPACT */
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px !important; /* Reduced from 40px */
        top: 1px !important;
        right: 1px !important;
    }

        .select2-container--default .select2-selection--single .select2-selection__arrow b {
            border-width: 4px 4px 0 4px !important; /* Smaller arrow */
            margin-top: -2px !important;
        }

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #CC0000 !important;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1) !important;
    outline: none !important;
}

/* Dropdown panel - COMPACT */
.select2-dropdown {
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    margin-top: 2px !important; /* Reduced from 4px */
}

/* Search box inside dropdown - COMPACT */
.select2-search--dropdown {
    padding: 6px !important; /* Reduced from 8px */
}

    .select2-search--dropdown .select2-search__field {
        border: 1px solid #e9ecef !important;
        border-radius: 4px !important; /* Reduced from 6px */
        padding: 6px 10px !important; /* Reduced from 8px 12px */
        font-size: 13px !important; /* Reduced from 14px */
        height: 32px !important; /* Added explicit height */
    }

        .select2-search--dropdown .select2-search__field:focus {
            border-color: #CC0000 !important;
            outline: none !important;
            box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1) !important;
        }

/* Dropdown results - COMPACT */
.select2-results {
    max-height: 250px !important; /* Reduced from 300px */
}

.select2-results__options {
    max-height: 250px !important; /* Reduced from 300px */
}

/* Individual option - COMPACT */
.select2-container--default .select2-results__option {
    padding: 8px 10px !important; /* Reduced from 10px 12px */
    font-size: 13px !important; /* Reduced from 14px */
    color: #333 !important;
    line-height: 1.3 !important; /* Tighter line height */
}

/* Hovered option */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #CC0000 !important;
    color: white !important;
}

/* Selected option */
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(204, 0, 0, 0.1) !important;
    color: #CC0000 !important;
}

/* Clear button (X) - COMPACT */
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #6c757d !important;
    font-size: 16px !important; /* Reduced from 18px */
    font-weight: bold !important;
    margin-right: 6px !important; /* Reduced from 8px */
    line-height: 24px !important; /* Match text line height */
}

    .select2-container--default .select2-selection--single .select2-selection__clear:hover {
        color: #CC0000 !important;
    }

/* No results message - COMPACT */
.select2-container--default .select2-results__option.select2-results__message {
    color: #6c757d !important;
    font-style: italic !important;
    padding: 8px 10px !important; /* Compact */
    font-size: 13px !important;
}

/* Loading spinner - COMPACT */
.select2-container--default .select2-results__option.loading-results {
    color: #6c757d !important;
    font-size: 13px !important;
}

/* Disabled state */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f8f9fa !important;
    cursor: not-allowed !important;
    border-color: #e9ecef !important;
}

/* Fix z-index for dropdowns to appear above other elements */
.select2-container--open {
    z-index: 9999 !important;
}

.select2-dropdown {
    z-index: 9999 !important;
}

/* Ensure filter groups maintain compact spacing */
.filter-group .select2-container {
    width: 100% !important;
}

/* Gap Closure and General Search specific overrides */
#gap-closure-tab .select2-container--default .select2-selection--single,
#general-tab .select2-container--default .select2-selection--single {
    height: 38px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        height: 36px !important;
        padding: 5px 8px !important;
        font-size: 12px !important;
    }

        .select2-container--default .select2-selection--single .select2-selection__rendered {
            line-height: 22px !important;
            font-size: 12px !important;
        }

    .select2-dropdown {
        font-size: 12px !important;
    }

    .select2-container--default .select2-results__option {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}

.view-files-btn,
.view-checklist-btn,
.view-effort-btn {
    position: relative; /* ✅ Ensure parent has relative positioning */
}

.file-count-badge,
.checklist-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f44336;
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

.content-section.grid-with-shadow .action-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
}

.effort-hours-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
    border: 2px solid white; /* White border for better visibility */
}

.assessment-type-info {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

    .assessment-type-info i {
        color: #1976d2;
        font-size: 16px;
    }

.compact-popup-header {
    padding: 10px 14px; /* Reduced from 12px 16px */
    background: linear-gradient(135deg, #CC0000 0%, #a00000 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}

.compact-popup-body {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}


/* ===== COMPACT SELECT2 STYLING FOR FILTER DROPDOWNS ===== */

/* Container */
.select2-container {
    width: 100% !important;
}

/* Selection Box (The main dropdown button) - COMPACT */
.select2-container--default .select2-selection--single {
    height: 38px !important; /* Reduced from 42px */
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    padding: 6px 10px !important; /* Reduced from 8px 12px */
    font-size: 13px !important; /* Reduced from 14px */
    background: white !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
}

    /* Selected text - COMPACT */
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 24px !important; /* Reduced from 26px */
        color: #333 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        font-size: 13px !important; /* Reduced */
    }

    /* Placeholder text */
    .select2-container--default .select2-selection--single .select2-selection__placeholder {
        color: #6c757d !important;
        font-size: 13px !important; /* Reduced */
    }

    /* Arrow icon - COMPACT */
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px !important; /* Reduced from 40px */
        top: 1px !important;
        right: 1px !important;
    }

        .select2-container--default .select2-selection--single .select2-selection__arrow b {
            border-width: 4px 4px 0 4px !important; /* Smaller arrow */
            margin-top: -2px !important;
        }

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #CC0000 !important;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1) !important;
    outline: none !important;
}

/* Dropdown panel - COMPACT */
.select2-dropdown {
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    margin-top: 2px !important; /* Reduced from 4px */
}

/* Search box inside dropdown - COMPACT */
.select2-search--dropdown {
    padding: 6px !important; /* Reduced from 8px */
}

    .select2-search--dropdown .select2-search__field {
        border: 1px solid #e9ecef !important;
        border-radius: 4px !important; /* Reduced from 6px */
        padding: 6px 10px !important; /* Reduced from 8px 12px */
        font-size: 13px !important; /* Reduced from 14px */
        height: 32px !important; /* Added explicit height */
    }

        .select2-search--dropdown .select2-search__field:focus {
            border-color: #CC0000 !important;
            outline: none !important;
            box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1) !important;
        }

/* Dropdown results - COMPACT */
.select2-results {
    max-height: 250px !important; /* Reduced from 300px */
}

.select2-results__options {
    max-height: 250px !important; /* Reduced from 300px */
}

/* Individual option - COMPACT */
.select2-container--default .select2-results__option {
    padding: 8px 10px !important; /* Reduced from 10px 12px */
    font-size: 13px !important; /* Reduced from 14px */
    color: #333 !important;
    line-height: 1.3 !important; /* Tighter line height */
}

/* Hovered option */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #CC0000 !important;
    color: white !important;
}

/* Selected option */
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(204, 0, 0, 0.1) !important;
    color: #CC0000 !important;
}

/* Clear button (X) - COMPACT */
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #6c757d !important;
    font-size: 16px !important; /* Reduced from 18px */
    font-weight: bold !important;
    margin-right: 6px !important; /* Reduced from 8px */
    line-height: 24px !important; /* Match text line height */
}

    .select2-container--default .select2-selection--single .select2-selection__clear:hover {
        color: #CC0000 !important;
    }

/* No results message - COMPACT */
.select2-container--default .select2-results__option.select2-results__message {
    color: #6c757d !important;
    font-style: italic !important;
    padding: 8px 10px !important; /* Compact */
    font-size: 13px !important;
}

/* Loading spinner - COMPACT */
.select2-container--default .select2-results__option.loading-results {
    color: #6c757d !important;
    font-size: 13px !important;
}

/* Disabled state */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f8f9fa !important;
    cursor: not-allowed !important;
    border-color: #e9ecef !important;
}

/* Fix z-index for dropdowns to appear above other elements */
.select2-container--open {
    z-index: 9999 !important;
}

.select2-dropdown {
    z-index: 9999 !important;
}

/* Ensure filter groups maintain compact spacing */
.filter-group .select2-container {
    width: 100% !important;
}

/* Gap Closure and General Search specific overrides */
#gap-closure-tab .select2-container--default .select2-selection--single,
#general-tab .select2-container--default .select2-selection--single {
    height: 38px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        height: 36px !important;
        padding: 5px 8px !important;
        font-size: 12px !important;
    }

        .select2-container--default .select2-selection--single .select2-selection__rendered {
            line-height: 22px !important;
            font-size: 12px !important;
        }

    .select2-dropdown {
        font-size: 12px !important;
    }

    .select2-container--default .select2-results__option {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}