/* Employee Reports - Dark Theme */

.employee-dashboard {
    min-height: calc(100vh - 125px);
    background: #151821;
    color: #E2E5F0;
    border: 1px solid #303544;
    border-radius: 14px;
    font-family: "Segoe UI", sans-serif;
}

/* Remove the default Bootstrap container width limitation */
.container:has(.employee-dashboard) {
    max-width: 100%;
}

/* Dashboard Heading */

.dashboard-heading {
    position: relative;
    padding: 8px 0 22px;
    border-bottom: 1px solid #303544;
}

.dashboard-heading-content {
    min-width: 0;
    position: relative;
}

.dashboard-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #A5B4FC;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.dashboard-eyebrow-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #818CF8;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.55);
}

.dashboard-title {
    color: #F4F5FB;
    font-size: clamp(25px, 3vw, 30px);
    font-weight: 650;
    letter-spacing: -0.7px;
    line-height: 1.3;
}

.dashboard-subtitle {
    color: #9CA3B8;
    font-size: 13px;
    line-height: 1.6;
}

.dashboard-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid #353C54;
    border-radius: 8px;
    background: #1B2030;
    color: #A5B4FC;
    font-size: 12px;
    font-weight: 500;
}

.dashboard-date i {
    font-size: 14px;
    color: #818CF8;
}

/* Refresh Button */

.refresh-button {
    flex-shrink: 0;
    padding: 10px 16px;
    min-height: 42px;
    border: 1px solid #6366F1;
    border-radius: 9px;
    background: linear-gradient(135deg, #6366F1, #5558D9);
    color: #FFFFFF;
    font-family: "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.16);
    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.refresh-button:hover {
    border-color: #818CF8;
    background: linear-gradient(135deg, #7375F5, #6366F1);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.refresh-button:focus-visible {
    outline: 2px solid #A5B4FC;
    outline-offset: 3px;
}

.refresh-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.reload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
}

/* Header responsive adjustments */

@media (max-width: 767px) {
    .dashboard-heading {
        align-items: stretch !important;
        flex-direction: column;
        gap: 20px !important;
        padding-bottom: 20px;
    }

    .dashboard-title {
        font-size: 25px;
    }

    .refresh-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .refresh-button {
        transition: none;
    }
}

/* Report Cards */

.report-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid #343A4B;
    border-radius: 14px;
    background: #202432;
    color: #E2E5F0;
    transition: border-color .2s ease, background .2s ease;
}

.report-card:hover {
    border-color: #4A5268;
    background: #222737;
}

.employee-name {
    overflow-wrap: anywhere;
    color: #F4F5FB;
    font-size: 15px;
    font-weight: 600;
}

.report-date {
    color: #9299B0;
    font-size: 11px;
}

.submitted-badge {
    flex-shrink: 0;
    padding: 6px 10px;
    border: 1px solid #245441;
    border-radius: 8px;
    background: #173D32;
    color: #4ADE80;
    font-size: 11px;
    font-weight: 600;
}

/* Divider */

.report-divider {
    border: 0;
    border-top: 1px solid #383E50;
    opacity: 1;
}

/* Task Fields */

.field-title {
    color: #A5B4FC;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    letter-spacing: .7px;
}

.report-field:nth-child(3) .field-title {
    color: #F0A45D;
}

.field-content {
    color: #E2E5F0;
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.field-empty {
    color: #737D96;
    font-style: italic;
}

.obstacle-content {
    color: #E2E5F0;
}

/* Empty State */

.empty-state {
    border: 1px dashed #41485B;
    background: #202432;
}

.empty-state-icon {
    color: #A5B4FC;
    font-size: 30px;
}

.empty-state h3 {
    color: #F4F5FB;
    font-size: 16px;
    font-weight: 600;
}

.empty-state p {
    color: #9299B0;
    font-size: 13px;
}

/* Responsive Adjustments */

@media (max-width: 767px) {
    .employee-dashboard {
        padding: 20px 14px !important;
        border-radius: 10px;
    }

    .dashboard-heading {
        align-items: stretch !important;
        flex-direction: column;
    }

    .refresh-button {
        width: 100%;
    }

    .report-card {
        padding: 17px;
    }

    .report-header {
        align-items: flex-start !important;
    }

    .submitted-badge {
        padding: 5px 7px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .report-card,
    .refresh-button {
        transition: none;
    }
}

/* LIGHT THEME - EMPLOYEE REPORTS
   Keep this block at the end of employee-task.css */

:root[data-theme="light"] .employee-dashboard {
    background: #FFFFFF;
    color: #30384D;
    border-color: #DCE1EC;
}

:root[data-theme="light"] .dashboard-heading {
    border-bottom-color: #E1E5EE;
}

:root[data-theme="light"] .dashboard-eyebrow {
    color: #5558D9;
}

:root[data-theme="light"] .dashboard-eyebrow-dot {
    background: #6366F1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.25);
}

:root[data-theme="light"] .dashboard-title {
    color: #20263A;
}

:root[data-theme="light"] .dashboard-subtitle {
    color: #687187;
}

:root[data-theme="light"] .dashboard-date {
    background: #F0F2FF;
    border-color: #D9DCFC;
    color: #4548C4;
}

:root[data-theme="light"] .dashboard-date i {
    color: #5558D9;
}

:root[data-theme="light"] .report-card {
    background: #FFFFFF;
    color: #30384D;
    border-color: #DCE1EC;
    box-shadow: 0 3px 12px rgba(30, 41, 59, 0.035);
}

:root[data-theme="light"] .report-card:hover {
    background: #FAFBFF;
    border-color: #BEC5F5;
}

:root[data-theme="light"] .employee-name {
    color: #20263A;
}

:root[data-theme="light"] .report-date {
    color: #687187;
}

:root[data-theme="light"] .submitted-badge {
    background: #E8F8EF;
    border-color: #B8E7CA;
    color: #187443;
}

:root[data-theme="light"] .report-divider {
    border-top-color: #E1E5EE;
}

:root[data-theme="light"] .field-title {
    color: #5558D9;
}

:root[data-theme="light"] .report-field:nth-child(3) .field-title {
    color: #A16207;
}

:root[data-theme="light"] .field-content,
:root[data-theme="light"] .obstacle-content {
    color: #384157;
}

:root[data-theme="light"] .field-empty {
    color: #858DA0;
}

:root[data-theme="light"] .empty-state {
    background: #FAFBFF;
    border-color: #C9D0DF;
}

:root[data-theme="light"] .empty-state-icon {
    color: #5558D9;
}

:root[data-theme="light"] .empty-state h3 {
    color: #20263A;
}

:root[data-theme="light"] .empty-state p {
    color: #687187;
}

:root[data-theme="light"] .refresh-button {
    border-color: #5558D9;
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    color: #FFFFFF;
}

:root[data-theme="light"] .refresh-button:hover {
    border-color: #4548C4;
    background: linear-gradient(135deg, #5558D9, #4338CA);
    color: #FFFFFF;
}