/* chatbot-commands — styles page (migration DA, ne pas dupliquer la coque) */

.input-field.border-red-500 {
            border-color: #ef4444 !important;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
        }

        .input-field.border-red-500:focus {
            border-color: #ef4444 !important;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
        }

        /* Style pour les tags de permissions */
        .permissions-tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
            min-height: 32px;
        }

        .permission-tag {
            background: rgba(255, 107, 53, 0.2);
            border: 1px solid #ff6b35;
            color: white;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 13px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .permission-tag .remove {
            cursor: pointer;
            color: rgba(255, 255, 255, 0.7);
            font-size: 18px;
            line-height: 1;
            font-weight: bold;
            transition: color 0.2s ease;
        }

        .permission-tag .remove:hover {
            color: white;
        }

        .command-card {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            transition: all 0.3s ease;
        }

        .command-card:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }

        .status-active {
            background: linear-gradient(135deg, #ff6b35, #f7931e);
        }

        .status-inactive {
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }

        .cooldown-badge {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
        }

        .perso-badge {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            font-size: 10px;
            padding: 4px 8px;
            border-radius: 12px;
            text-transform: uppercase;
            font-weight: 700;
            color: white;
        }

        #search-input:focus {
            outline: none;
            border-color: #ff6b35;
            box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
        }

        /* Toggle module */
        .module-toggle {
            position: relative;
            width: 90px;
            height: 36px;
            border-radius: 18px;
            background: #374151;
            border: 1px solid rgba(255,255,255,0.15);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            padding: 4px;
            transition: all 0.25s ease;
        }
        .module-toggle.on {
            background: linear-gradient(135deg, #ff6b35, #f7931e);
            box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
        }
        .module-toggle .thumb {
            width: 28px;
            height: 28px;
            background: white;
            border-radius: 14px;
            transform: translateX(0);
            transition: transform 0.25s ease;
            box-shadow: 0 4px 10px rgba(0,0,0,0.25);
        }
        .module-toggle.on .thumb {
            transform: translateX(54px);
        }
        .module-toggle .labels {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 10px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            color: rgba(255,255,255,0.85);
            pointer-events: none;
        }

        /* Styles pour les onglets */
        .tab-container {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            flex-wrap: wrap;
            border-bottom: 2px solid rgba(255, 107, 53, 0.2);
            padding-bottom: 8px;
        }

        .tab-button {
            padding: 12px 24px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px 8px 0 0;
            color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
        }

        .tab-button:hover {
            background: rgba(255, 107, 53, 0.1);
            color: rgba(255, 255, 255, 0.8);
        }

        .tab-button.active {
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            color: white;
            border-color: #ff6b35;
            border-bottom-color: transparent;
            box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
        }

        /* Boutons de déclenchement sonore */
        .sound-trigger-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 12px;
            color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .sound-trigger-btn:hover {
            background: rgba(255, 107, 53, 0.1);
            color: rgba(255, 255, 255, 0.8);
        }

        .sound-trigger-btn.active {
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            color: white;
            border-color: #ff6b35;
        }

        /* Tuiles rétractables */

        .collapsible-header:hover {
            opacity: 0.8;
        }

        .collapsible-header h2,
        .collapsible-header h3 {
            margin-bottom: 0 !important;
        }

        .collapsible-content.open {
            max-height: 2000px;
            opacity: 1;
            padding-top: 1.5rem;
        }

        /* Réduire le padding de la card quand la tuile est fermée */
        .glass-card:has(.collapsible-header:not(.open)) {
            padding-bottom: 1rem;
        }

        .glass-card:has(.collapsible-header.open) {
            padding-bottom: 2rem;
        }

        /* Zone désactivée */
        #module-content.module-disabled {
            opacity: 0.45;
            filter: grayscale(1);
            pointer-events: none;
            user-select: none;
        }
        #module-disabled-banner {
            background: rgba(239, 68, 68, 0.12);
            border: 1px solid rgba(239, 68, 68, 0.25);
            color: #fecaca;
            border-radius: 10px;
            padding: 12px 14px;
            display: none;
        }
        #module-disabled-banner.active {
            display: flex;
            align-items: center;
            gap: 10px;
        }
