/* =========================
   style.css
   Secretario Personal - Dashboard Premium
   ========================= */

:root {
    --azul-oscuro: #0b1f3a;
    --azul-secundario: #16345f;
    --azul-claro: #eaf1fb;
    --dorado: #c99700;
    --dorado-suave: #f4e3a1;
    --blanco: #ffffff;
    --gris-fondo: #f5f7fb;
    --gris-borde: #d9e1ec;
    --gris-texto: #5f6f86;
    --negro-suave: #1f2937;
    --verde: #1f9d55;
    --verde-fondo: #eaf8f0;
    --amarillo: #b78103;
    --amarillo-fondo: #fff7df;
    --sombra: 0 10px 30px rgba(11, 31, 58, 0.10);
    --sombra-suave: 0 6px 18px rgba(11, 31, 58, 0.08);
    --radio: 18px;
    --radio-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fbff 0%, #eef3fa 100%);
    color: var(--negro-suave);
    display: flex;
}

/* =========================
   SIDEBAR
   ========================= */

.sidebar {
    width: 280px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--azul-oscuro) 0%, var(--azul-secundario) 100%);
    color: var(--blanco);
    padding: 28px 22px;
    box-shadow: var(--sombra);
    position: sticky;
    top: 0;
    left: 0;
}

.logo-container {
    padding: 8px 8px 30px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    margin-bottom: 26px;
}

.logo-container h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--blanco);
}

.logo-container h2 span {
    color: var(--dorado-suave);
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 10px;
}

.sidebar nav ul li a {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 16px;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.sidebar nav ul li a:hover {
    background: rgba(255, 255, 255, 0.10);
    color: var(--blanco);
    transform: translateX(4px);
}

.sidebar nav ul li.active a {
    background: linear-gradient(135deg, rgba(201, 151, 0, 0.95), rgba(244, 227, 161, 0.95));
    color: var(--azul-oscuro);
    box-shadow: 0 8px 18px rgba(201, 151, 0, 0.25);
}

/* =========================
   CONTENIDO PRINCIPAL
   ========================= */

.content {
    flex: 1;
    padding: 34px;
    min-width: 0;
}

header {
    background: var(--blanco);
    border: 1px solid rgba(22, 52, 95, 0.08);
    border-radius: 22px;
    padding: 24px 28px;
    box-shadow: var(--sombra-suave);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--azul-oscuro);
    letter-spacing: -0.03em;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #edf3fb 100%);
    border: 1px solid var(--gris-borde);
    padding: 10px 14px;
    border-radius: 16px;
}

.user-profile span {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--azul-secundario);
    white-space: nowrap;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dorado) 0%, var(--dorado-suave) 100%);
    color: var(--azul-oscuro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 6px 15px rgba(201, 151, 0, 0.25);
}

/* =========================
   TABLA
   ========================= */

.table-container {
    background: var(--blanco);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(22, 52, 95, 0.08);
    overflow-x: auto;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.premium-table thead th {
    background: linear-gradient(180deg, #f6f9fe 0%, #edf3fb 100%);
    color: var(--azul-oscuro);
    font-size: 0.95rem;
    font-weight: 800;
    text-align: left;
    padding: 16px 18px;
    border-bottom: 2px solid #dde7f3;
    white-space: nowrap;
}

.premium-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid #e8eef6;
    color: var(--negro-suave);
    font-size: 0.95rem;
    vertical-align: middle;
}

.premium-table tbody tr {
    transition: all 0.20s ease;
}

.premium-table tbody tr:hover {
    background: #f8fbff;
}

.premium-table tbody tr:last-child td {
    border-bottom: none;
}

.premium-table strong {
    color: var(--azul-secundario);
    font-weight: 700;
}

/* =========================
   BADGES
   ========================= */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.badge.success {
    background: var(--verde-fondo);
    color: var(--verde);
    border-color: rgba(31, 157, 85, 0.18);
}

.badge.pending {
    background: var(--amarillo-fondo);
    color: var(--amarillo);
    border-color: rgba(183, 129, 3, 0.18);
}

/* =========================
   MENSAJE VACÍO
   ========================= */

.premium-table tbody td[colspan="5"] {
    padding: 30px 18px;
    color: var(--gris-texto);
    font-size: 1rem;
    font-weight: 600;
}

/* =========================
   SCROLLBAR
   ========================= */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #edf2f8;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    background: #b9c7d9;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #93a8c3;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
    .content {
        padding: 24px;
    }

    header h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 900px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
    }

    .content {
        padding: 18px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-profile {
        width: 100%;
        justify-content: space-between;
    }

    .premium-table {
        min-width: 760px;
    }
}

@media (max-width: 600px) {
    .logo-container h2 {
        font-size: 1.7rem;
    }

    header {
        padding: 18px;
        border-radius: 18px;
    }

    header h1 {
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .table-container {
        padding: 14px;
        border-radius: 18px;
    }

    .premium-table thead th,
    .premium-table tbody td {
        padding: 14px 12px;
        font-size: 0.9rem;
    }

    .badge {
        min-width: 96px;
        font-size: 0.8rem;
        padding: 7px 12px;
    }
}