:root {
    --sidebar-width: 250px;
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
}

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

#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-height: 100vh;
    background: #fff;
    transition: margin 0.3s ease;
}

#sidebar.collapsed {
    margin-left: calc(var(--sidebar-width) * -1);
}

.sidebar-header h5 {
    color: var(--primary-color);
    font-weight: 700;
}

#sidebar .nav-link {
    color: #495057;
    border-radius: 8px;
    margin-bottom: 2px;
    padding: 10px 15px;
    transition: all 0.2s;
}

#sidebar .nav-link:hover,
#sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

#sidebar .nav-link i {
    margin-right: 8px;
}

.card-stat {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.card-stat:hover {
    transform: translateY(-2px);
}

.card-stat .card-body {
    padding: 1.5rem;
}

.card-stat .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.badge-prioridade-alta { background-color: #dc3545; }
.badge-prioridade-media { background-color: #ffc107; color: #000; }
.badge-prioridade-baixa { background-color: #198754; }

.badge-status-pendente { background-color: #6c757d; }
.badge-status-fazendo { background-color: #0dcaf0; color: #000; }
.badge-status-concluida { background-color: #198754; }

.badge-receita { background-color: #198754; }
.badge-despesa { background-color: #dc3545; }

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
}

.nota-card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s;
}

.nota-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nota-card.fixada {
    border-left: 4px solid var(--primary-color);
}

@media (max-width: 768px) {
    #sidebar {
        margin-left: calc(var(--sidebar-width) * -1);
        position: fixed;
        z-index: 1000;
    }
    #sidebar.show {
        margin-left: 0;
    }
}
