/* ==========================================================================
   ADKORIA PEOPLE SUITE - PREMIUM STYLE SHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-app: #08080c;
    --bg-sidebar: rgba(10, 10, 16, 0.85);
    --bg-card: rgba(20, 20, 30, 0.55);
    --bg-card-hover: rgba(28, 28, 42, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-active: rgba(110, 68, 255, 0.4);
    
    --primary: #6e44ff;
    --primary-glow: rgba(110, 68, 255, 0.35);
    --secondary: #00f0ff;
    --secondary-glow: rgba(0, 240, 255, 0.25);
    
    --success: #00e676;
    --success-bg: rgba(0, 230, 118, 0.12);
    --warning: #ffb300;
    --warning-bg: rgba(255, 179, 0, 0.12);
    --danger: #ff1744;
    --danger-bg: rgba(255, 23, 68, 0.12);
    --info: #2979ff;
    --info-bg: rgba(41, 121, 255, 0.12);

    --text-primary: #f5f5f7;
    --text-secondary: #8e8e93;
    --text-muted: #5e5e64;
    
    /* Layout & Styling tokens */
    --sidebar-width: 280px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --backdrop-blur: blur(20px);
}

/* ==========================================================================
   LIGHT THEME OVERRIDES (Adkoria Design System)
   ========================================================================== */
.light-theme {
    --bg-app: #f4f6fc;
    --bg-sidebar: rgba(255, 255, 255, 0.85);
    --bg-card: rgba(255, 255, 255, 0.65);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-active: rgba(110, 68, 255, 0.3);
    
    --primary: #5e35b1;
    --primary-glow: rgba(94, 53, 177, 0.15);
    --secondary: #0088cc;
    --secondary-glow: rgba(0, 136, 204, 0.12);
    
    --success: #2e7d32;
    --success-bg: rgba(46, 125, 50, 0.1);
    --warning: #f57c00;
    --warning-bg: rgba(245, 124, 0, 0.1);
    --danger: #d32f2f;
    --danger-bg: rgba(211, 47, 47, 0.1);
    --info: #1565c0;
    --info-bg: rgba(21, 101, 192, 0.1);

    --text-primary: #1c1c1e;
    --text-secondary: #5c5c60;
    --text-muted: #8e8e93;
}

.light-theme .logo-title {
    background: linear-gradient(to right, #1c1c1e, #6e44ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme .login-wrapper {
    background: rgba(240, 243, 248, 0.95);
}

.light-theme .login-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px rgba(110, 68, 255, 0.08);
}

.light-theme .form-group-login input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

.light-theme .form-group-login input:focus {
    border-color: var(--primary);
    background: #ffffff;
}

.light-theme .login-hints {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .login-hints code {
    background: rgba(110, 68, 255, 0.08);
    color: var(--primary);
}

.light-theme .nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.light-theme .nav-item.active {
    background: rgba(110, 68, 255, 0.08);
    border-color: rgba(110, 68, 255, 0.15);
}

.light-theme .quick-stat-bubble {
    background: rgba(0, 0, 0, 0.03);
}

.light-theme .grid-line {
    stroke: rgba(0, 0, 0, 0.04);
}

.light-theme .axis-line {
    stroke: rgba(0, 0, 0, 0.1);
}

.light-theme .table-wrapper {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .data-table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.light-theme .modal-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px rgba(110, 68, 255, 0.12);
}

.light-theme .modal-header h3 {
    color: var(--text-primary);
}

.light-theme .btn-close {
    color: var(--text-secondary);
}

.light-theme .nine-box-cell {
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.light-theme .nine-box-cell:hover {
    box-shadow: 0 8px 24px rgba(110, 68, 255, 0.08);
    border-color: var(--primary);
}

.light-theme .filter-dropdown {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
}

.light-theme option {
    background: #ffffff !important;
    color: #1c1c1e !important;
}

.light-theme ::-webkit-scrollbar-track {
    background: rgba(240, 243, 248, 0.5);
}

.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}

/* Base resets & setups */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(8, 8, 12, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Main Layout Grid */
.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    position: relative;
}

/* ==========================================================================
   SIDEBAR COMPONENT
   ========================================================================== */
.sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    backdrop-filter: var(--backdrop-blur);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--primary-glow);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #c2b5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
    color: var(--text-primary);
    background: rgba(110, 68, 255, 0.15);
    border-color: rgba(110, 68, 255, 0.25);
    box-shadow: inset 0 0 12px rgba(110, 68, 255, 0.1);
}

