/* ==========================================
   DASHBOARD ADMIN - Styles personnalisés (Streamline Agency)
   ========================================== */

.app-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

/* Sidebar fixe à gauche - utilise les variables Streamline */
.sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 196, 81, 0.3) transparent;
    backdrop-filter: blur(8px);
}

/* Scrollbar personnalisée pour Webkit (Chrome, Safari, Edge) */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(245, 196, 81, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 196, 81, 0.5);
}

.sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #F5C451, #FFF0C9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-header .version {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ==========================================
   UTILISATEUR DISCORD - MODERN GLASSMORPHISM
   ========================================== */

.sidebar-discord-user {
    padding: var(--space-3);
    margin: 0 0 var(--space-5) 0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
}

.sidebar-discord-user:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.01);
}

.discord-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(88, 101, 242, 0.4);
    background: rgba(88, 101, 242, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.2);
}

.sidebar-discord-user:hover .discord-user-avatar {
    border-color: rgba(88, 101, 242, 0.6);
    transform: scale(1.05);
}

.discord-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discord-user-info {
    flex: 1;
    min-width: 0;
}

.discord-username {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.discord-tag {
    font-size: 10px;
    color: rgba(88, 101, 242, 1);
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* ==========================================
   BOUTON ADMIN - PREMIUM STYLE
   ========================================== */

.sidebar-admin-button {
    padding: 0 12px 12px 12px;
}

.admin-access-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    /* BOUTON NÉON PREMIUM */
    background: linear-gradient(135deg, var(--neon-gold), #FFA500);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-pill);
    color: #000000;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    gap: 10px;
    /* GLOW DORÉ */
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 30px var(--glow-gold),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

/* Shine effect */
.admin-access-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.admin-access-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 50px var(--glow-gold),
        0 0 80px var(--glow-pink),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.admin-access-btn:hover::after {
    transform: translateX(100%);
}

.admin-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.admin-text {
    flex: 1;
}

.admin-arrow {
    font-size: 18px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.admin-access-btn:hover .admin-arrow {
    transform: translateX(6px);
    opacity: 1;
}

.admin-access-btn.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.2));
    border-color: #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ==========================================
   ICÔNES MATERIAL SYMBOLS
   ========================================== */

.icon {
    font-family: 'Material Symbols Rounded', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   CONNEXION TIKTOK DANS LA SIDEBAR - MODERN DESIGN
   ========================================== */

.sidebar-tiktok-connection {
    padding: 0 12px 12px 12px;
    margin-bottom: 4px;
}

.sidebar-tiktok-connection .tiktok-header {
    margin-bottom: 0;
}

.tiktok-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.tiktok-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #00f2ea, #ff0050);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tiktok-header:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.tiktok-header:hover::before {
    opacity: 1;
}

.tiktok-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.tiktok-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.tiktok-toggle-arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    line-height: 1;
}

.tiktok-header:hover .tiktok-toggle-arrow {
    color: #00f2ea;
    transform: scale(1.1);
}

.tiktok-header.open .tiktok-toggle-arrow {
    transform: rotate(180deg);
    color: #00f2ea;
}

.sidebar-status-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    width: fit-content;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sidebar-status-badge.offline {
    background: rgba(255, 59, 48, 0.15);
    color: #ff6b6b;
    border: 1.5px solid rgba(255, 59, 48, 0.3);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.1);
}

.sidebar-status-badge.online {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1.5px solid rgba(0, 255, 136, 0.3);
    animation: pulse-green 2s ease-in-out infinite;
    box-shadow: 0 2px 12px rgba(0, 255, 136, 0.2);
}

.tiktok-header:hover .sidebar-status-badge.online {
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.3);
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4), 0 2px 12px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 0 0 12px 4px rgba(0, 255, 136, 0.3), 0 4px 16px rgba(0, 255, 136, 0.3);
    }
}

/* Menu dépliable - Smooth Animation */
.tiktok-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.tiktok-dropdown.open {
    max-height: 300px;
    opacity: 1;
    margin-top: 12px;
}

.tiktok-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px;
}

.tiktok-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tiktok-input-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2ea, #ff0050);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tiktok-input-group:focus-within {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 242, 234, 0.4);
    box-shadow: 0 4px 16px rgba(0, 242, 234, 0.15);
    transform: translateY(-2px);
}

