﻿/*Good*/
/* ===== BRAND MANAGEMENT STYLES ===== */

/* Container principal */
.brand-management {
    margin: 0 auto;
    padding: 0;
    margin-top: 20px;
}

/* Header avec titre et bouton d'action */
.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    width:100%;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ===== STYLES SPÉCIFIQUES POUR LES MODALS DE MARQUES ===== */

/* Warning pour modal de suppression */
.delete-warning {
    text-align: center;
    padding: var(--spacing-lg);
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.warning-message {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.warning-subtext {
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 600;
}


/* ===== SLIDER & BRANDS SECTION ===== */

.brands-main-section {
}

/* Slider container */
.brands-container {
    position: relative;
}


.brands-slider-wrapper {
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}
.brands-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.brands-slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* Contrôles du slider */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

    .slider-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    }

    .slider-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
    }

.slider-indicators {
    display: flex;
    gap: 8px;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .slider-indicator.active {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        transform: scale(1.2);
    }

    .slider-indicator:hover {
        background: #94a3b8;
    }

    .slider-indicator.active:hover {
        background: linear-gradient(135deg, #2563eb, #1e40af);
    }

/* Stats */
.brands-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    justify-content: center;
}

.stat-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #0ea5e9;
    min-width: 120px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #0c4a6e;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #0369a1;
    font-weight: 500;
}

/* Grille des marques */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    min-width: 100%;
}

.brand-card {
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease forwards;
}

    .brand-card:hover {
        border-color: #3b82f6;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .brand-card.editing {
        border-color: #10b981;
        background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    }

.brand-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.brand-actions {
    display: flex;
    gap: 8px;
}

.brand-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

    .brand-description.no-description {
        font-style: italic;
        opacity: 0.7;
    }

.brand-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #9ca3af;
}

.brand-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.empty-description {
    font-size: 16px;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation du slider */
.brands-slider {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animation d'apparition des cartes */
.brand-card {
    opacity: 0;
    animation: slideInCard 0.6s ease forwards;
}

    .brand-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .brand-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .brand-card:nth-child(3) {
        animation-delay: 0.3s;
    }



@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Effet de survol amélioré pour les cartes */
.brand-card {
    position: relative;
    overflow: hidden;
}

    .brand-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
        transition: left 0.5s;
    }

    .brand-card:hover::before {
        left: 100%;
    }

/* Amélioration des indicateurs du slider */
.slider-indicators {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Style pour les boutons du slider avec des états améliorés */
.slider-btn {
    position: relative;
    overflow: hidden;
}

    .slider-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transition: all 0.3s ease;
        transform: translate(-50%, -50%);
    }

    .slider-btn:hover:not(:disabled)::before {
        width: 100%;
        height: 100%;
    }

/* Amélioration de l'état vide */
.empty-state {
    position: relative;
    padding: 80px 20px;
}

    .empty-state::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
        border-radius: 16px;
        pointer-events: none;
    }

.empty-icon {
    position: relative;
    z-index: 1;
}

.empty-title,
.empty-description,
.btn-create-first {
    position: relative;
    z-index: 1;
}

