/* ================================
   STYLES PAGE COMPTE
   ================================ */

/* ZONE LOGIN */
.login-area {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-md) 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffffff 100%);
}

.login-box {
    max-width: 700px;
    width: 90%;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-sm);
    background: linear-gradient(135deg, var(--secondary-color), var(--white));
    border-bottom: 3px solid var(--primary-color);
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-xs);
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(175, 17, 17, 0.3);
    overflow: hidden;
}

.login-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-header h2 {
    font-size: var(--font-size-lg);
    color: var(--gray-dark);
    margin-bottom: 4px;
    font-weight: 700;
}

.login-header p {
    color: var(--gray-medium);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

.login-form {
    padding: var(--spacing-lg) var(--spacing-2xl);
}

.login-info {
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    border-left: 4px solid #3b82f6;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

.login-info p {
    margin: 0;
    color: #1e40af;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.login-info i {
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: var(--spacing-md);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--gray-dark);
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.remember-me span {
    user-select: none;
}

.login-options .link-btn-small {
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.login-options .link-btn-small:hover {
    color: var(--gray-dark);
    text-decoration: underline;
}

.help-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray-dark);
    font-size: var(--font-size-sm);
}

.help-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 6px;
    font-size: var(--font-size-sm);
}

.login-form label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.login-form input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

.login-form input::placeholder {
    color: var(--gray-light);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(175, 17, 17, 0.1);
}

.login-form .cta-primary {
    width: 100%;
    margin-top: 0;
    padding: 10px 16px !important;
    justify-content: center;
    font-size: var(--font-size-sm);
}

.login-footer {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--secondary-color);
    text-align: center;
    border-top: 2px solid var(--gray-light);
}

.login-footer p {
    color: var(--gray-medium);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-size: var(--font-size-base);
    text-decoration: underline;
    transition: var(--transition);
}

.link-btn:hover {
    color: #8a0d0d;
}

@media (max-width: 576px) {
    .login-box {
        width: 95%;
        margin: 0 auto;
    }
    
    .login-form {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
    }
    
    .login-icon img {
        width: 100%;
        height: 100%;
    }
}

/* ================================
   PANEL ADMIN
   ================================ */

.admin-dashboard {
    min-height: 100vh;
    padding: 0;
    background: #f8fafc;
}

.container-fluid {
    max-width: 100%;
    padding: 0;
}

/* HEADER ADMIN */
.admin-header {
    background: linear-gradient(135deg, var(--primary-color), #8a0d0d);
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.admin-icon-badge {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.admin-icon-badge i {
    font-size: 1.5rem;
}

.admin-header h1 {
    font-size: var(--font-size-2xl);
    margin: 0;
    font-weight: 700;
}

.admin-header p {
    margin: 4px 0 0 0;
    opacity: 0.9;
    font-size: var(--font-size-sm);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* NAVIGATION ADMIN */
.admin-nav {
    background: var(--white);
    border-bottom: 2px solid var(--gray-light);
    padding: 0 var(--spacing-2xl);
    display: flex;
    gap: var(--spacing-xs);
    overflow-x: auto;
}

.admin-nav-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-medium);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.admin-nav-btn:hover {
    color: var(--primary-color);
    background: var(--secondary-color);
}

.admin-nav-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: linear-gradient(to bottom, var(--secondary-color), transparent);
}

.admin-nav-btn i {
    font-size: 1.1rem;
}

/* CONTENU ADMIN */
.admin-content {
    padding: var(--spacing-2xl);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.section-title-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--gray-light);
}

.section-title-admin h2 {
    font-size: var(--font-size-2xl);
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
}

.section-title-admin i {
    color: var(--primary-color);
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.stat-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    font-size: var(--font-size-sm);
    color: var(--gray-medium);
    margin: 0 0 var(--spacing-sm) 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* CARTE DE SYNC */
.sync-card {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 800px;
}

.sync-info-box {
    display: flex;
    gap: var(--spacing-lg);
    align-items: start;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xl);
    border-left: 4px solid #3b82f6;
}

.sync-info-box i {
    font-size: 2rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.sync-info-box h3 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--gray-dark);
    font-size: var(--font-size-lg);
}

.sync-info-box p {
    margin: 0;
    color: var(--gray-medium);
    line-height: 1.6;
}

