/* Estilos personalizados para o Sistema de Cobrança */

/* Estilos gerais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Cabeçalhos */
.page-header {
    border-bottom: 2px solid #007bff;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.page-header h2 {
    color: #007bff;
    font-weight: 600;
}

/* Cards */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.card-header {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
    padding: 20px;
}

/* Botões */
.btn {
    border-radius: 5px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-icon {
    padding: 5px 8px;
}

/* Tabelas */
.table {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background-color: #f0f0f0;
    color: #555;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status de pagamento */
.badge-pendente {
    background-color: #ffc107;
    color: #212529;
}

.badge-pago {
    background-color: #28a745;
    color: #fff;
}

.badge-atrasado {
    background-color: #dc3545;
    color: #fff;
}

.badge-cancelado {
    background-color: #6c757d;
    color: #fff;
}

/* Painéis de estatísticas */
.stat-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-card-blue {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.stat-card-green {
    background: linear-gradient(135deg, #28a745, #1a6e2e);
}

.stat-card-red {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
}

.stat-card-orange {
    background: linear-gradient(135deg, #fd7e14, #c25e07);
}

.stat-card .stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-card .stat-number {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 16px;
    opacity: 0.8;
}

/* Formulários */
.form-control, .form-select {
    border-radius: 5px;
    padding: 10px;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
}

/* Alertas */
.alert {
    border-radius: 5px;
    padding: 15px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Responsividade */
@media (max-width: 768px) {
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .stat-icon {
        font-size: 36px;
    }
    
    .stat-card .stat-number {
        font-size: 24px;
    }
    
    .stat-card .stat-label {
        font-size: 14px;
    }
    
    .btn {
        padding: 6px 12px;
    }
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Página de login */
.login-container {
    max-width: 400px;
    margin: 0 auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: 40px;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
}
