/* Import Urbanist Font */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700&display=swap');

/* Admin Panel Styles */
body {
    font-size: .875rem;
    background-color: #f8f9fa;
    font-family: 'Urbanist', sans-serif;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    width: 100%;
    max-width: 250px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #fff;
    padding: 0.5rem 1rem;
    margin: 0.2rem 0;
    border-radius: 0.25rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

main {
    padding-top: 1.5rem;
}

/* Table Styles */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
}

/* Status Badges */
.badge-nouveau {
    background-color: #17a2b8;
    color: white;
}

.badge-en_cours {
    background-color: #ffc107;
    color: black;
}

.badge-traite {
    background-color: #28a745;
    color: white;
}

/* Action Buttons */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Modal Styles */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }

    main {
        margin-left: 0 !important;
    }
}

/* Filter Section */
.filter-section {
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

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

.page-link {
    color: #007bff;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Export Button */
#exportBtn {
    margin-left: 0.5rem;
}

/* Search Input */
#searchInput {
    border-radius: 0.25rem;
}

/* Status Filter */
#statusFilter {
    border-radius: 0.25rem;
}

/* Date Filter */
#dateFilter {
    border-radius: 0.25rem;
}

/* Request Details Modal Styles */
.request-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 18px 0;
}

.detail-section {
    background: #f8fafc;
    border-radius: 18px;
    padding: 18px 24px;
    box-shadow: 0 2px 8px rgba(26, 35, 64, 0.04);
    margin-bottom: 0;
    border: none;
    width: 100%;
}

.detail-section h5 {
    background: rgba(255, 195, 0, 0.10);
    color: #FFC300;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 1px;
    border-radius: 18px;
    padding: 6px 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    display: inline-block;
    border: none;
}

.detail-section p {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #1a2340;
    font-size: 1rem;
}

.detail-section strong {
    color: #1a2340;
    font-weight: 600;
    margin-right: 5px;
}

/* Table Styles Enhancement */
.table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background-color: #FFC300 !important;
    color: #1a2340 !important;
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 2px solid #e0e3ea;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

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

/* Badge Styles */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 6px;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Button Group Styles */
.btn-group {
    gap: 5px;
}

.btn-group .btn {
    padding: 6px 10px;
    border-radius: 6px;
}

.btn-group .btn i {
    font-size: 0.9rem;
}

/* Modal Header Enhancement */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-header .modal-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Modal Footer Enhancement */
.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .request-details {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Status Update Styles */
.status-update {
    margin-top: 10px;
}

.status-update .form-select {
    max-width: 220px;
    padding: 8px 12px;
    border: 1.5px solid #FFC300;
    border-radius: 8px;
    font-size: 1rem;
    color: #1a2340;
    background-color: #fff;
    transition: all 0.3s ease;
}

.status-update .form-select:focus {
    border-color: #FFC300;
    box-shadow: 0 0 0 2px rgba(255, 195, 0, 0.12);
}

/* Status Badge Colors */
.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

/* Status Select Options */
.form-select option[value="nouveau"] {
    color: #ffc107;
}

.form-select option[value="en_cours"] {
    color: #17a2b8;
}

.form-select option[value="traite"] {
    color: #28a745;
}

.form-select option[value="annule"] {
    color: #dc3545;
}

/* Make the requestDetailsModal larger */
#requestDetailsModal .modal-dialog.modal-lg {
    max-width: 1000px;
}

/* Yellow primary button for update status */
#requestDetailsModal .btn-primary,
#requestDetailsModal .btn-primary:focus {
    background-color: #FFC300;
    border-color: #FFC300;
    color: #1a2340;
    font-weight: 700;
    transition: background 0.2s, border 0.2s;
}

#requestDetailsModal .btn-primary:hover {
    background-color: #e6b200;
    border-color: #e6b200;
    color: #1a2340;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(26, 35, 64, 0.08);
    margin-bottom: 8px;
}

.stat-card span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2px;
}

.stat-total {
    color: #1a2340;
}

.stat-nouveau {
    color: #FFC300;
}

.stat-en-cours {
    color: #17a2b8;
}

.stat-traite {
    color: #28a745;
}

.stat-annule {
    color: #dc3545;
}

#notificationContainer {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification {
    min-width: 280px;
    max-width: 350px;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(26, 35, 64, 0.10);
    font-family: 'Urbanist', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInSlide 0.5s;
    color: #1a2340;
}

.notification-success {
    background: #f6ffe6;
    border-left: 6px solid #28a745;
}

.notification-error {
    background: #fff0f0;
    border-left: 6px solid #dc3545;
}

.notification-info {
    background: #f8fafc;
    border-left: 6px solid #FFC300;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar .logout-btn {
    margin: 24px 16px 24px 16px;
    width: calc(100% - 32px);
    min-width: 0;
    font-size: 0.95rem;
    padding: 8px 0;
    border-radius: 8px;
    font-weight: 600;
    background: #fffbe6;
    color: #FFC300;
    border: 1.5px solid #FFC300;
    transition: background 0.2s, color 0.2s;
    position: absolute;
    display: block;
    text-align: center;
}

.sidebar .logout-btn:hover {
    background: #FFC300;
    color: #1a2340;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: static;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-bottom: 0;
    }

    .sidebar .logout-btn {
        margin: 1rem 0 0 0;
        width: 100%;
        border-radius: 0 0 8px 8px;
    }
}

.confirm-modal-content {
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(26, 35, 64, 0.18);
    background: #fff;
    padding: 32px 24px 24px 24px;
    border: none;
}

.confirm-icon .icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fffbe6;
    color: #FFC300;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(255, 195, 0, 0.10);
}

.confirm-modal-content .modal-title {
    color: #1a2340;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.confirm-modal-content .btn-danger {
    font-weight: 700;
    border-radius: 8px;
    font-size: 1.05rem;
    padding: 10px 28px;
}

.confirm-modal-content .btn-outline-secondary {
    border-radius: 8px;
    font-size: 1.05rem;
    padding: 10px 28px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.detail-label {
    font-weight: 600;
    color: #1a2340;
    min-width: 140px;
    display: inline-block;
}

.detail-section h5 i {
    color: #FFC300;
    margin-right: 8px;
}

.detail-section h5 {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #000000;
}

#globalLoader .loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#globalLoader .spinner-border {
    color: #FFC300 !important;
}