/* ============================================
   DASHBOARD SPECIFIC STYLES
   ============================================ */

/* Main Wrapper */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-dark);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Wrapper - Collapsed Sidebar */
.sidebar.collapsed ~ .main-wrapper {
    margin-left: var(--sidebar-collapsed-width);
}

@media (max-width: 992px) {
    .sidebar.collapsed ~ .main-wrapper {
        margin-left: 0;
    }
}

.main-content {
    padding: 100px 2rem 2rem 2rem;
    min-height: calc(100vh - 70px);
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title i {
    color: var(--primary-gold);
}

.page-subtitle {
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Button Styles */
.btn-icon-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #E1A004 0%, #F5B800 100%);
    border: none;
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 160, 4, 0.4);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* ============================================
   KPI CARDS
   ============================================ */

.kpi-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.kpi-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 8px 32px rgba(225, 160, 4, 0.15);
}

.kpi-card-body {
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
}

.kpi-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.kpi-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kpi-card:hover .kpi-icon::before {
    opacity: 1;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #E1A004 0%, #F5B800 100%);
    color: var(--primary-dark);
}

.kpi-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kpi-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}

.kpi-value small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.trend-up {
    color: #10B981;
}

.trend-down {
    color: #EF4444;
}

.kpi-trend small {
    color: var(--text-secondary);
    font-weight: 400;
}

.kpi-footer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.kpi-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.kpi-link:hover {
    gap: 0.75rem;
    color: #F5B800;
}

/* ============================================
   DASHBOARD CARDS
   ============================================ */

.dashboard-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
    border-color: rgba(225, 160, 4, 0.3);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header-content {
    flex: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: var(--primary-gold);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   TABLES
   ============================================ */
/* ============================================
   INTERVENTIONS RÉCENTES - STYLE IDENTIQUE À TOP MÉCANICIENS
   ============================================ */

.interventions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intervention-item {
    display: grid;
    grid-template-columns: auto 1fr 1fr auto auto auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.intervention-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--primary-gold);
    transform: translateX(4px);
}

