:root {
    --uas-blue: #00274C;
    --uas-gold: #D4AF37;
    --uas-bg-gray: #F4F6F9;
    --uas-card-bg: #FFFFFF;
    --uas-text-dark: #333333;
    --uas-text-light: #777777;
}

/* Dashboard Specific Styles */
#dashboard-menu {
    background-color: var(--uas-bg-gray);
    font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Header */
.dashboard-header {
    height: 80px;
    background-color: var(--uas-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    /* REQUESTED FIX */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-header .logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* LOGO FIX */
.dashboard-header .logo-section img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.dashboard-header .logo-section h1 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dashboard-header .logo-section h2 {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

.dashboard-header .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-header .user-display {
    text-align: right;
    color: white;
}

.dashboard-header .user-label {
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-header .user-name {
    font-weight: 600;
    font-size: 16px;
}

.dashboard-header button.logout-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 18px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.dashboard-header button.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ── SELECTOR DE CICLO GLOBAL ── */
.cycle-selector-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cycle-selector-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--uas-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.cycle-selector-select {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    padding: 8px 36px 8px 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23D4AF37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px auto;
    min-width: 140px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.cycle-selector-select:hover {
    border-color: var(--uas-gold);
    background-color: rgba(255, 255, 255, 0.18);
}

.cycle-selector-select:focus {
    outline: none;
    border-color: var(--uas-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.30);
}

.cycle-selector-select option {
    background: #00274C;
    color: white;
    font-weight: 600;
}


/* Main Content */
/* Main Content */
.dashboard-content {
    flex: 1;
    width: 90%;
    max-width: 1400px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
    padding-top: 20px;
    padding-bottom: 30px;
}

/* CENTRADO PERFECTO - MODIFIED */
.dashboard-container {
    width: 100%;
    /* Now full width of parent content */
    margin: 0;
    /* Reset margin as parent handles it */
    padding: 0;
}

/* Hero Section - REQUESTED FEATURE */
.hero-section {
    background: linear-gradient(to right, #00274C, #004080);
    padding: 18px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-section h2 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    justify-content: center;
}

/* ADMIN TABS */
.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--uas-blue);
    background: #f8f9fa;
}

.tab-btn.active {
    color: var(--uas-blue);
    border-bottom: 3px solid var(--uas-blue);
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Cards */
.dash-card {
    background: var(--uas-card-bg);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--uas-gold);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dash-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.dash-card .card-icon {
    margin-bottom: 12px;
    color: var(--uas-blue);
}

.dash-card .card-icon i,
.dash-card .card-icon svg {
    width: 48px;
    height: 48px;
}

.dash-card h3 {
    color: var(--uas-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    font-family: 'Segoe UI', sans-serif;
}

.dash-card p {
    color: var(--uas-text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Footer - REQUESTED FIX */
.dashboard-footer {
    text-align: center;
    padding: 20px;
    color: var(--uas-text-light);
    font-size: 13px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    margin-top: auto;
    /* Push to bottom */
}

/* ══════════════════════════════════════════════════════
   KPI STATS ROW
   ══════════════════════════════════════════════════════ */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.kpi-card {
    background: white;
    border-radius: 14px;
    padding: 16px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-left: 5px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.kpi-blue {
    border-left-color: #00274C;
}

.kpi-gold {
    border-left-color: #c5911e;
}

.kpi-green {
    border-left-color: #27ae60;
}

.kpi-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--uas-blue);
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'Segoe UI', sans-serif;
}

.kpi-label {
    font-size: 0.85rem;
    color: var(--uas-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════════
   CHART SECTION
   ══════════════════════════════════════════════════════ */
.chart-section {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.chart-card {
    background: white;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.chart-title {
    color: var(--uas-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.chart-subtitle {
    color: var(--uas-text-light);
    font-size: 0.85rem;
    margin: 0 0 20px 0;
}

.chart-wrapper {
    position: relative;
    height: 200px;
    margin: 0 auto;
    max-width: 250px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 18px;
    font-size: 0.9rem;
}

.legend-assigned {
    color: #00274C;
    font-weight: 500;
}

.legend-unassigned {
    color: #c5911e;
    font-weight: 500;
}