.nav-item.active i {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1c1c28;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CONTENT WRAPPER
   ========================================================================== */
.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem 3rem;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.page-title-area {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #a39cf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quick-stats-bar {
    display: flex;
    gap: 1.5rem;
}

.quick-stat-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.quick-stat-bubble span {
    color: var(--secondary);
    font-weight: 700;
}

/* Tab contents (SPA Pages) */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
    flex-direction: column;
    gap: 2rem;
}

.tab-content.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   CARDS AND TILES
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: var(--backdrop-blur);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-active);
    box-shadow: 0 10px 30px rgba(110, 68, 255, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: var(--primary);
}

/* ==========================================================================
   TAB 1: PEOPLE ANALYTICS VIEW
   ========================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.kpi-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kpi-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-value-area {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.kpi-value {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.kpi-trend {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kpi-trend.up {
    color: var(--success);
    background: var(--success-bg);
}

.kpi-trend.down {
    color: var(--danger);
    background: var(--danger-bg);
}

.kpi-footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Analytics charts and split screen */
.analytics-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.chart-placeholder {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    position: relative;
}

/* Bullet list of alerts */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    border-left: 4px solid transparent;
}

.alert-item.danger {
    background: var(--danger-bg);
    border-left-color: var(--danger);
}
.alert-item.warning {
    background: var(--warning-bg);
    border-left-color: var(--warning);
}
.alert-item.success {
    background: var(--success-bg);
    border-left-color: var(--success);
}

.alert-item i {
    font-size: 1.2rem;
    margin-top: 0.1rem;
}
.alert-item.danger i { color: var(--danger); }
.alert-item.warning i { color: var(--warning); }
.alert-item.success i { color: var(--success); }

.alert-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.alert-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.alert-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   TAB 2: COMPENSATIONS WTW VIEW
   ========================================================================== */
.comp-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Scatter plot card details */
.scatter-plot-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: var(--backdrop-blur);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scatter-plot-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    background: rgba(5, 5, 8, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 20px 40px 40px 60px; /* Space for axes */
    overflow: hidden;
}

.scatter-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* SVG chart styles */
.axis-line {
    stroke: rgba(255,255,255,0.15);
    stroke-width: 1;
}

.grid-line {
    stroke: rgba(255,255,255,0.03);
    stroke-width: 1;
}

.axis-text {
    fill: var(--text-secondary);
    font-size: 10px;
    font-family: 'Inter', sans-serif;
}

.axis-label {
    fill: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    text-anchor: middle;
}

/* Market Band Curves in SVG */
.band-curve {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.band-curve.max {
    stroke: var(--danger);
    stroke-dasharray: 4 4;
}

.band-curve.mid {
    stroke: var(--primary);
}

.band-curve.min {
    stroke: var(--success);
    stroke-dasharray: 4 4;
}

/* Dots */
.scatter-dot {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
}

.scatter-dot:hover {
    r: 9 !important;
    stroke: white !important;
    stroke-width: 2px;
}

.legend-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Simulator and Table Split */
.comp-split {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 1.5rem;
}

/* Interactive Simulator */
.simulator-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(110,68,255,0.2);
}

