:root {
    --primary-color: #ff7f11;
    --secondary-color: #1a1a1a;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.header-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d2d2d 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.header-title .logo-accent {
    color: var(--primary-color);
}

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stats-card.primary .icon {
    color: var(--primary-color);
}

.stats-card.success .icon {
    color: var(--success-color);
}

.stats-card.danger .icon {
    color: var(--danger-color);
}

.stats-card.info .icon {
    color: var(--info-color);
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-section h3 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-filter {
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-filter.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-filter:not(.active) {
    background: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

.btn-filter:not(.active):hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.table-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-custom {
    margin: 0;
}

.table-custom thead {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d2d2d 100%);
    color: white;
}

.table-custom thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-custom tbody tr {
    transition: background-color 0.2s ease;
}

.table-custom tbody tr:hover {
    background-color: #f8f9fa;
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.pago {
    background: #d4edda;
    color: #155724;
}

.status-badge.aberto {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.atraso {
    background: #f8d7da;
    color: #721c24;
}

.btn-action {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-action:hover {
    transform: scale(1.05);
}

.valor-destaque {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 3rem;
}

.loading-spinner.active {
    display: block;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

h1.logo {
    background-image: url('https://cdn.qualida.de/images/Logo_2clix_negativo.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    height: 80px;
    text-indent: -9999px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1.8rem;
    }

    .stats-card {
        margin-bottom: 1rem;
    }
}