.btn-sync {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-2xl);
    background: linear-gradient(135deg, var(--primary-color), #d10f0f);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(175, 17, 17, 0.3);
}

.btn-sync:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(175, 17, 17, 0.4);
}

.btn-sync i {
    font-size: 1.2rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.sync-result {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    background: var(--secondary-color);
}

/* GRILLE D'ITEMS */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.item-card-admin {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.item-card-admin:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.item-card-header {
    padding: var(--spacing-lg);
    background: var(--secondary-color);
    border-bottom: 2px solid var(--gray-light);
}

.item-card-header h3 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--gray-dark);
    font-size: var(--font-size-lg);
}

.item-ref {
    font-size: var(--font-size-sm);
    color: var(--gray-medium);
    font-weight: 600;
}

.item-card-body {
    padding: var(--spacing-lg);
}

.item-card-body p {
    color: var(--gray-medium);
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.5;
}

.item-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.item-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    color: var(--gray-dark);
    font-weight: 600;
}

.item-card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--secondary-color);
    border-top: 2px solid var(--gray-light);
}

.btn-publish {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-publish:hover {
    background: #8a0d0d;
}

.btn-published {
    background: #10b981;
}

.btn-published:hover {
    background: #059669;
}

/* LISTE DEMANDES */
.requests-admin-list {
    display: grid;
    gap: var(--spacing-lg);
}

.request-card-admin {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    border-left: 4px solid var(--primary-color);
}

.request-card-admin h3 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--gray-dark);
}

.request-meta {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--gray-medium);
}

.request-message {
    background: var(--secondary-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }
    
    .admin-content {
        padding: var(--spacing-lg);
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
}

/* DASHBOARD CLIENT (ancien code conservé) */
.dashboard-header {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--gray-light);
}

.dashboard-header h1 {
    font-size: var(--font-size-3xl);
    color: var(--gray-dark);
    margin-bottom: var(--spacing-xs);
}

.dashboard-header p {
    color: var(--gray-medium);
}

/* ================================
   ESPACE CLIENT MODERNE
   ================================ */

.client-dashboard-modern {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* SIDEBAR CLIENT */
.client-sidebar {
    width: 280px;
    background: #1A1C20;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-brand-client {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand-client span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.user-profile-card {
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    margin: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #AF1111 0%, #8a0d0d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.profile-info-client {
    flex: 1;
}

.profile-name-client {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.profile-status {
    font-size: 0.75rem;
    color: #AF1111;
    font-weight: 500;
}

.sidebar-menu-client {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.menu-item-client {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.875rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
    position: relative;
}

.menu-item-client:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    border-left-color: #AF1111;
}

.menu-item-client.active {
    background: rgba(175, 17, 17, 0.1);
    color: white;
    border-left-color: #AF1111;
}

.menu-item-client i {
    width: 20px;
    text-align: center;
    font-size: 1.125rem;
}

.badge-count {
    margin-left: auto;
    background: #AF1111;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sidebar-footer-client {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-logout-client {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    color: #f44336;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout-client:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
}

/* MAIN CONTENT CLIENT */
.client-main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

.client-topbar {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1A1C20;
    margin: 0 0 0.25rem 0;
}

.topbar-subtitle {
    color: #6c757d;
    font-size: 0.9375rem;
    margin: 0;
}

.btn-back-site {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back-site:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* SECTIONS CLIENT */
.client-section {
    display: none;
}

.client-section.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WELCOME BANNER */
.welcome-banner {
    background: linear-gradient(135deg, #AF1111 0%, #8a0d0d 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 16px rgba(175, 17, 17, 0.3);
}

.welcome-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.welcome-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.125rem;
}

.welcome-icon {
    font-size: 4rem;
    opacity: 0.2;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1A1C20;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* QUICK ACTIONS */
.quick-actions {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quick-actions h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1C20;
    margin: 0 0 1.5rem 0;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.action-card:hover {
    background: #AF1111;
    border-color: #AF1111;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(175, 17, 17, 0.3);
}

.action-card i {
    font-size: 2rem;
}

/* SECTION HEADER */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1C20;
    margin: 0;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.25rem;
    border-radius: 8px;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #6c757d;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: white;
    color: #AF1111;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* REQUESTS GRID */
.requests-grid {
    display: grid;
    gap: 1rem;
}

/* PROFILE MODERN */
.profile-container {
    max-width: 800px;
}

.profile-card-modern {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-modern label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.9375rem;
}

.form-group-modern label i {
    color: #AF1111;
}

.form-group-modern input {
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group-modern input:focus {
    outline: none;
    border-color: #AF1111;
    box-shadow: 0 0 0 3px rgba(175, 17, 17, 0.1);
}

.form-group-modern input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

.btn-save-profile {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #AF1111 0%, #8a0d0d 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: var(--spacing-lg);
}

.btn-save-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(175, 17, 17, 0.3);
}

/* ================================
   ANCIEN DASHBOARD CLIENT (conserver pour compatibilité)
   ================================ */

.dashboard-area {
    min-height: 100vh;
    padding: var(--spacing-2xl) 0;
    background: #f8fafc;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color), #8a0d0d);
    color: var(--white);
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.dashboard-header h1 {
    font-size: var(--font-size-3xl);
    margin: 0 0 var(--spacing-xs) 0;
    font-weight: 700;
}

.dashboard-header p {
    margin: 0;
    opacity: 0.9;
    font-size: var(--font-size-lg);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-2xl);
}

.dashboard-sidebar {
    position: sticky;
    top: var(--spacing-lg);
    height: fit-content;
}

.dashboard-nav {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    border-left: 4px solid var(--primary-color);
}

.dashboard-nav .nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--gray-dark);
    background: none;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: var(--font-size-base);
    width: 100%;
    cursor: pointer;
    margin-bottom: var(--spacing-xs);
    text-align: left;
}

.dashboard-nav .nav-item:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dashboard-nav .nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), #8a0d0d);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.dashboard-nav .nav-item i {
    width: 24px;
    text-align: center;
    font-size: var(--font-size-lg);
}

.dashboard-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-2xl);
    min-height: 500px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section h2 {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.content-section h2::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), #8a0d0d);
    border-radius: 2px;
}