.tiktok-input-group:focus-within::before {
    opacity: 1;
}

.tiktok-icon {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 8px;
    transition: all 0.3s ease;
}

.tiktok-input-group:focus-within .tiktok-icon {
    color: #00f2ea;
}

.tiktok-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 0;
    outline: none;
    letter-spacing: 0.3px;
}

.tiktok-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.tiktok-connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #00f2ea, #00bcd4);
    color: #000;
    border: none;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0, 242, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.tiktok-connect-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tiktok-connect-btn:hover::before {
    width: 300px;
    height: 300px;
}

.tiktok-connect-btn:hover {
    background: linear-gradient(135deg, #00d9d2, #00a5bb);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 234, 0.4);
}

.tiktok-connect-btn:active {
    transform: translateY(0);
}

.tiktok-connect-btn .icon {
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.tiktok-current-user {
    text-align: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================
   SÉLECTEUR DE PROFILS - PREMIUM MODERN STYLE
   ========================================== */

.sidebar-profile-selector {
    padding: 0 12px 12px 12px;
    margin-bottom: 4px;
}

/* Header cliquable avec flèche */
.profile-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.profile-selector-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #00ff88, #00bcd4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-selector-header:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.profile-selector-header:hover::before {
    opacity: 1;
}

.profile-selector-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.profile-selector-text-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.profile-selector-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

/* Affichage du profil actif dans le header */
.profile-current-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(0, 255, 136, 0.1);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(0, 255, 136, 0.25);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.1);
}

.profile-selector-header:hover .profile-current-display {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.35);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
    transform: scale(1.02);
}

.profile-current-icon {
    font-size: 14px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 255, 136, 0.3));
}

.profile-current-name {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.profile-toggle-arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    line-height: 1;
}

.profile-selector-header:hover .profile-toggle-arrow {
    color: #00ff88;
    transform: scale(1.1);
}

.profile-selector-header.open .profile-toggle-arrow {
    transform: rotate(180deg);
    color: #00ff88;
}

/* Menu déroulant des profils - Smooth Animation */
.profile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.profile-dropdown.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 12px;
}

/* Scrollbar personnalisée pour le dropdown */
.profile-dropdown::-webkit-scrollbar {
    width: 6px;
}

.profile-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.profile-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.profile-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* Liste des profils */
.profile-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
    margin-bottom: 6px;
}

/* Item de profil - Premium Style */
.profile-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1.5px solid transparent;
}

.profile-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #00ff88, #00bcd4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.profile-item:hover::before {
    opacity: 1;
}

.profile-item.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    cursor: default;
    box-shadow: 0 2px 12px rgba(0, 255, 136, 0.15);
}

.profile-item.active::before {
    opacity: 1;
}

.profile-item.active:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(0);
}

/* Radio button personnalisé - Modern */
.profile-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-item:hover .profile-radio {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.profile-item.active .profile-radio {
    border-color: #00ff88;
    background: transparent;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.profile-item.active .profile-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
}

/* Icône emoji du profil - Premium Style */
.profile-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-item:hover .profile-icon {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.15);
}

.profile-item.active .profile-icon {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.3);
    filter: drop-shadow(0 2px 8px rgba(0, 255, 136, 0.3));
}

/* Nom du profil - Enhanced Typography */
.profile-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.profile-item:hover .profile-name {
    color: #fff;
}

.profile-item.active .profile-name {
    color: #fff;
}

/* Badge "Actif" - Modern Pill */
.profile-badge {
    padding: 4px 10px;
    background: #00ff88;
    color: #000;
    font-size: 9px;
    font-weight: 800;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    animation: pulse-green-badge 2s ease-in-out infinite;
}

@keyframes pulse-green-badge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
    }
    50% {
        box-shadow: 0 0 8px 2px rgba(0, 255, 136, 0.3);
    }
}

/* Bouton nouveau profil */
.profile-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-muted, #888);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-add-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    border-style: solid;
    color: var(--accent-color, #ffd700);
    transform: translateY(-1px);
}