.form-input-wrapper span {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn {
    background: linear-gradient(135deg, var(--primary), #865fff);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(110, 68, 255, 0.25);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 68, 255, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
    transform: none;
}

.sim-impact-box {
    margin-top: 1rem;
    background: rgba(110, 68, 255, 0.08);
    border: 1px solid rgba(110, 68, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sim-impact-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.sim-impact-label {
    color: var(--text-secondary);
}

.sim-impact-value {
    font-weight: 600;
    color: var(--secondary);
}

/* ==========================================================================
   DATATABLE COMPONENT
   ========================================================================== */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.search-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--border-color-active);
}

.search-wrapper i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.filter-dropdown {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-dropdown:focus {
    border-color: var(--border-color-active);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: rgba(0,0,0,0.15);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.03);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.data-table th {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.data-table th:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}

.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    color: var(--text-primary);
}

.data-table tbody tr {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.data-table tbody tr:hover {
    background: rgba(110,68,255,0.04);
}

/* Badge tags in tables */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.in-band {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
}

.badge.under-paid {
    background: rgba(255, 179, 0, 0.1);
    color: var(--warning);
}

.badge.over-paid {
    background: rgba(255, 23, 68, 0.1);
    color: var(--danger);
}

.compa-cell {
    font-weight: 700;
    font-family: monospace;
    font-size: 0.9rem;
}

.compa-cell.in-band { color: var(--success); }
.compa-cell.under-paid { color: var(--warning); }
.compa-cell.over-paid { color: var(--danger); }

/* Table Pagination details */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   TAB 3: NINE-BOX GRID TALENT VIEW
   ========================================================================== */
.nine-box-section {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 1.5rem;
}

.nine-box-grid-card {
    padding: 2rem;
}

.nine-box-container {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: 1fr 40px;
    gap: 0.75rem;
    aspect-ratio: 4 / 3.2;
    min-height: 480px;
}

.y-axis-label-container {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.nine-box-y-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.x-axis-label-container {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.nine-box-x-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nine-box-board {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.75rem;
}

/* Individual Cell styling inside the 9-box */
.nine-box-cell {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Hover effects & Specific Colors based on category */
.nine-box-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.nine-box-cell.hi-po {
    border-left: 4px solid var(--success);
    background: rgba(0, 230, 118, 0.02);
}
.nine-box-cell.hi-po:hover {
    background: rgba(0, 230, 118, 0.05);
    border-color: var(--success);
}

.nine-box-cell.mid-po {
    border-left: 4px solid var(--info);
    background: rgba(41, 121, 255, 0.02);
}
.nine-box-cell.mid-po:hover {
    background: rgba(41, 121, 255, 0.05);
    border-color: var(--info);
}

.nine-box-cell.low-po {
    border-left: 4px solid var(--danger);
    background: rgba(255, 23, 68, 0.02);
}
.nine-box-cell.low-po:hover {
    background: rgba(255, 23, 68, 0.05);
    border-color: var(--danger);
}

.cell-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cell-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cell-subtitle {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

.cell-count {
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: monospace;
}

.nine-box-cell.hi-po .cell-count {
    background: var(--success-bg);
    color: var(--success);
}
.nine-box-cell.mid-po .cell-count {
    background: var(--info-bg);
    color: var(--info);
}
.nine-box-cell.low-po .cell-count {
    background: var(--danger-bg);
    color: var(--danger);
}

/* Avatars lists inside cells */
.cell-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
    overflow-y: auto;
    max-height: 80px;
}

.cell-employee-tag {
    font-size: 0.65rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100px;
    transition: var(--transition-smooth);
}

.cell-employee-tag:hover {
    background: white;
    color: black;
}

.cell-footer-percentage {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
    align-self: flex-end;
}

/* ==========================================================================
   COLLABORATOR DETAILS CARD (SLIDE-OVER / DETAILED SPLIT)
   ========================================================================== */
.collaborator-details-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: var(--backdrop-blur);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 350px;
    color: var(--text-muted);
    text-align: center;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.1);
}

.detail-placeholder i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--border-color), rgba(255,255,255,0.05));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.detail-header-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.detail-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(110,68,255,0.2);
}

.detail-name-area {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.detail-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.03);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.meta-val {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Band Comparison Gauge in details */
.band-gauge-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.gauge-track {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    position: relative;
    border: 1px solid var(--border-color);
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(to right, var(--warning), var(--success), var(--danger));
    border-radius: var(--radius-sm);
    opacity: 0.85;
}

.gauge-marker {
    position: absolute;
    top: -4px;
    width: 6px;
    height: 18px;
    background: white;
    border-radius: 3px;
    border: 1px solid black;
    box-shadow: 0 0 8px rgba(0,0,0,0.8);
    transform: translateX(-50%);
}

.salary-val-grid {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Tooltips */
.tooltip {
    position: absolute;
    background: #1c1c28;
    border: 1px solid var(--border-color-active);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    pointer-events: none;
    display: none;
}

/* ==========================================================================
   RESPONSIVENESS & RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none; /* In production, we'd add a hamburger menu */
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .analytics-split {
        grid-template-columns: 1fr;
    }
    .comp-split {
        grid-template-columns: 1fr;
    }
    .nine-box-section {
        grid-template-columns: 1fr;
    }
    .collaborator-details-panel {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .main-content {
        padding: 1.5rem 1.5rem;
    }
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .quick-stats-bar {
        width: 100%;
        overflow-x: auto;
    }
}

/* ==========================================================================
   Fase 2 Styles: Competency Bars and Climate Comments
   ========================================================================== */
.comp-bar-container {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.comp-bar-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
}

.comp-bar-name {
    color: var(--text-primary);
}

.comp-bar-vals {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comp-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    position: relative;
    border: 1px solid var(--border-color);
}

.comp-bar-fill {
    height: 100%;
    background: linear-gradient(to right, rgba(110,68,255,0.4), var(--primary));
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.comp-marker-req {
    position: absolute;
    top: -3px;
    width: 4px;
    height: 14px;
    background: var(--secondary);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--secondary-glow);
    transform: translateX(-50%);
    transition: var(--transition-smooth);
}

/* Sentiment tags */
.sentiment-badge {
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sentiment-badge.positive {
    background: var(--success-bg);
    color: var(--success);
}

.sentiment-badge.neutral {
    background: var(--warning-bg);
    color: var(--warning);
}

.sentiment-badge.negative {
    background: var(--danger-bg);
    color: var(--danger);
}

.comment-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.comment-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.comment-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
}

.comment-tags-row {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.comment-keyword-tag {
    font-size: 0.65rem;
    background: rgba(110,68,255,0.06);
    color: var(--primary);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-weight: 600;
}

/* NPS and Likert custom styles */
input[name="q-nps"]:checked + label {
    background: var(--secondary) !important;
    color: #000 !important;
    box-shadow: 0 0 10px var(--secondary-glow) !important;
    border-color: var(--secondary) !important;
    font-weight: 700 !important;
}

#import-dropzone:hover {
    background: rgba(110, 68, 255, 0.06) !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

/* ==========================================================================
   Fase 5 Styles: Real Backend (Login, Modals and SaaS Configuration Layouts)
   ========================================================================== */

/* Login Overlay Styles */
.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.login-logo .logo-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 15px rgba(110,68,255,0.3);
}

.login-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.login-logo p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.form-group-login {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group-login label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group-login input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group-login input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary-login {
    background: var(--secondary);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    box-shadow: 0 4px 15px var(--secondary-glow);
}

.btn-primary-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--secondary-glow);
    filter: brightness(1.1);
}

@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.btn-login-shake {
    animation: loginShake 0.4s ease-in-out;
    background: linear-gradient(135deg, #ff4d4d, #ff1a1a) !important;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.5) !important;
}

.login-error-msg {
    color: var(--danger);
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.2);
    padding: 0.6rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-hints {
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.login-hints ul {
    margin-top: 0.35rem;
    padding-left: 1rem;
}

.login-hints li {
    margin-bottom: 0.2rem;
}

.login-hints code {
    color: var(--secondary);
    background: rgba(0,240,255,0.06);
    padding: 0.05rem 0.2rem;
    border-radius: 3px;
    font-family: monospace;
}

/* Modals Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-card {
    width: 100%;
    max-width: 580px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: var(--primary);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-close:hover {
    color: white;
}

.modal-body {
    padding: 1.5rem;
}

/* ==========================================================================
   FOCUS / ZEN MODE SURVEY STYLES
   ========================================================================== */

/* Fullscreen Overlay with progressive glassmorphism */
.zen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 18, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

/* Zen Glass Modal Card */
.zen-modal-card {
    position: relative;
    width: 100%;
    max-width: 780px;
    background: rgba(18, 19, 32, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: zenAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zenAppear {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Ambient glow accents */
.ambient-glow-1 {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(110, 68, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -5%;
    left: -5%;
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

.ambient-glow-2 {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(0,0,0,0) 70%);
    bottom: -10%;
    right: -5%;
    z-index: -1;
    pointer-events: none;
    filter: blur(50px);
}

/* Dynamic Minimalist Progress Line */
.zen-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.zen-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transition: width 0.4s ease;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Cloud Autoguardado Badge styles */
.cloud-sync-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.cloud-sync-badge.writing {
    color: var(--warning);
    border-color: rgba(255, 179, 0, 0.2);
}

.cloud-sync-badge.saved {
    color: var(--success);
    border-color: rgba(0, 230, 118, 0.2);
}

.cloud-sync-badge.offline {
    color: var(--danger);
    border-color: rgba(255, 23, 68, 0.2);
}

/* SaaS Configuration layout */
.saas-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 1.5rem;
}

/* ==========================================================================
   REPORTING AND PRINT PRINT-READY MEDIA STYLES
   ========================================================================== */
@media print {
    /* Hide non-printable panels */
    .sidebar,
    .top-bar,
    .table-controls,
    .table-footer,
    #theme-toggle-btn,
    .modal-overlay,
    .collaborator-details-panel,
    #btn-export-csv,
    #btn-print-report,
    #btn-add-employee-trigger,
    #det-crud-actions,
    .sidebar-footer,
    #det-crud-actions,
    .quick-stats-bar {
        display: none !important;
    }

    /* Reset container layout for paper */
    .app-container {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Force light colors on printed page for toner saving and high readability */
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .glass-card {
        background: #ffffff !important;
        border: 1px solid #dddddd !important;
        box-shadow: none !important;
        color: #000000 !important;
        page-break-inside: avoid !important;
        margin-bottom: 20px !important;
    }

    .card-title, h1, h2, h3, h4 {
        color: #000000 !important;
    }

    .kpi-value {
        color: #111111 !important;
    }

    .data-table th {
        background: #f1f3f8 !important;
        color: #000000 !important;
        border-bottom: 2px solid #cccccc !important;
    }

    .data-table td {
        color: #333333 !important;
        border-bottom: 1px solid #eeeeee !important;
    }

    .grid-line {
        stroke: #dddddd !important;
    }

    .axis-line {
        stroke: #999999 !important;
    }

    .axis-text {
        fill: #333333 !important;
    }

    .axis-label {
        fill: #666666 !important;
    }

    /* Avoid breaking charts in page splits */
    .scatter-plot-container,
    .analytics-split,
    .comp-metrics-row {
        page-break-inside: avoid !important;
    }
}

/* ==========================================================================
   COACHING FEEDBACK & AVATAR PERSONALIZATION MICRO-ANIMATIONS
   ========================================================================== */
#planes-lider {
    gap: 1rem;
}

#planes-lider .analytics-split {
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 2.35fr) !important;
    gap: 1rem !important;
    align-items: start;
}

#planes-lider .glass-card {
    padding: 1rem;
    border-radius: var(--radius-md);
}

#planes-lider .card-header {
    margin-bottom: 0.85rem;
}

.leader-pulse-panel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding: 0.85rem;
    border: 1px solid rgba(0, 240, 255, 0.14);
    border-radius: var(--radius-md);
    background: rgba(0, 240, 255, 0.035);
}

.leader-pulse-header,
.leader-inbox-item-top,
.leader-inbox-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.leader-pulse-header span {
    color: var(--secondary);
    font-size: 0.72rem;
    font-weight: 700;
}

.leader-pulse-header strong,
.leader-plan-count {
    color: var(--text-primary);
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.leader-score-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.leader-score-row div,
.leader-inbox-summary div {
    min-width: 0;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.16);
}

.leader-score-label,
.leader-inbox-summary span {
    display: block;
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
}

.leader-score-row strong,
.leader-inbox-summary strong {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.leader-eval-bars {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.leader-eval-bar {
    display: grid;
    grid-template-columns: 52px 1fr 34px;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.62rem;
    font-weight: 600;
}

.leader-eval-bar div {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.leader-eval-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.leader-review-summary {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.68rem;
    line-height: 1.35;
}

.leader-plan-form .form-group {
    gap: 0.3rem;
}

.leader-plan-form textarea {
    min-height: 78px;
}

.leader-right-rail {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem !important;
}

.leader-inbox-card {
    grid-column: 1 / -1;
}

.leader-inbox-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

#planes-lider .tab-scroller {
    display: none !important;
}

#planes-lider .plan-tab-pane {
    display: block !important;
    min-width: 0;
}

#planes-lider .plan-tab-pane .glass-card {
    min-height: 0 !important;
    height: 100%;
}

#planes-lider .plans-list-grid {
    max-height: 310px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

#planes-lider .feedback-notifications-list {
    max-height: 155px !important;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.leader-inbox-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.7rem;
    border: 1px solid rgba(110, 68, 255, 0.15);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
}

.leader-inbox-type {
    font-size: 0.65rem;
    font-weight: 800;
}

.leader-inbox-date {
    color: var(--text-muted);
    font-size: 0.58rem;
}

.leader-inbox-person {
    justify-content: flex-start;
    flex-wrap: wrap;
    color: var(--text-primary);
    font-size: 0.68rem;
}

.leader-inbox-person span,
.leader-inbox-area {
    color: var(--text-muted);
    font-size: 0.58rem;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.leader-inbox-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.68rem;
    line-height: 1.35;
    white-space: pre-wrap;
}

.leader-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 58px;
    color: var(--text-secondary);
    font-size: 0.68rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.12);
}

