/* ============================================================
   LevaTalent.Client/wwwroot/css/app.css
   ============================================================ */

html, body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: #F5F7FA;
    color: #0D1B2A;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* AppBar shadow sutil */
.mud-appbar {
    box-shadow: 0 1px 3px rgba(13, 27, 42, 0.06) !important;
    border-bottom: 1px solid #E2E8F0;
}

/* Drawer: branding y nav links */
.mud-drawer {
    border-right: none !important;
}
.mud-drawer .mud-navmenu .mud-nav-link {
    border-radius: 8px;
    margin: 2px 12px;
    padding: 10px 14px;
    color: #8FA1B5 !important;
    font-weight: 500;
    transition: all 0.2s ease;
}
.mud-drawer .mud-navmenu .mud-nav-link:hover {
    background: rgba(255, 111, 89, 0.08) !important;
    color: #FFFFFF !important;
}
.mud-drawer .mud-navmenu .mud-nav-link.active {
    background: #FF6F59 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(255, 111, 89, 0.25);
}
.mud-drawer .mud-navmenu .mud-nav-link.active .mud-nav-link-icon {
    color: #FFFFFF !important;
}

/* Cards */
.mud-paper {
    box-shadow: 0 1px 3px rgba(13, 27, 42, 0.04), 0 1px 2px rgba(13, 27, 42, 0.06);
    border: 1px solid #E2E8F0;
}
.mud-paper:hover { transition: box-shadow 0.2s ease; }

/* Botones */
.mud-button-filled-primary {
    box-shadow: 0 1px 2px rgba(13, 27, 42, 0.1);
}
.mud-button-filled-secondary {
    background: #FF6F59 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(255, 111, 89, 0.25);
}
.mud-button-filled-secondary:hover {
    background: #E85A45 !important;
    box-shadow: 0 4px 12px rgba(255, 111, 89, 0.35);
}

/* Tablas */
.mud-table {
    border-radius: 10px;
    overflow: hidden;
}
.mud-table-head {
    background: #F8FAFC;
}
.mud-table-head .mud-table-cell {
    color: #64748B !important;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Inputs */
.mud-input-outlined .mud-input-outlined-border {
    border-color: #E2E8F0;
}
.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: #8FA1B5;
}

/* Chips de estado */
.estado-chip {
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Auth pages background */
.auth-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #0D1B2A 0%, #1B2A3F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}
.auth-brand-logo {
    width: 56px;
    height: 56px;
    background: #FF6F59;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(255, 111, 89, 0.4);
}

/* Stat card */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
    height: 100%;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 27, 42, 0.08);
}
.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.stat-card-label {
    color: #64748B;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.stat-card-value {
    color: #0D1B2A;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
}

/* Page header */
.page-header {
    margin-bottom: 28px;
}
.page-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0D1B2A;
    margin: 0;
}
.page-header-subtitle {
    color: #64748B;
    font-size: 0.875rem;
    margin-top: 4px;
}

/* Loading screen Blazor */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}
.loading-progress circle {
    fill: none;
    stroke: #E2E8F0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: #FF6F59;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 600;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: #0D1B2A;
}
.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Cargando...");
}

#blazor-error-ui {
    background: #EF4444;
    color: white;
    bottom: 0;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* Drawer header alineado con appbar */
.mud-drawer-header {
    min-height: 64px !important;
}

/* Quitar borde inferior del appbar (lo da el drawer ahora) */
.mud-appbar.mud-elevation-0 {
    border-bottom: 1px solid #E2E8F0;
}