/* Rappel Conso Alert - Custom Styles */

:root {
    --primary-color: #0d6efd;
    --danger-color: #dc3545;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

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

/* Stats cards */
.card.text-white .card-body {
    position: relative;
    overflow: hidden;
}

.card.text-white .bi {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Tables */
.table th {
    font-weight: 600;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
}

/* Forms */
.form-control:focus,
.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Login page */
.card.shadow-sm {
    border-radius: 1rem;
}

/* Footer */
.footer {
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card.text-white {
        margin-bottom: 1rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}

/* Badge styling */
.badge {
    font-weight: 500;
}

/* Form switch */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
