
:root {
    --sidebar-width: 220px;
    --sidebar-bg: #212529;
    --topbar-height: 56px;
}


body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.93rem;
}


.sidebar {
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding-top: var(--topbar-height);
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    width: var(--sidebar-width);
    transition: transform 0.25s ease;
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 0.55rem 1.2rem;
    border-radius: 0.4rem;
    margin: 2px 8px;
    transition: background 0.15s, color 0.15s;
    font-size: 0.88rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 600;
}

.sidebar .nav-link.text-success { color: #3ddc84 !important; }
.sidebar .nav-link.text-danger  { color: #ff6b6b !important; }

.nav-label {
    display: block;
    font-size: 0.70rem;
    letter-spacing: 0.07em;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}


.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    min-height: calc(100vh - var(--topbar-height));
}


.card-metric {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card-metric .card-icon {
    font-size: 2.5rem;
    opacity: 0.85;
}

.card-metric .card-number {
    font-size: 2rem;
    font-weight: 700;
}


.table-responsive {
    border-radius: 0.5rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.table thead th {
    background-color: #343a40;
    color: #fff;
    font-weight: 500;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
}

.table tbody tr:hover {
    background-color: #f8f9ff;
}


.form-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 2rem;
    max-width: 600px;
}

.form-label {
    font-weight: 500;
    font-size: 0.87rem;
}


.btn-accion {
    padding: 0.2rem 0.55rem;
    font-size: 0.8rem;
}


.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d6efd 0%, #0a4bb5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}

.login-card .login-logo {
    font-size: 3rem;
    color: #0d6efd;
}


.badge-admin   { background-color: #dc3545; }
.badge-usuario { background-color: #6c757d; }


@media (max-width: 767px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}
