/**
 * Styles Administration - Catalogue Maymana
 */

:root {
    --gold: #D4AF37;
    --dark-gold: #B4941F;
    --light-gold: #F4E4B7;
    --dark: #2C2416;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--dark) 0%, #1a1510 100%);
    color: white;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 2px solid var(--gold);
}

.sidebar-header i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.sidebar-header span {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--light-gold);
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-left-color: var(--gold);
}

.menu-item.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border-left-color: var(--gold);
    font-weight: 600;
}

.menu-item i {
    width: 30px;
    font-size: 1.2rem;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
}

.top-header {
    background: white;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--dark);
    margin: 0;
}

.page-title i {
    color: var(--gold);
    margin-right: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.user-info i {
    font-size: 1.5rem;
    color: var(--gold);
}

.bg-gold {
    background: var(--gold) !important;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card.stat-primary {
    border-left-color: #007bff;
}

.stat-card.stat-success {
    border-left-color: #28a745;
}

.stat-card.stat-warning {
    border-left-color: #ffc107;
}

.stat-card.stat-danger {
    border-left-color: #dc3545;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-right: 20px;
}

.stat-primary .stat-icon {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.stat-success .stat-icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stat-warning .stat-icon {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stat-danger .stat-icon {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.stat-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header-custom {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: white;
    padding: 20px 25px;
}

.card-header-custom h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-header-custom i {
    margin-right: 8px;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item h6 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark);
}

/* Quick Actions */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    border-color: var(--dark-gold);
}

.quick-action-btn i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.quick-action-btn span {
    font-weight: 600;
    text-align: center;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    color: white;
}

/* Responsive */
/* Bouton hamburger mobile */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background: var(--gold);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: var(--dark-gold);
    transform: scale(1.05);
}

/* Overlay pour fermer le menu */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding: 80px 15px 20px 15px;
    }
    
    .top-header {
        padding: 15px 20px;
    }
    
    .page-title {
        font-size: 1.4rem;
    }
    
    .user-info {
        font-size: 0.9rem;
    }
}