.leader-empty-state i {
    color: var(--success);
}

.notification-fade-out {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1280px) {
    .leader-right-rail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .leader-score-row,
    .leader-inbox-summary {
        grid-template-columns: 1fr;
    }
}

@keyframes gridItemAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.avatar-option-card {
    animation: gridItemAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ==========================================================================
   MINIMALIST COMPACT SIDEBAR (SIDEBAR COLLAPSED)
   ========================================================================== */
body.sidebar-collapsed {
    --sidebar-width: 80px;
}

body.sidebar-collapsed .sidebar {
    padding: 2rem 0.5rem;
    align-items: center;
}

body.sidebar-collapsed .logo-text,
body.sidebar-collapsed .nav-item span,
body.sidebar-collapsed .sidebar-footer .user-info {
    display: none !important;
}

body.sidebar-collapsed .logo-container {
    justify-content: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

body.sidebar-collapsed .nav-menu {
    align-items: center;
    width: 100%;
    margin-top: 1.5rem;
}

body.sidebar-collapsed .nav-item {
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: var(--radius-md);
    margin: 0.25rem auto;
}

body.sidebar-collapsed .nav-item i {
    font-size: 1.2rem;
    margin: 0;
}

body.sidebar-collapsed .sidebar-footer {
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

body.sidebar-collapsed .sidebar-footer .avatar {
    width: 42px;
    height: 42px;
}

/* Screen Reader Only Utility for W3C WCAG 2.1 AA */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}



