/* Caderno Digital - Estilos Personalizados */
:root {
    --primary-color: #1e3a8a;
    --primary-hover: #1e40af;
    --secondary-color: #475569;
    --success-color: #15803d;
    --danger-color: #b91c1c;
    --warning-color: #b45309;
    --bg-light: #f8fafc;
    --sidebar-bg: #0f172a;
    --sidebar-text: #e2e8f0;
}

body {
    background-color: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sidebar & Navigation */
.app-wrapper {
    display: flex;
    flex: 1;
}

.app-sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    min-height: calc(100vh - 56px);
    transition: all 0.3s;
}

.app-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 6px;
    margin: 2px 8px;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active {
    color: #ffffff;
    background-color: #1e293b;
}

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

.app-content {
    flex: 1;
    padding: 1.5rem;
    overflow-x: auto;
}

/* KPI Summary Cards */
.kpi-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

.kpi-val {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
}

/* Quick Action Bar */
.quick-action-btn {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

/* Tables */
.table th {
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background-color: #f1f5f9;
}

.table td {
    vertical-align: middle;
    font-size: 0.95rem;
}

/* Badges */
.badge-status {
    padding: 0.4em 0.7em;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-concluida, .badge-pago, .badge-ativo {
    background-color: #dcfce7;
    color: #166534;
}

.badge-pendente, .badge-aberto {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-cancelada, .badge-cancelado, .badge-inativo {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .app-wrapper {
        flex-direction: column;
    }
    .app-sidebar {
        width: 100%;
        min-height: auto;
    }
    .app-content {
        padding: 1rem;
    }
}

/* Print Stylesheet */
@media print {
    .app-sidebar,
    .navbar,
    .no-print,
    .btn,
    .alert {
        display: none !important;
    }
    .app-content {
        padding: 0 !important;
    }
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    .table th, .table td {
        border-color: #cbd5e1 !important;
    }
}
