﻿:root {
    --lgu-primary: #1e3a8a;
    --lgu-primary-dark: #172554;
    --lgu-secondary: #0f766e;
    --lgu-success: #059669;
    --lgu-info: #0369a1;
    --lgu-warning: #d97706;
    --lgu-danger: #dc2626;
    --lgu-bg: #f8fafc;
    --lgu-sidebar-width: 260px;
    --lgu-topbar-height: 60px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--lgu-bg);
    color: #334155;
    height: 100%;
    overflow-x: hidden;
}

.lgu-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--lgu-topbar-height);
    background: linear-gradient(135deg, var(--lgu-primary) 0%, var(--lgu-primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1030;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.lgu-navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lgu-navbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.lgu-sidebar {
    position: fixed;
    top: var(--lgu-topbar-height);
    left: 0;
    bottom: 0;
    width: var(--lgu-sidebar-width);
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    z-index: 1020;
    overflow-y: auto;
    padding: 16px 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.02);
}

.lgu-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lgu-sidebar-item {
    margin: 2px 12px;
}

.lgu-sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    gap: 12px;
}

    .lgu-sidebar-link:hover,
    .lgu-sidebar-link.active {
        background-color: #eff6ff;
        color: var(--lgu-primary);
    }

.lgu-sidebar-section {
    padding: 0 24px;
    margin: 16px 0 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.lgu-main {
    margin-left: var(--lgu-sidebar-width);
    margin-top: var(--lgu-topbar-height);
    padding: 28px;
    min-height: calc(100vh - var(--lgu-topbar-height));
}

.lgu-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.lgu-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lgu-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.lgu-card-body {
    padding: 24px;
}

.lgu-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .lgu-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(30,58,138,0.08);
    }

.lgu-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

    .lgu-stat-icon.blue {
        background: #eff6ff;
        color: var(--lgu-primary);
    }

    .lgu-stat-icon.teal {
        background: #f0fdfa;
        color: var(--lgu-secondary);
    }

    .lgu-stat-icon.green {
        background: #ecfdf5;
        color: var(--lgu-success);
    }

    .lgu-stat-icon.orange {
        background: #fffbeb;
        color: var(--lgu-warning);
    }

.lgu-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 8px;
}

.lgu-stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.lgu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.lgu-btn-primary {
    background: var(--lgu-primary);
    color: white;
}

    .lgu-btn-primary:hover {
        background: var(--lgu-primary-dark);
        color: white;
    }

.lgu-btn-success {
    background: var(--lgu-success);
    color: white;
}

    .lgu-btn-success:hover {
        background: #047857;
        color: white;
    }

.lgu-btn-outline {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
}

    .lgu-btn-outline:hover {
        border-color: var(--lgu-primary);
        color: var(--lgu-primary);
        background: #eff6ff;
    }

.lgu-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.lgu-form-control,
.lgu-form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #ffffff;
}

    .lgu-form-control:focus,
    .lgu-form-select:focus {
        outline: none;
        border-color: var(--lgu-primary);
        box-shadow: 0 0 0 3px rgba(30,58,138,0.08);
    }

.lgu-table {
    width: 100%;
    background: #ffffff;
    border-collapse: collapse;
}

    .lgu-table thead th {
        padding: 14px 20px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #64748b;
        border-bottom: 1px solid #e2e8f0;
        white-space: nowrap;
        background: #f8fafc;
    }

    .lgu-table tbody td {
        padding: 16px 20px;
        font-size: 0.9rem;
        color: #475569;
        border-bottom: 1px solid #f8fafc;
        vertical-align: middle;
    }

    .lgu-table tbody tr:hover {
        background-color: #f8fafc;
    }

.lgu-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.lgu-badge-blue {
    background: #eff6ff;
    color: var(--lgu-primary);
}

.lgu-search input {
    padding-left: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
}

.lgu-alert {
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.lgu-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.lgu-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.lgu-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
}

.lgu-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--lgu-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 992px) {
    .lgu-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

        .lgu-sidebar.open {
            transform: translateX(0);
        }

    .lgu-main {
        margin-left: 0;
    }
}

/* === CATEGORY CARDS === */
.lgu-category-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

    .lgu-category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(30,58,138,0.12);
        border-color: #e2e8f0;
    }

.lgu-category-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--lgu-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto;
}