/* Amélioration de l'accessibilité */
.slider-btn:focus,
.slider-indicator:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Transition fluide pour les changements d'état */
.brand-card.editing {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* États hover améliorés */
.brand-card:hover .brand-name {
    color: #3b82f6;
}

.brand-card.editing .brand-name {
    color: #059669;
}

/* Amélioration du contraste pour l'accessibilité */
.brand-description.no-description {
    color: #9ca3af;
}

.brand-meta {
    font-weight: 500;
}

/* Animation de pulse pour les éléments en cours de modification */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.brand-card.editing .brand-name {
    animation: pulse 2s infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .brands-main-section {
        padding: 20px;
    }

    .brands-stats {
        justify-content: center;
    }
}
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}
@media (max-width: 768px) {
    .brand-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .brand-title {
        justify-content: center;
        font-size: 24px;
    }

    .brands-grid {
        grid-template-columns: 1fr;
    }

    .brands-stats {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .stat-card {
        text-align: center;
    }

    .brands-main-section {
        padding: 16px;
    }

    .slider-controls {
        flex-direction: column;
        gap: 16px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .brand-management {
        padding: 0 10px;
    }

    .brand-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .brand-title {
        font-size: 20px;
    }

    .brand-icon {
        width: 28px;
        height: 28px;
    }

    .brand-card {
        padding: 16px;
    }

    .brand-card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .brand-actions {
        align-self: flex-end;
    }

    .slider-controls {
        margin-top: 16px;
    }

 
}

/* Optimisation pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .slider-btn,
    .slider-indicator {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
/* Settings specific styles - complément au CSS existant */

.settings-section {
    padding: 0;
}

.setting-group {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.setting-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

    .setting-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #1f2937;
    }

    .setting-header p {
        margin: 8px 0 0 0;
        color: #6b7280;
        font-size: 14px;
    }

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
}

    .setting-item:last-child {
        border-bottom: none;
    }

.setting-info {
    flex: 1;
}

    .setting-info label {
        display: block;
        font-weight: 600;
        color: #374151;
        margin-bottom: 4px;
    }

    .setting-info .setting-description {
        color: #6b7280;
        font-size: 14px;
        margin: 0;
    }

.setting-control {
    margin-left: 20px;
}

.setting-select {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 14px;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .setting-select:hover {
        border-color: #3b82f6;
    }

    .setting-select:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }

/* Theme Selector */
.theme-selector {
    display: flex;
    gap: 12px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

    .theme-option:hover {
        border-color: #3b82f6;
        transform: translateY(-2px);
    }

    .theme-option.active {
        border-color: #3b82f6;
        background: linear-gradient(135deg, #eff6ff, #dbeafe);
    }

    .theme-option svg {
        stroke: #6b7280;
    }

    .theme-option.active svg {
        stroke: #3b82f6;
    }

    .theme-option span {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
    }

/* View Selector */
.view-selector {
    display: flex;
    gap: 12px;
}

.view-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .view-option:hover {
        border-color: #3b82f6;
    }

    .view-option.active {
        border-color: #3b82f6;
        background: linear-gradient(135deg, #eff6ff, #dbeafe);
        color: #3b82f6;
    }

    .view-option svg {
        stroke: #6b7280;
    }

    .view-option.active svg {
        stroke: #3b82f6;
    }

/* Toolbar Preview */
.toolbar-preview {
    margin: 24px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

    .toolbar-preview h4 {
        margin: 0 0 16px 0;
        font-size: 16px;
        color: #374151;
    }

.toolbar-demo {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-item-demo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .toolbar-item-demo svg {
        stroke: #3b82f6;
    }

    .toolbar-item-demo span {
        font-size: 14px;
        font-weight: 500;
        color: #374151;
    }

/* Quick Actions Config */
.quick-actions-config {
    margin-top: 24px;
}

    .quick-actions-config > h4 {
        margin: 0 0 8px 0;
        font-size: 16px;
        color: #374151;
    }

    .quick-actions-config > p {
        margin: 0 0 20px 0;
        color: #6b7280;
        font-size: 14px;
    }

.action-category {
    margin-bottom: 24px;
}

    .action-category h5 {
        margin: 0 0 12px 0;
        font-size: 14px;
        font-weight: 700;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

    .action-item:hover {
        border-color: #3b82f6;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    }

.action-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

    .action-item-info svg {
        stroke: #3b82f6;
        flex-shrink: 0;
    }

    .action-item-info label {
        display: block;
        font-weight: 600;
        color: #374151;
        margin: 0 0 4px 0;
    }

    .action-item-info p {
        margin: 0;
        font-size: 13px;
        color: #6b7280;
    }

/* Tutorial Progress */
.tutorial-progress {
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
}

    .tutorial-progress h4 {
        margin: 0 0 20px 0;
        font-size: 18px;
        color: #1e40af;
    }

.progress-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.progress-item {
    text-align: center;
}

.progress-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
}

.progress-details p {
    margin: 0;
    font-size: 16px;
    color: #1e40af;
}

.progress-details strong {
    font-size: 24px;
}

.tutorial-actions {
    margin-top: 24px;
}

/* Settings Actions */
.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .setting-control {
        margin-left: 0;
        width: 100%;
    }

    .setting-select {
        width: 100%;
    }

    .theme-selector,
    .view-selector {
        width: 100%;
    }

    .theme-option,
    .view-option {
        flex: 1;
    }

    .progress-stats {
        flex-direction: column;
        gap: 16px;
    }

    .settings-actions {
        flex-direction: column;
    }

        .settings-actions .btn {
            width: 100%;
        }
}
/*settings*/
/* Settings container layout */
.settings-container {
    display: flex;
    gap: 24px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.settings-nav {
    width: 260px;
    background-color: #f8f8f8;
    padding: 20px 0;
    border-right: 1px solid #eee;
    flex-shrink: 0;
}

.settings-content {
    flex: 1;
    padding: 24px;
    max-width: calc(100% - 260px);
    position: relative;
    overflow: hidden;
}

/* Navigation styles */
.nav-item-settings {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .nav-item-settings:hover {
        background-color: #f0f0f0;
        color: #2196F3;
    }

    .nav-item-settings.active {
        background-color: #e3f2fd;
        color: #2196F3;
        border-left-color: #2196F3;
    }

.nav-icon-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-text-settings {
    font-size: 15px;
    font-weight: 500;
}

/* Section header */
.section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

    .section-header h2 {
        font-size: 24px;
        color: #333;
        margin-bottom: 8px;
    }

.section-description {
    color: #666;
    font-size: 14px;
}


/* Responsive styles */
@media (max-width: 992px) {
    .settings-container {
        flex-direction: column;
    }

    .settings-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        display: flex;
        overflow-x: auto;
        padding: 0;
    }

    .nav-item-settings {
        padding: 12px 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

        .nav-item-settings.active {
            border-left-color: transparent;
            border-bottom-color: #2196F3;
        }

    .settings-content {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .settings-nav {
        padding: 0;
    }

    .nav-item-settings {
        padding: 10px 12px;
        font-size: 13px;
    }

    .nav-icon-settings {
        width: 20px;
        height: 20px;
    }

    .settings-content {
        padding: 16px;
    }
}
/* Navigation secondaire horizontale pour UserSettings */
.subsettings-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
}

.subsetting-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .subsetting-tab:hover {
        border-color: #3b82f6;
        color: #3b82f6;
        transform: translateY(-1px);
    }

    .subsetting-tab.active {
        background: linear-gradient(135deg, #eff6ff, #dbeafe);
        border-color: #3b82f6;
        color: #3b82f6;
    }

    .subsetting-tab svg {
        flex-shrink: 0;
    }

.user-settings-wrapper {
    width: 100%;
}

@media (max-width: 768px) {
    .subsettings-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
    }

    .subsetting-tab {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 13px;
    }
}
/* ==========================================
   TOOLBAR PREVIEW & CUSTOMIZATION
   ========================================== */

.toolbar-preview {
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.toolbar-preview-header {
    margin-bottom: 20px;
}

    .toolbar-preview-header h4 {
        margin: 0 0 8px 0;
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
    }

    .toolbar-preview-header p {
        margin: 0;
        color: #6b7280;
        font-size: 14px;
    }

/* Toolbar Demo Container */
.toolbar-demo {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
    min-height: 120px;
    align-items: flex-start;
}

/* Wrapper pour chaque bouton (drag & drop) */
.toolbar-button-wrapper {
    position: relative;
    cursor: move;
    transition: transform 0.2s ease;
}

    .toolbar-button-wrapper:active {
        transform: scale(1.05);
        z-index: 1000;
    }

/* Bouton de la toolbar */
.toolbar-item-demo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    min-width: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .toolbar-item-demo:hover {
        border-color: #3b82f6;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    }

    /* Bouton personnalisé avec couleur */
    .toolbar-item-demo.custom {
        border-color: var(--custom-color, #3b82f6);
        background: linear-gradient(135deg, white, rgba(59, 130, 246, 0.05));
    }

/* Partie principale du bouton (icône + label) */
.toolbar-item-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

    .toolbar-item-main:hover {
        background: rgba(59, 130, 246, 0.1);
    }

    .toolbar-item-main svg {
        stroke: #3b82f6;
        flex-shrink: 0;
    }

    .toolbar-item-main span {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        text-align: center;
        white-space: nowrap;
    }

/* Actions du bouton (éditer, déplacer, supprimer) */
.toolbar-item-actions {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.toolbar-item-demo:hover .toolbar-item-actions {
    opacity: 1;
}

.toolbar-action-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .toolbar-action-btn:hover {
        transform: scale(1.1);
    }

    .toolbar-action-btn.edit {
        background: #06b6d4;
    }

        .toolbar-action-btn.edit:hover {
            background: #0891b2;
        }

    .toolbar-action-btn.drag {
        background: #6b7280;
        cursor: move;
    }

        .toolbar-action-btn.drag:hover {
            background: #4b5563;
        }

    .toolbar-action-btn.delete {
        background: #ef4444;
    }

        .toolbar-action-btn.delete:hover {
            background: #dc2626;
        }

    .toolbar-action-btn svg {
        stroke: white;
    }

/* Menu déroulant des quick actions */
.quick-actions-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
    min-width: 200px;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

    .quick-action-item:last-child {
        border-bottom: none;
    }

    .quick-action-item:hover {
        background: #f9fafb;
    }

    .quick-action-item svg {
        stroke: #6b7280;
        flex-shrink: 0;
    }

    .quick-action-item span {
        font-size: 14px;
        font-weight: 500;
        color: #374151;
    }

/* Bouton "Ajouter raccourci" */
.toolbar-add-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 2px dashed #3b82f6;
    border-radius: 10px;
    min-width: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #3b82f6;
}

    .toolbar-add-button:hover {
        background: linear-gradient(135deg, #eff6ff, #dbeafe);
        border-color: #2563eb;
        transform: translateY(-2px);
    }

    .toolbar-add-button svg {
        stroke: #3b82f6;
    }

    .toolbar-add-button span {
        font-size: 13px;
        font-weight: 600;
        text-align: center;
    }

/* Aide en bas de la toolbar */
.toolbar-help {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #eff6ff;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

    .toolbar-help svg {
        stroke: #3b82f6;
        flex-shrink: 0;
    }

    .toolbar-help span {
        font-size: 13px;
        color: #1e40af;
    }

/* ==========================================
   MODAL CUSTOM SHORTCUT
   ========================================== */

.custom-shortcut-modal {
    max-width: 600px;
    width: 90%;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-weight: 600;
        color: #374151;
        margin-bottom: 8px;
        font-size: 14px;
    }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

/* Sélecteur d'icônes */
.icon-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
}

.icon-option {
    width: 60px;
    height: 60px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .icon-option:hover {
        border-color: #3b82f6;
        transform: translateY(-2px);
    }

    .icon-option.selected {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

    .icon-option svg {
        stroke: #6b7280;
    }

    .icon-option.selected svg {
        stroke: #3b82f6;
    }

/* Sélecteur de couleurs */
.color-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 48px;
    height: 48px;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

    .color-option:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .color-option.selected {
        border-color: white;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
        transform: scale(1.1);
    }

        .color-option.selected::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-weight: 700;
            font-size: 20px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .toolbar-demo {
        padding: 16px;
        gap: 8px;
    }

    .toolbar-item-demo {
        min-width: 80px;
        padding: 10px 12px;
    }

    .toolbar-item-main span {
        font-size: 12px;
    }

    .toolbar-add-button {
        min-width: 80px;
    }

    .quick-actions-menu {
        min-width: 180px;
        left: 0;
        transform: none;
    }

    .icon-selector {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .icon-option {
        width: 50px;
        height: 50px;
    }

    .color-option {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .toolbar-preview {
        padding: 16px;
    }

    .toolbar-demo {
        padding: 12px;
    }

    .toolbar-item-demo {
        min-width: 70px;
        padding: 8px;
    }

    .toolbar-help {
        padding: 10px 12px;
    }

        .toolbar-help span {
            font-size: 12px;
        }

    .custom-shortcut-modal {
        width: 95%;
        max-width: none;
    }

    .icon-selector {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 8px;
    }

    .icon-option {
        width: 45px;
        height: 45px;
    }
}

/* ==========================================
   ANIMATIONS SUPPLÉMENTAIRES
   ========================================== */

/* Animation pour le drag & drop */
.toolbar-button-wrapper.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.toolbar-button-wrapper.drag-over {
    transform: translateX(10px);
}

/* Animation pour l'ajout d'un nouveau bouton */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.toolbar-item-demo.newly-added {
    animation: fadeInScale 0.4s ease;
}

/* Effet de pulsation pour le bouton "Ajouter" */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.toolbar-add-button:hover {
    animation: pulse 1s infinite;
}

/* État de survol avec couleur personnalisée */
.toolbar-item-demo[style*="--custom-color"] {
    border-color: var(--custom-color);
}

    .toolbar-item-demo[style*="--custom-color"] .toolbar-item-main svg {
        stroke: var(--custom-color);
    }

/* ==========================================
   ÉTATS SPÉCIAUX
   ========================================== */

/* Bouton désactivé */
.toolbar-item-demo.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

    .toolbar-item-demo.disabled:hover {
        transform: none;
        border-color: #e5e7eb;
    }

/* Bouton en cours de modification */
.toolbar-item-demo.editing {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Indicateur de glissement */
.toolbar-demo.drag-active {
    border-color: #3b82f6;
}

/* ==========================================
   ACCESSIBILITÉ
   ========================================== */

.toolbar-item-demo:focus-visible,
.toolbar-add-button:focus-visible,
.toolbar-action-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .toolbar-preview {
        border-color: #374151;
    }

    .toolbar-demo {
        border-color: black;
    }

    .toolbar-item-demo {
        border-color: black;
    }

    .toolbar-item-main span {
        color: black;
    }

    .quick-actions-menu {
    }

    .quick-action-item {
    }

        .quick-action-item:hover {
        }

    .toolbar-help {
    }

        .toolbar-help span {
            color: #93c5fd;
        }
}