/* CARTES DE DEMANDES CLIENT */
.requests-list {
    display: grid;
    gap: var(--spacing-lg);
}

.request-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 0;
    margin-bottom: 0;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.request-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: var(--spacing-lg);
    background: var(--secondary-color);
    border-bottom: 1px solid var(--gray-light);
}

.request-title {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.request-status {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.request-status.pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.request-status.processing {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.request-status.completed {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.request-body {
    padding: var(--spacing-lg);
}

.request-body p {
    color: var(--gray-medium);
    line-height: 1.6;
    margin: 0;
}

.item-reference {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 500;
}

.request-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--gray-light);
    background: var(--secondary-color);
    font-size: var(--font-size-sm);
    color: var(--gray-medium);
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.request-footer span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.request-footer i {
    color: var(--primary-color);
}

/* FORMULAIRE PROFIL */
.profile-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--gray-dark);
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(175, 17, 17, 0.1);
}

.form-group input:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ÉTATS VIDES/ERREUR */
.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    color: var(--gray-medium);
    background: var(--secondary-color);
    border-radius: var(--border-radius-lg);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.4;
    color: var(--primary-color);
}

.empty-state h3 {
    font-size: var(--font-size-xl);
    color: var(--gray-dark);
    margin: 0 0 var(--spacing-sm) 0;
}

.empty-state p {
    margin: 0 0 var(--spacing-lg) 0;
    color: var(--gray-medium);
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        padding: var(--spacing-md);
    }
    
    .admin-nav {
        padding: 0 var(--spacing-md);
    }
}

/* ================================
   TABLEAUX DE GESTION ADMIN
   ================================ */

.management-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.management-table thead {
    background: linear-gradient(135deg, var(--primary-color), #8a0d0d);
    color: var(--white);
}

.management-table th {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.management-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray-dark);
}

.management-table tbody tr:hover {
    background: var(--secondary-color);
}

