:root {
    --color-primary: #0e223a;
    --color-secondary: #1a3a5c;
    --color-accent: #2d5280;
    --color-light: #f4f6f8;
    --color-dark: #081628;
    --color-gold: #c9a961;
}

body, html {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-light);
}

.bg-dashboard {
    background-color: var(--color-light);
}

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-dark) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    flex: 1;
    padding: 1.5rem 1rem;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    transition: all 0.2s ease;
}

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

.sidebar .nav-link i {
    font-size: 1.1rem;
}

.sidebar .collapse .nav-link {
    padding-left: 1.75rem;
    font-size: 0.95rem;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(14, 34, 58, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.main-content {
    flex: 1;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background-color: rgba(14, 34, 58, 0.15);
    color: var(--color-primary);
    position: relative;
    border: none;
}

.btn-icon:hover {
    background-color: rgba(14, 34, 58, 0.25);
    color: var(--color-primary);
}

.btn-profile {
    background-color: #fff;
    border: 1px solid rgba(14, 34, 58, 0.1);
    border-radius: 16px;
    padding: 0.4rem 0.75rem;
    gap: 0.75rem;
}

.btn-profile:hover {
    background-color: rgba(14, 34, 58, 0.1);
    border-color: rgba(14, 34, 58, 0.25);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
}

.card
{
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(14, 34, 58, 0.08);
}

.card-header
{
    border-bottom: none;
    background: transparent;
}

.table thead th {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(14, 34, 58, 0.6);
    border-bottom: 1px solid rgba(14, 34, 58, 0.1);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-pago {
    background-color: rgba(56, 142, 60, 0.15);
    color: #2e7d32;
}

.status-pendente {
    background-color: rgba(255, 193, 7, 0.15);
    color: #c79a06;
}

.status-atrasado {
    background-color: rgba(211, 47, 47, 0.15);
    color: #c62828;
}

@media (max-width: 992px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
    }

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

    .main {
        margin-left: 0;
    }
}
