:root {
    --admin-blue: #3b82f6;
    --admin-purple: #a855f7;
    --admin-green: #10b981;
    --admin-yellow: #f59e0b;
    --bg-light-blue: #eff6ff;
    --bg-light-purple: #f3e8ff;
    --bg-light-green: #ecfdf5;
    --bg-light-yellow: #fffbeb;
    --bs-nav-tabs-border-width: 0 0 3px 0;
    --bs-nav-tabs-border-radius: 0;

}

.admin-wrapper {
    background-color: #fff;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--admin-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.admin-nav {
    padding: 0 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.nav-tabs-custom {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link-custom {
    padding: 1rem 0;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    border-radius: 0 !important;
}

.nav-link-custom.active {
    color: var(--admin-blue) !important;
    border-bottom-color: var(--admin-blue) !important;
}

.stat-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--admin-green);
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend svg {
    width: 18px;
    height: 18px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stat-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.stat-list-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}


.admin-nav .nav-tabs button.nav-link {
    color: #64748b !important;
    border: none;
    font-weight: 500;
    border-bottom: 0px solid transparent !important;
    background: none;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-nav .nav-tabs button.nav-link svg {
    width: 20px;
    height: 20px;
}

.admin-nav .nav-tabs button.nav-link.active {
    color: #3b82f6 !important;
    border-color: transparent !important;
    border-bottom: 3px solid #3b82f6 !important;
}

.admin-nav .nav-tabs button.nav-link:hover:not(.active) {
    border-bottom: 3px solid #e2e8f0;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

.btn-gradient-primary {
    background: linear-gradient(90deg, #3b82f6 0%, #a855f7 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: opacity 0.2s;
}
.btn-gradient-primary:hover {
    color: white;
    opacity: 0.9;
}

.custom-admin-table thead th {
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.custom-admin-table tbody td {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #334155;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background-color: #ecfdf5;
    color: #10b981;
}

.status-finished {
    background-color: #f1f5f9;
    color: #64748b;
}

.btn-icon {
    /* padding: 6px; */
    border-radius: 8px;
    color: #64748b;
    background: transparent;
    border: none;
    transition: all 0.2s;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.btn-icon svg {
    width: 26px;
    height: 26px;
}

.btn-icon[title='Voir'] {
    color: #3b82f6;
}

.btn-icon[title='Voir']:hover {
    background: #7eb4fc20;
    color: #3b82f6;
}


.btn-icon:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.btn-icon.text-danger:hover {
    background: #fef2f2;
    color: #ef4444;
}

.progress {
    background-color: #f1f5f9;
    border-radius: 10px;
}


.search-group .input-group-text {
    border-right: none;
    padding-right: 0;
}
.search-group .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.bg-primary-soft { background-color: #eef2ff; color: #4f46e5 !important; }
.bg-purple-soft { background-color: #f5f3ff; color: #7c3aed !important; }
.bg-blue-soft { background-color: #eff6ff; color: #2563eb !important; }

.text-purple { color: #7c3aed; }

.custom-admin-table td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.btn-icon {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-icon:hover {
    transform: translateY(-1px);
    background-color: #f8fafc;
}

.progress-gradient, .btn-gradient-primary {
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%) !important;
}

.btn-gradient-primary {
    border: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-gradient-primary:hover {
    color: white;
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-gradient-primary:active {
    transform: translateY(0px);
}

.progress {
    background-color: #f1f5f9; 
}


.border-primary-subtle {
    border-color: #bfdbfe !important;
}

h3.h6 {
    line-height: 1.4;
}

.status-pending {
    background-color: #fff7ed;
    color: #ea580c;
}

.btn-success {
    background-color: #10b981;
    border-color: #10b981;
    font-size: 0.8rem;
    padding: 6px 16px;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-success {
    color: #10b981 !important;
}

.bg-warning-soft { background-color: #fffbeb !important; }
.bg-success-soft { background-color: #f0fdf4 !important; }
.bg-blue-soft { background-color: #eff6ff !important; }

.shadow-sm-hover:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-color: #3b82f6 !important;
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.notif-list div:last-child {
    border-bottom: none !important;
}