.management-table tbody tr:last-child td {
    border-bottom: none;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.badge.success {
    background: #d1fae5;
    color: #065f46;
}

.badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.badge.error {
    background: #fee2e2;
    color: #991b1b;
}

/* BOUTONS D'ACTION */
.action-btns {
    display: flex;
    gap: var(--spacing-xs);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: none;
}

.action-btn.publish {
    color: var(--success);
    border-color: var(--success);
}

.action-btn.publish:hover {
    background: var(--success);
    color: var(--white);
}

.action-btn.edit {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.action-btn.edit:hover {
    background: var(--primary-color);
    color: var(--white);
}

.action-btn.delete {
    color: var(--error);
    border-color: var(--error);
}

.action-btn.delete:hover {
    background: var(--error);
    color: var(--white);
}

/* ÉTATS */
.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    color: var(--gray-medium);
}

.loading-state i,
.empty-state i,
.error-state i {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.6;
}

.loading-state i {
    color: var(--primary-color);
}

.error-state i {
    color: var(--error);
}

.error-state .cta-primary {
    margin-top: var(--spacing-md);
}

/* CARTES DE DEMANDES ADMIN */
.requests-admin-list {
    display: grid;
    gap: var(--spacing-lg);
}

.request-card-admin {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
}

.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--secondary-color);
    border-bottom: 1px solid var(--gray-light);
}

.request-user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.request-user-info i {
    font-size: 2rem;
    color: var(--primary-color);
}

.request-user-info h4 {
    margin: 0;
    font-size: var(--font-size-base);
    color: var(--gray-dark);
}

.request-user-info p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--gray-medium);
}

.request-card-body {
    padding: var(--spacing-lg);
}

.request-card-body h5 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
}

.request-card-body p {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--gray-medium);
    line-height: 1.6;
}

.request-item-ref {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    color: var(--gray-dark);
    font-size: var(--font-size-sm);
}

.request-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--secondary-color);
    border-top: 1px solid var(--gray-light);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.request-card-footer > span {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--gray-medium);
}

.request-actions {
    display: flex;
    gap: var(--spacing-xs);
}

/* ================================
   ADMIN DASHBOARD MODERNE
   ================================ */

.admin-dashboard-modern {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* SIDEBAR */
.admin-sidebar {
    width: 280px;
    background: #1A1C20;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-brand {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.sidebar-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.sidebar-menu {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    cursor: pointer;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

.menu-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.menu-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.menu-item.active {
    background: rgba(175, 17, 17, 0.1);
    color: #AF1111;
    border-left-color: #AF1111;
    font-weight: 600;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap; /* Empêche le retour à la ligne */
}

.admin-profile {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; /* Permet la réduction */
    overflow: hidden; /* Cache le débordement */
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #AF1111, #8a0d0d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.profile-info {
    flex: 1;
    min-width: 0; /* Permet au flex-shrink de fonctionner */
    overflow: hidden;
}

.profile-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Ajoute "..." si le texte est trop long */
}

.profile-role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout-sidebar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-logout-sidebar:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
}

/* MAIN CONTENT */
.admin-main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-title h1 {
    font-size: 1.75rem;
    color: #1a1f36;
    margin: 0;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    gap: 12px;
}

.topbar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.topbar-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.admin-content-wrapper {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* STATS CARDS */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.stat-card.stat-primary {
    border-left-color: #3b82f6;
}

.stat-card.stat-success {
    border-left-color: #AF1111;
}

.stat-card.stat-warning {
    border-left-color: #f59e0b;
}

.stat-card.stat-info {
    border-left-color: #8b5cf6;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-primary .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.stat-success .stat-icon {
    background: linear-gradient(135deg, #AF1111, #8a0d0d);
    color: white;
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.stat-info .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.stat-details {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1f36;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* DASHBOARD GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #1a1f36;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.quick-action-btn i {
    font-size: 1.25rem;
}

.quick-action-btn .action-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* SYNC SECTION */
.sync-container-modern {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.sync-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.sync-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.sync-info h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: #1a1f36;
}

.sync-info p {
    margin: 0;
    color: #6b7280;
}

.sync-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sync-stat-card {
    background: linear-gradient(135deg, #f9fafb, white);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.sync-stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.sync-stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.sync-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 4px;
}

.sync-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.btn-sync-modern {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), #d10f0f);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(175, 17, 17, 0.3);
}

.btn-sync-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(175, 17, 17, 0.4);
}

.btn-sync-modern i {
    font-size: 1.25rem;
}

.sync-result-modern {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

/* INVENTORY SECTION */
.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.inventory-tabs {
    display: flex;
    gap: 8px;
    background: white;
    padding: 4px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.inventory-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.inventory-tab:hover {
    background: #f9fafb;
    color: #1a1f36;
}

.inventory-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(175, 17, 17, 0.3);
}

.inventory-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    min-width: 300px;
}

.inventory-search i {
    color: #9ca3af;
    font-size: 1.1rem;
}

.inventory-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #1a1f36;
}

.inventory-search input::placeholder {
    color: #9ca3af;
}

.inventory-content {
    display: none;
}

.inventory-content.active {
    display: block;
}

.inventory-grid-modern {
    display: flex;
    flex-direction: column;
}

/* REQUESTS SECTION */
.requests-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-btn .badge {
    background: #e5e7eb;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-btn.active .badge {
    background: rgba(255,255,255,0.2);
    color: white;
}

.filter-btn .badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.filter-btn .badge-info {
    background: #dbeafe;
    color: #2563eb;
}

.filter-btn .badge-success {
    background: #d1fae5;
    color: #059669;
}

.requests-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

/* USERS SECTION */
.users-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.btn-add-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #AF1111, #8a0d0d);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(175, 17, 17, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-add-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 17, 17, 0.4);
}