.profile-add-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.profile-add-btn .icon {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.profile-add-btn:hover .icon {
    transform: rotate(90deg);
}

/* Animation sur les items de profil */
@keyframes profileItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-item {
    animation: profileItemSlideIn 0.3s ease forwards;
}

.profile-item:nth-child(1) { animation-delay: 0s; }
.profile-item:nth-child(2) { animation-delay: 0.05s; }
.profile-item:nth-child(3) { animation-delay: 0.1s; }
.profile-item:nth-child(4) { animation-delay: 0.15s; }
.profile-item:nth-child(5) { animation-delay: 0.2s; }

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.nav-links li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-secondary, #cccccc);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.nav-link:hover {
    background: var(--bg-hover, #252525);
    color: var(--text-primary, #ffffff);
}

.nav-link.active {
    background: var(--bg-active, #2a2a2a);
    color: var(--accent-color, #ffd700);
    border-left-color: var(--accent-color, #ffd700);
    font-weight: 600;
}

.nav-links .separator {
    height: 1px;
    background: var(--border-color, #2a2a2a);
    margin: 8px 0;
    padding: 0;
}

.nav-link.logout-link {
    color: var(--error-color, #ff4444);
}

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

/* ==========================================
   MENU ACCORDÉON - Sous-menus
   ========================================== */

/* Conteneur parent du menu accordéon */
.nav-parent {
    margin: 0;
}

/* Lien avec icône toggle */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.toggle-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: auto;
    color: var(--text-muted, #888);
}

/* Rotation de l'icône quand ouvert */
.nav-toggle.open .toggle-icon {
    transform: rotate(-180deg);
    color: var(--accent-color, #ffd700);
}

/* Style du lien parent quand un enfant est actif */
.nav-toggle.has-active-child {
    color: var(--accent-color, #ffd700);
}

/* Sous-menu */
.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

/* Sous-menu ouvert */
.nav-submenu.open {
    max-height: 500px;
}

/* Liens dans le sous-menu */
.nav-sublink {
    padding-left: 48px !important;
    font-size: 13px;
    border-left: 3px solid transparent;
}

.nav-sublink:hover {
    background: rgba(255, 215, 0, 0.05);
    color: var(--text-primary, #ffffff);
    padding-left: 50px !important;
}

.nav-sublink.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color, #ffd700);
    border-left-color: var(--accent-color, #ffd700);
    font-weight: 600;
}

/* Zone de contenu principale */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: var(--bg-primary, #0a0a0a);
}

/* Sections de contenu */
.content-section {
    display: none;
    padding: 32px;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section - Page d'accueil */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 255, 136, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 48px 32px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1), transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(0, 255, 136, 0.1), transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0 0 12px 0;
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary, #cccccc);
    margin: 0;
    position: relative;
    z-index: 1;
}

.page-header {
    margin-bottom: 28px;
    width: 100%;
    text-align: center; /* CENTRAGE DU CONTENU */
}

.page-header h1,
.page-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0 0 8px 0;
}

.page-header .subtitle {
    color: var(--text-secondary, #cccccc);
    font-size: 14px;
    margin: 0;
}

/* Widget preview container */
.widget-preview-container {
    background: var(--bg-secondary, #1a1a1a);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--border-color, #2a2a2a);
}

.widget-preview-container iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
    background: #000;
}

/* ==========================================
   MENU HAMBURGER MOBILE
   ========================================== */

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border-color, #2a2a2a);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--bg-hover, #252525);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary, #ffffff);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Animation du hamburger en X */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Overlay sombre quand menu ouvert sur mobile */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

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

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
}

/* Petites tablettes et grands téléphones (600px - 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .content-section {
        padding: 80px 16px 20px 16px; /* Plus d'espace en haut pour le bouton hamburger */
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header .subtitle {
        font-size: 13px;
    }
}

/* Téléphones (max 600px) */
@media (max-width: 600px) {
    .sidebar {
        width: 280px; /* Plus large pour être plus lisible sur mobile */
    }
    
    .sidebar-header h2 {
        font-size: 18px;
    }
    
    .nav-link {
        padding: 16px 20px; /* Plus d'espace pour faciliter le clic */
        font-size: 15px;
    }
    
    .nav-sublink {
        padding-left: 40px !important;
        font-size: 14px;
    }
    
    .content-section {
        padding: 80px 12px 16px 12px;
    }
    
    .page-header {
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    /* Cartes empilées sur mobile */
    .dashboard-grid,
    .cards-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .card {
        width: 100%;
    }
    
    /* Profils sur mobile */
    .profile-item {
        padding: 8px 6px;
        gap: 10px;
    }
    
    .profile-radio {
        width: 18px;
        height: 18px;
    }
    
    .profile-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .profile-name {
        font-size: 13px;
    }
    
    .profile-badge {
        padding: 3px 8px;
        font-size: 9px;
    }
}

/* Très petits téléphones (max 375px) */
@media (max-width: 375px) {
    .sidebar {
        width: 100%; /* Sidebar plein écran sur très petits écrans */
    }
    
    .mobile-menu-toggle {
        top: 12px;
        left: 12px;
        padding: 10px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 14px 16px;
    }
    
    .content-section {
        padding: 70px 8px 12px 8px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    /* Profils sur très petits écrans */
    .sidebar-profile-selector {
        padding: 12px 8px;
    }
    
    .profile-selector-title {
        font-size: 12px;
    }
    
    .profile-selector-badge {
        font-size: 8px;
        padding: 2px 6px;
    }
    
    .profile-item {
        padding: 6px 4px;
        gap: 8px;
    }
    
    .profile-radio {
        width: 16px;
        height: 16px;
    }
    
    .profile-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .profile-name {
        font-size: 12px;
    }
    
    .profile-badge {
        padding: 2px 6px;
        font-size: 8px;
    }
    
    .profile-add-btn {
        padding: 8px;
        font-size: 12px;
    }
}

/* ==========================================
   POPUP DE BIENVENUE
   ========================================== */

.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupFadeIn 0.4s ease;
}

.welcome-popup.hidden {
    display: none;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Backdrop sombre */
.welcome-popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: backdropFadeIn 0.4s ease;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Carte du popup */
.welcome-popup-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%,
        rgba(35, 30, 25, 0.98) 50%,
        rgba(26, 26, 26, 0.98) 100%
    );
    border: 2px solid #FFD700;
    border-radius: 20px;
    padding: 60px 50px;
    max-width: 600px;
    width: 90%;
    box-shadow: 
        0 20px 60px rgba(255, 215, 0, 0.3),
        0 0 80px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 215, 0, 0.3);
    animation: cardSlideUp 0.5s ease;
    overflow: hidden;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Bouton fermer (croix) */
.welcome-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid #FF4444;
    border-radius: 50%;
    color: #FF4444;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.welcome-popup-close:hover {
    background: rgba(255, 68, 68, 0.3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

/* Contenu du popup */
.welcome-popup-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Logo emoji */
.welcome-popup-logo {
    font-size: 80px;
    margin-bottom: 20px;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Titre principal */
.welcome-popup-title {
    font-size: 36px;
    font-weight: 900;
    color: #FFD700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.8);
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.4),
            0 4px 8px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(255, 237, 78, 1),
            0 0 60px rgba(255, 215, 0, 0.6),
            0 4px 8px rgba(0, 0, 0, 0.8);
    }
}

/* Sous-titre */
.welcome-popup-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.3);
    line-height: 1.6;
}

/* Effet de brillance qui traverse */
.welcome-popup-shine {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: shine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* Responsive mobile pour le popup */
@media (max-width: 600px) {
    .welcome-popup-card {
        padding: 50px 30px;
        border-radius: 15px;
    }
    
    .welcome-popup-logo {
        font-size: 60px;
    }
    
    .welcome-popup-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .welcome-popup-subtitle {
        font-size: 15px;
        letter-spacing: 1px;
    }
    
    .welcome-popup-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 400px) {
    .welcome-popup-card {
        padding: 40px 20px;
    }
    
    .welcome-popup-logo {
        font-size: 50px;
    }
    
    .welcome-popup-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .welcome-popup-subtitle {
        font-size: 13px;
    }
}

/* ==========================================
   CHECKBOXES DE SÉLECTION (Actions/Events)
   ========================================== */

.checkbox-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary, #0A84FF);
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:hover {
    opacity: 0.8;
}

/* Ajustement pour les checkboxes dans les tables */
.actions-table-col-actions .checkbox-container,
.events-table-col-actions-btns .checkbox-container {
    margin-right: 4px;
}

/* Responsive pour les checkboxes */
@media (max-width: 480px) {
    .checkbox-container input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}
