/* assets/css/style.css */
:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --success-color: #2e7d32;
    --danger-color: #c62828;
    --warning-color: #e65100;
    --info-color: #01579b;
}

body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stats-card {
    border-radius: 15px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.bg-gradient-primary {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
}
.bg-gradient-success {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
}
.bg-gradient-info {
    background: linear-gradient(135deg, #01579b 0%, #0288d1 100%);
}
.bg-gradient-warning {
    background: linear-gradient(135deg, #e65100 0%, #fb8c00 100%);
}

.status-draft {
    background: #e0e0e0;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-sent {
    background: #1565c0;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-approved {
    background: #2e7d32;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-rejected {
    background: #c62828;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-expired {
    background: #e65100;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-paid {
    background: #2e7d32;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending {
    background: #e65100;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-partially_paid {
    background: #f57c00;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-overdue {
    background: #c62828;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-cancelled {
    background: #616161;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.table {
    border-radius: 10px;
    overflow: hidden;
}
.table thead {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
}
.table thead th {
    border: none;
    padding: 12px 15px;
}
.table tbody tr:hover {
    background-color: #e8eaf6;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 20px;
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-primary {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #151f6e 0%, #0b3d8a 100%);
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: #1a237e;
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
}
.form-label {
    font-weight: 600;
    color: #333;
}

.card {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: none;
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.card-header {
    background: transparent;
    border-bottom: 2px solid #f0f0f0;
    padding: 15px 20px;
}

.modal-content {
    border-radius: 15px;
    border: none;
}
.modal-header {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}
.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.alert {
    border-radius: 10px;
    border: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.5s ease;
}

@media (max-width: 768px) {
    .stats-card .h2 {
        font-size: 1.5rem;
    }
    .btn {
        padding: 6px 15px;
        font-size: 14px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #151f6e;
}