.users-filters {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(175, 17, 17, 0.1);
}

.role-filter {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 180px;
}

.role-filter:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(175, 17, 17, 0.1);
}

.users-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 1.5rem;
}

/* USER CARD MODERN */
.user-card-modern {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.user-card-modern:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.user-card-header {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #AF1111, #8a0d0d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-info h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info p {
    margin: 0.25rem 0;
    color: #6b7280;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info p i {
    color: var(--primary-color);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.user-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.user-role {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.user-role.admin {
    background: #fef3c7;
    color: #92400e;
}

.user-role.client {
    background: #dbeafe;
    color: #1e40af;
}

.user-date {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.btn-icon-modern {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-icon-modern:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-icon-modern.btn-delete:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

/* LOADING SPINNER */
.loading-spinner {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.loading-spinner p {
    margin: 0;
    font-size: 1rem;
    color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 80px;
    }
    
    .sidebar-brand span,
    .menu-item span,
    .profile-info,
    .admin-profile {
        display: none;
    }
    
    .admin-main-content {
        margin-left: 80px;
    }
    
    .menu-item {
        justify-content: center;
    }
    
    .sidebar-footer {
        flex-direction: column;
    }
    
    .dashboard-grid,
    .inventory-grid-modern,
    .requests-grid-modern,
    .users-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .inventory-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .inventory-search {
        min-width: 100%;
    }
}

/* ITEM CARDS MODERN */
.item-card-modern {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 550px;
    max-height: 550px;
}

.item-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.item-card-header {
    position: relative;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    overflow: hidden;
    background: #ffffff;
    flex-shrink: 0;
    border-bottom: 1px solid #e5e7eb;
}

.item-card-header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.item-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #d1d5db;
}

.item-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.item-badge {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(107, 114, 128, 0.9);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.item-badge.published {
    background: rgba(175, 17, 17, 0.9);
}

.item-badge.featured {
    background: rgba(251, 191, 36, 0.95);
    color: #1f2937;
}

.item-badge.not-featured {
    background: rgba(107, 114, 128, 0.6);
    color: rgba(255, 255, 255, 0.7);
}

.item-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.item-ref {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-title {
    font-size: 1.125rem;
    color: #1a1f36;
    margin: 0 0 8px 0;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
    max-height: 2.5rem;
    line-height: 1.25rem;
}

.item-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4rem;
    max-height: 4rem;
    word-break: break-word;
}

.item-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: auto;
}

.item-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 16px;
    font-size: 0.75rem;
    color: #6b7280;
    max-width: fit-content;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-card-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    min-height: 62px;
    max-height: 62px;
}

.btn-publish,
.btn-edit,
.btn-unpublish {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-publish {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-publish:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-edit {
    background: #f3f4f6;
    color: #374151;
}

.btn-edit:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.btn-unpublish {
    background: #fee2e2;
    color: #ef4444;
}

.btn-unpublish:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

.btn-delete {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    background: #dc2626;
    color: white;
}

.btn-delete:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.item-card-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.item-card-footer button {
    flex: 1;
    min-width: 120px;
}

/* INVENTORY FILTERS */
.inventory-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-group input[type="text"] {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.filter-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-info {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* PAGINATION */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
}

.btn-page {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-page:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #e5e7eb;
    color: #9ca3af;
}

.page-info {
    font-weight: 600;
    color: #374151;
    padding: 0 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

/* REQUEST CARDS ADMIN */
.request-card-admin {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s;
    min-height: 200px;
    height: auto !important;
}

.request-card-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.request-card-admin .request-card-header {
    padding: 1.5rem;
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: auto;
}

.request-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.request-user-info i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.request-user-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #1a1f36;
}

.request-user-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.request-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.request-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.request-status.processing {
    background: #dbeafe;
    color: #2563eb;
}

.request-status.completed {
    background: #d1fae5;
    color: #059669;
}

.request-card-admin .request-card-body {
    padding: 1.5rem;
}

.request-card-admin .request-card-body h5 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    color: #1a1f36;
    font-weight: 600;
}

.request-card-admin .request-card-body p {
    margin: 0 0 12px 0;
    color: #6b7280;
    line-height: 1.6;
}

.request-card-admin .request-card-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.request-card-admin .request-card-footer > span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #6b7280;
}

.request-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn.edit {
    background: #dbeafe;
    color: #2563eb;
}

.action-btn.edit:hover {
    background: #bfdbfe;
}

.action-btn.publish {
    background: #d1fae5;
    color: #059669;
}

.action-btn.publish:hover {
    background: #a7f3d0;
}

.action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn.delete:hover {
    background: #fecaca;
}

/* USER CARDS */
.user-card-modern {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.user-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #AF1111, #8a0d0d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
}

.user-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.125rem;
    color: #1a1f36;
    font-weight: 600;
}

.user-email {
    margin: 0 0 6px 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.user-phone,
.user-company {
    margin: 4px 0;
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.user-role {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-role.admin {
    background: #fee2e2;
    color: #ef4444;
}

.user-role.client {
    background: #dbeafe;
    color: #2563eb;
}

.user-date {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s;
}

.modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1f36;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
}

.modal-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input[readonly] {
    background: #f9fafb;
    color: #6b7280;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.image-preview {
    margin-bottom: 1.5rem;
}

.preview-card {
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
}

.preview-card h4 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-card h4 i {
    color: #AF1111;
}

.preview-content {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.preview-image {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.preview-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2rem;
}

.preview-details {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.preview-ref {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.preview-title {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-description {
    flex: 1;
    margin: 0 0 0.75rem 0;
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.preview-footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.preview-price {
    color: #AF1111;
    font-size: 1.25rem;
    font-weight: 700;
}

.preview-category {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4b5563;
}

.preview-category i {
    color: #AF1111;
    font-size: 0.75rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.modal-actions .btn-cancel,
.modal-actions .btn-submit {
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-actions .btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.modal-actions .btn-cancel:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-actions .btn-submit {
    background: linear-gradient(135deg, #AF1111, #8a0d0d);
    color: white;
    box-shadow: 0 4px 12px rgba(175, 17, 17, 0.3);
}

.modal-actions .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 17, 17, 0.4);
    background: linear-gradient(135deg, #8a0d0d, #AF1111);
}

/* MODAL INSCRIPTION CLIENT */
.register-modal {
    max-width: 600px;
}

.register-modal .modal-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #AF1111;
}

.register-modal .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.register-modal .form-group label i {
    color: #AF1111;
    width: 20px;
}

.register-info {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    margin: 20px 0;
}

.register-info i {
    color: #f59e0b;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.register-info p {
    margin: 0;
    color: #92400e;
    line-height: 1.6;
}

.register-info strong {
    color: #78350f;
    font-weight: 700;
}

/* MODAL MOT DE PASSE OUBLIÉ */
.forgot-modal {
    max-width: 500px;
}

.forgot-modal .modal-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #AF1111;
}

.modal-description {
    margin: 0 0 24px 0;
    padding: 16px;
    background: #f3f4f6;
    border-left: 4px solid #AF1111;
    border-radius: 8px;
    color: #374151;
    line-height: 1.6;
}

/* BOUTON LIEN PETIT */
.link-btn-small {
    background: none;
    border: none;
    color: #AF1111;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.link-btn-small:hover {
    color: #8a0d0d;
    text-decoration: underline;
}

.link-btn-small i {
    font-size: 12px;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #8a0d0d);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(175, 17, 17, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Checkbox En vedette */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: var(--border-radius-md);
    transition: all 0.3s;
}

.checkbox-label:hover {
    background: #fde68a;
    border-color: #f59e0b;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #f59e0b;
}

.checkbox-label span {
    font-weight: 600;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label i {
    color: #f59e0b;
}

/* ================================
   MODAL D'ÉDITION
   ================================ */

.edit-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.current-image {
    width: 100%;
    min-height: 200px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    padding: var(--spacing-md);
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray-medium);
}

.no-image-placeholder i {
    font-size: 4rem;
    opacity: 0.3;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.readonly-field {
    background: #f3f4f6;
    cursor: not-allowed;
}

/* Bouton Modifier */
.btn-edit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: var(--white);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ================================
   SETTINGS SECTION
   ================================ */

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1200px;
}

/* Accordéon des paramètres */
.settings-accordion {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.settings-accordion:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.settings-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), white);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.settings-accordion-header:hover {
    background: linear-gradient(135deg, #e8f5e9, white);
    border-bottom-color: var(--primary-color);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion-title i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.accordion-title h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 600;
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.accordion-icon.rotate {
    transform: rotate(180deg);
}

.settings-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: white;
}

.settings-accordion-content.active {
    max-height: 3000px; /* Augmenté pour les nombreux champs du footer */
    border-top: 1px solid #e5e7eb;
    overflow-y: auto; /* Scroll si vraiment trop de contenu */
}

.settings-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), white);
    border-bottom: 2px solid var(--primary-color);
}

.settings-card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.settings-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

.settings-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-form label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.settings-form input {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.settings-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.settings-form small {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn-test, .btn-save {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-test {
    background: linear-gradient(135deg, #AF1111, #8a0d0d);
    color: white;
}

.btn-test:hover {
    background: linear-gradient(135deg, #8a0d0d, #6d0a0a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 17, 17, 0.4);
}

.btn-save {
    background: linear-gradient(135deg, #AF1111, #8a0d0d);
    color: white;
}

.btn-save:hover {
    background: linear-gradient(135deg, #8a0d0d, #6d0a0a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 17, 17, 0.4);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .btn-test, .btn-save {
        width: 100%;
        justify-content: center;
    }
}

/* ================================
   NOUVEAUX ÉLÉMENTS DE FORMULAIRE
   ================================ */

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.color-picker-wrapper input[type="color"] {
    width: 60px;
    height: 45px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    padding: 4px;
}

.color-picker-wrapper input[type="text"] {
    flex: 1;
}

/* File Upload */
.file-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-upload-wrapper input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
}

.logo-preview {
    min-height: 80px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

.logo-preview img {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
}

.logo-preview.empty::before {
    content: 'Aucun logo sélectionné';
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.toggle-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 26px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary-color);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-text {
    font-weight: 600;
    color: var(--text-color);
}

/* Textarea */
.settings-form textarea {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
}

.settings-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* ================================
   ACTIVITÉS RÉCENTES - AMÉLIORÉES
   ================================ */

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.activity-item.clickable {
    cursor: pointer;
}

.activity-item.clickable:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(175, 17, 17, 0.15);
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: white;
}

.activity-icon.product {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.activity-icon.service {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.activity-icon.contact {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.activity-icon.publication {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.activity-title {
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.activity-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.activity-badge.pending {
    background: #FFF3CD;
    color: #856404;
}

.activity-badge.processing {
    background: #D1ECF1;
    color: #0C5460;
}

.activity-badge.completed {
    background: #D4EDDA;
    color: #155724;
}

.activity-badge.cancelled {
    background: #F8D7DA;
    color: #721C24;
}

.activity-badge.published {
    background: #E1BEE7;
    color: #6A1B9A;
}

.activity-description {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-ref {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-ref i {
    margin-right: 0.25rem;
}

.activity-time {
    color: var(--gray-light);
    font-size: 0.8rem;
}

.activity-time i {
    margin-right: 0.25rem;
}

.empty-state-small {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray-medium);
}

.empty-state-small i {
    font-size: 3rem;
    color: var(--gray-light);
    margin-bottom: 1rem;
}

.empty-state-small p {
    margin: 0;
    color: var(--gray-medium);
}

/* Pagination activités */
.activity-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

.pagination-btn {
    background: linear-gradient(135deg, var(--primary-color), #8a0d0d);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8a0d0d, #6d0a0a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(175, 17, 17, 0.4);
}

.pagination-btn:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

/* ================================
   MODAL DÉTAILS ACTIVITÉ
   ================================ */

.activity-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-detail-modal.show {
    opacity: 1;
}

.activity-detail-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.activity-detail-modal.show .activity-detail-content {
    transform: scale(1);
}

.activity-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, var(--secondary-color), white);
}

.activity-detail-header h3 {
    margin: 0;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-detail-header h3 i {
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-medium);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(175, 17, 17, 0.1);
    color: var(--primary-color);
}

.activity-detail-body {
    padding: 1.5rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: var(--gray-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h4 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item label {
    display: block;
    font-weight: 600;
    color: var(--gray-medium);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item div {
    color: var(--gray-dark);
    font-size: 1rem;
}

.detail-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.detail-item a:hover {
    text-decoration: underline;
}

.detail-message {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    color: var(--gray-dark);
    line-height: 1.6;
    border-left: 4px solid var(--primary-color);
}

.detail-timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    bottom: -20px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 0.9rem;
}

.timeline-marker.created {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.timeline-marker.pending {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.timeline-marker.processing {
    background: linear-gradient(135deg, #03A9F4, #0288D1);
}

.timeline-marker.completed {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.timeline-marker.cancelled {
    background: linear-gradient(135deg, #F44336, #D32F2F);
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: var(--gray-medium);
    font-size: 0.85rem;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-action {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-action.primary {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.btn-action.primary:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-action.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-action.success:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-action.danger {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
}

.btn-action.danger:hover {
    background: linear-gradient(135deg, #D32F2F, #C62828);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.activity-detail-footer {
    padding: 1.5rem;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.activity-detail-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #8a0d0d);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 150px;
}

.activity-detail-footer .btn-primary:hover {
    background: linear-gradient(135deg, #8a0d0d, #6d0a0a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(175, 17, 17, 0.4);
}

@media (max-width: 768px) {
    .activity-detail-content {
        max-height: 95vh;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .btn-action {
        min-width: 100%;
    }
}

/* ================================
   APERÇU APPARENCE
   ================================ */

.appearance-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 2px solid #dee2e6;
}

.appearance-preview h4 {
    color: var(--gray-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.appearance-preview h4 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.preview-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Header de l'aperçu */
.preview-header {
    background: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
}

.preview-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-dark);
}

.preview-logo i {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.preview-nav {
    display: flex;
    gap: 1.5rem;
}

.preview-nav-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Zone de contenu */
.preview-content {
    padding: 2rem 1.5rem;
    background: #fafafa;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-btn-large {
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: white;
}

.preview-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.preview-btn-secondary {
    border: 2px solid;
    background: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn-secondary:hover {
    color: white;
    transform: translateY(-2px);
}

/* Footer de l'aperçu */
.preview-footer {
    background: #2a2a2a;
    padding: 1.5rem;
    color: white;
}

.preview-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.preview-footer-logo i {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.preview-footer-description {
    color: #b0b0b0;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.btn-reset {
    background: var(--gray-light);
    color: var(--gray-dark);
    border: 2px solid var(--gray-medium);
}

.btn-reset:hover {
    background: var(--gray-medium);
    color: white;
}

/* Titre de section dans les formulaires */
.section-title {
    color: var(--gray-dark);
    font-size: 1.1rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary-color);
}

/* ================================
   OPTIONS DE SÉCURITÉ
   ================================ */

.security-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.security-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(175, 17, 17, 0.1);
}

.security-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.security-option-header h4 {
    color: var(--gray-dark);
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-option-header p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Toggle Switch moderne */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-switch-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-switch-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:focus + .toggle-switch-slider {
    box-shadow: 0 0 1px var(--primary-color);
}

.toggle-switch input:checked + .toggle-switch-slider:before {
    transform: translateX(26px);
}

/* Effet hover */
.toggle-switch:hover .toggle-switch-slider {
    opacity: 0.9;
}
