/* Payment Tracker - Custom Styles */

/* General */
body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Status badges (gommettes) */
.badge.rounded-pill {
    font-size: 0.8rem;
    padding: 0.35em 0.5em;
}

/* Progress bar */
.progress {
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.375rem;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Stats cards */
.card.bg-primary,
.card.bg-success,
.card.bg-danger,
.card.bg-info,
.card.bg-warning,
.card.bg-secondary {
    border-radius: 0.5rem;
}

.card.bg-primary .card-body h3,
.card.bg-success .card-body h3,
.card.bg-danger .card-body h3,
.card.bg-info .card-body h3,
.card.bg-warning .card-body h3,
.card.bg-secondary .card-body h3 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Login page */
.card.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Pagination */
.pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

/* Sticky header for tables */
.table thead.sticky-top th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Status indicators */
.status-paye {
    color: #198754;
}

.status-retard {
    color: #dc3545;
}

.status-avenir {
    color: #ffc107;
}

/* Table row highlighting */
tr.famille-row:hover {
    cursor: pointer;
}

tr.famille-row.selected {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body h3 {
        font-size: 1.25rem;
    }

    .table {
        font-size: 0.875rem;
    }

    .badge {
        font-size: 0.7rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .breadcrumb {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Tooltip improvements */
.tooltip {
    font-size: 0.8rem;
}
