:root {
    --sicoweb-primary: #1f2937;
    --sicoweb-primary-dark: #111827;
    --sicoweb-secondary: #374151;
    --sicoweb-accent: #0d6efd;
    --sicoweb-bg: #f4f6f9;
    --sicoweb-white: #ffffff;
    --sicoweb-text: #212529;
    --sicoweb-muted: #6c757d;
    --sicoweb-border: #dee2e6;
    --sicoweb-success: #198754;
    --sicoweb-warning: #ffc107;
    --sicoweb-danger: #dc3545;
    --sicoweb-info: #0dcaf0;
}

body {
    background-color: var(--sicoweb-bg);
    color: var(--sicoweb-text);
    font-size: 0.95rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar-sicoweb {
    width: 260px;
    min-width: 260px;
    background: var(--sicoweb-primary);
    color: var(--sicoweb-white);
}

.sidebar-sicoweb .brand {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    background: var(--sicoweb-primary-dark);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 0.5px;
}

.sidebar-sicoweb .nav-link {
    color: #d1d5db;
    border-radius: 0.5rem;
    margin: 0.15rem 0.75rem;
    padding: 0.75rem 0.9rem;
    transition: all 0.2s ease-in-out;
}

.sidebar-sicoweb .nav-link:hover,
.sidebar-sicoweb .nav-link.active {
    background: var(--sicoweb-secondary);
    color: var(--sicoweb-white);
}

.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar-sicoweb {
    background: var(--sicoweb-white);
    border-bottom: 1px solid var(--sicoweb-border);
}

.main-content {
    padding: 1.5rem;
}

.card-sicoweb {
    border: 0;
    border-radius: 0.85rem;
    box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.06);
}

.user-badge {
    font-size: 0.85rem;
    color: var(--sicoweb-muted);
}

.table thead th {
    vertical-align: middle;
    white-space: nowrap;
}

.table td,
.table th {
    vertical-align: middle;
}

.page-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
}

.btn {
    border-radius: 0.5rem;
}

.alert-sicoweb {
    border-radius: 0.75rem;
    border: 0;
}

.stat-card h6 {
    color: var(--sicoweb-muted);
    margin-bottom: 0.35rem;
}

.stat-card h3 {
    margin: 0;
    font-weight: 700;
}

.footer-sicoweb {
    background: var(--sicoweb-white);
    border-top: 1px solid var(--sicoweb-border);
}

.logo-sicoweb {
    max-height: 42px;
    width: auto;
}

@media (max-width: 991.98px) {
    .layout-wrapper {
        flex-direction: column;
    }

    .sidebar-sicoweb {
        width: 100%;
        min-width: 100%;
    }

    .main-content {
        padding: 1rem;
    }
}

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(31, 41, 55, 0.86)),
        var(--sicoweb-primary-dark);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1.5rem;
}

.login-panel {
    width: min(100%, 430px);
    background: var(--sicoweb-white);
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.24);
    padding: 2rem;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.login-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.login-brand h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sicoweb-primary);
}

.login-brand p {
    margin: 0;
    color: var(--sicoweb-muted);
}

.card-sicoweb {
    border-radius: 0.5rem;
}

.card-sicoweb .card-header {
    background: var(--sicoweb-white);
    border-bottom: 1px solid var(--sicoweb-border);
    font-weight: 700;
}

.badge-soft {
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-soft-success {
    background: #dcfce7;
    color: #166534;
}

.badge-soft-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-soft-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-soft-secondary {
    background: #e5e7eb;
    color: #374151;
}

.table-actions {
    white-space: nowrap;
}

.empty-state {
    color: var(--sicoweb-muted);
    padding: 2rem;
    text-align: center;
}