.intervention-id .badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.intervention-id .badge.bg-dark {
    background-color: rgba(0, 0, 0, 0.8) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.intervention-client,
.intervention-mechanic {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.intervention-client .user-avatar-sm,
.intervention-mechanic .user-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    object-fit: cover;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.intervention-type .service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(225, 160, 4, 0.1);
    color: var(--primary-gold);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.intervention-amount {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    text-align: right;
}

.amount-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.intervention-amount .text-gold {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.intervention-status {
    display: flex;
    align-items: center;
}

.intervention-date {
    display: flex;
    align-items: center;
}

.intervention-date .text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.85rem;
}

.intervention-actions {
    display: flex;
    gap: 0.5rem;
}

.intervention-actions .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive pour les interventions */
@media (max-width: 1400px) {
    .intervention-item {
        grid-template-columns: auto 1fr 1fr auto auto auto;
        gap: 0.75rem;
    }
    
    .intervention-type {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }
}

@media (max-width: 992px) {
    .intervention-item {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .intervention-id {
        grid-column: 1 / -1;
    }
    
    .intervention-client,
    .intervention-mechanic {
        grid-column: span 1;
    }
    
    .intervention-type,
    .intervention-amount,
    .intervention-status,
    .intervention-date {
        grid-column: 1 / -1;
    }
    
    .intervention-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

/* ============================================
   ANCIEN STYLE TABLE - CONSERVÉ POUR COMPATIBILITÉ
   ============================================ */

.interventions-table {
    margin: 0;
}

.interventions-table thead {
    background: rgba(0, 0, 0, 0.3);
}

.interventions-table th {
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.interventions-table td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

/* Override Bootstrap text-muted pour le thème sombre */
.interventions-table .text-muted,
.interventions-table td .text-muted,
.interventions-table small.text-muted {
    color: var(--text-secondary) !important;
    opacity: 1;
}

/* Styles spécifiques pour la section Interventions Récentes */
.dashboard-card .card-body .text-muted {
    color: var(--text-secondary) !important;
}

.dashboard-card .card-body small {
    color: var(--text-secondary) !important;
}

/* Override pour tous les éléments text-muted dans le dashboard */
.dashboard-card .text-muted {
    color: var(--text-secondary) !important;
}

/* Amélioration de la lisibilité des badges et éléments de statut */
.interventions-table .badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.interventions-table .badge.bg-dark {
    background-color: rgba(0, 0, 0, 0.8) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.interventions-table tbody tr {
    transition: all 0.3s ease;
}

.interventions-table tbody tr:hover {
    background: var(--bg-hover);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    object-fit: cover;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(225, 160, 4, 0.1);
    color: var(--primary-gold);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   OVERRIDES BOOTSTRAP POUR THÈME SOMBRE
   ============================================ */

/* Force les couleurs de texte visibles pour le thème sombre */
body, .main-content {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Override global pour text-muted dans le contexte du dashboard */
.text-muted {
    color: var(--text-secondary) !important;
}

/* Override spécifique pour les éléments dans les cartes dashboard */
.dashboard-card,
.dashboard-card * {
    color: inherit;
}

.dashboard-card .text-muted {
    color: var(--text-secondary) !important;
}

.dashboard-card small {
    color: var(--text-secondary) !important;
}

/* Correction spécifique pour la section Interventions Récentes */
.interventions-table {
    color: var(--text-primary);
}

.interventions-table td,
.interventions-table th {
    color: var(--text-primary) !important;
}

.interventions-table .text-muted,
.interventions-table td .text-muted,
.interventions-table small,
.interventions-table small.text-muted {
    color: var(--text-secondary) !important;
    opacity: 1;
}

/* Styles pour les éléments d'avatar et noms d'utilisateur */
.user-cell span {
    color: var(--text-primary) !important;
}

/* Styles pour les badges de statut */
.service-badge {
    color: var(--primary-gold) !important;
}

.interventions-table .badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.interventions-table .badge.bg-dark {
    background-color: rgba(0, 0, 0, 0.8) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gold {
    color: var(--primary-gold);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* ============================================
   TOP MECHANICS
   ============================================ */

.top-mechanics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mechanic-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mechanic-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--primary-gold);
    transform: translateX(4px);
}

.mechanic-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1D1D1B;
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: #1D1D1B;
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: #FFFFFF;
}

.mechanic-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    object-fit: cover;
}

.mechanic-info {
    flex: 1;
}

.mechanic-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.mechanic-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mechanic-revenue {
    text-align: right;
}

.revenue-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* ============================================
   QUICK STATS
   ============================================ */

.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-row:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(225, 160, 4, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.bg-gold {
    background: var(--primary-gold);
    color: var(--primary-dark);
}

/* ============================================
   MAP PLACEHOLDER
   ============================================ */

.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
}

/* ============================================
   STATS LEGEND
   ============================================ */

.stats-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    color: var(--text-secondary);
}

.legend-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .main-wrapper {
        margin-left: 0;
    }
    
    .main-content {
        padding: 90px 1rem 1rem 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .kpi-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header-actions {
        width: 100%;
    }
    
    .btn-icon-text {
        flex: 1;
        justify-content: center;
    }
    
    .kpi-card-body {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mechanic-item {
        flex-wrap: wrap;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.dashboard-footer {
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.dashboard-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-gold) 50%, 
        transparent 100%);
    opacity: 0.3;
}

.footer-container {
    max-width: 100%;
    padding: 3rem 2rem 0 2rem;
}

.footer-main {
    margin-bottom: 2rem;
}

/* Footer Sections */
.footer-section {
    height: 100%;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-gold);
}

.footer-title i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-badge {
    margin-top: 0.75rem;
}

.footer-badge .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 0.5rem;
}

.footer-links a i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Footer Stats */
.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer-stat-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(225, 160, 4, 0.3);
    transform: translateX(4px);
}

.stat-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.stat-indicator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.stat-indicator.online {
    background: #10B981;
}

.stat-indicator.online::before {
    background: #10B981;
}

.stat-indicator.warning {
    background: #F59E0B;
}

.stat-indicator.warning::before {
    background: #F59E0B;
}

.stat-indicator.success {
    background: #3B82F6;
}

.stat-indicator.success::before {
    background: #3B82F6;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

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

/* Footer Info List */
.footer-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.875rem;
}

.footer-info-list li:last-child {
    border-bottom: none;
}

.footer-info-list i {
    color: var(--primary-gold);
    font-size: 1rem;
    margin-top: 0.125rem;
}

.footer-info-list span {
    color: var(--text-secondary);
    flex: 1;
}

.footer-info-list strong {
    color: var(--text-primary);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.copyright,
.made-with {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.copyright strong,
.made-with i {
    color: var(--primary-gold);
}

.separator {
    color: rgba(255, 255, 255, 0.2);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--primary-gold);
}

.footer-bottom-link i {
    font-size: 1rem;
}

/* Scroll to Top Button */
.btn-scroll-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E1A004 0%, #F5B800 100%);
    border: none;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    box-shadow: 0 4px 15px rgba(225, 160, 4, 0.3);
}

.btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.btn-scroll-top:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(225, 160, 4, 0.5);
}

.btn-scroll-top i {
    font-size: 1.25rem;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    position: relative;
}

.spinner-ring {
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
    border-top-color: #F5B800;
    animation-delay: -0.5s;
    width: 60px;
    height: 60px;
}

.spinner-ring:nth-child(3) {
    border-top-color: rgba(225, 160, 4, 0.5);
    animation-delay: -1s;
    width: 40px;
    height: 40px;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.loading-text {
    margin-top: 120px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    animation: fadeInOut 1.5s infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* ============================================
   TOAST CUSTOMIZATION
   ============================================ */

.toast {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-body {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.toast-body i {
    font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE FOOTER
   ============================================ */

@media (max-width: 992px) {
    .footer-container {
        padding: 2rem 1rem 0 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-bottom-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .footer-title {
        font-size: 0.95rem;
    }
    
    .footer-bottom-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
    
    .footer-bottom-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-scroll-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }
}

@media (max-width: 576px) {
    .footer-stat-item {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}