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

html { color-scheme: dark; }

        .input-field { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 10px 14px; color: white; width: 100%; }

        .var-btn { font-size: 11px; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #e5e7eb; cursor: pointer; }
        .var-btn:hover { background: rgba(255, 107, 53, 0.25); }
        #clip-config.disabled { opacity: 0.5; pointer-events: none; }
        .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; opacity: 0.7; font-weight: bold; }
        .permission-tag .remove:hover { opacity: 1; }
        .discord-preview { background: #313338; border-radius: 8px; padding: 12px; border-left: 4px solid #ff6b35; max-width: 100%; }
        .discord-preview .embed-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
        .discord-preview .embed-desc { font-size: 0.875rem; color: #dbdee1; white-space: pre-wrap; }
        .hint-box { background: rgba(255, 107, 53, 0.1); border: 1px solid rgba(255, 107, 53, 0.28); border-radius: 8px; padding: 12px; font-size: 0.8rem; color: rgba(255,255,255,0.75); }
        .clip-info-wrap { position: relative; display: inline-flex; align-items: center; vertical-align: middle; }
        .clip-info-btn {
            width: 1.35rem; height: 1.35rem; padding: 0; border: none; background: transparent; cursor: help;
            color: rgba(255,255,255,0.4); font-size: 1.05rem; line-height: 1; border-radius: 50%;
            transition: color 0.15s, transform 0.15s;
        }
        .clip-info-wrap:hover .clip-info-btn,
        .clip-info-wrap:focus-within .clip-info-btn { color: #ff6b35; transform: scale(1.08); }
        .clip-info-popover {
            position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
            width: min(520px, calc(100vw - 3rem)); max-height: min(70vh, 480px); overflow-y: auto;
            opacity: 0; visibility: hidden; pointer-events: none;
            transform: translateY(6px); transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
            background: linear-gradient(145deg, rgba(40, 32, 28, 0.98) 0%, rgba(22, 22, 22, 0.98) 100%);
            border: 2px solid rgba(255, 107, 53, 0.7);
            box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 24px rgba(255, 107, 53, 0.15);
            border-radius: 12px; padding: 1.15rem 1.35rem;
        }
        .clip-info-wrap:hover .clip-info-popover,
        .clip-info-wrap:focus-within .clip-info-popover {
            opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
        }
        .clip-info-popover.clip-info-popover--right { left: auto; right: 0; }
        .clip-info-popover h2 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; color: #ffedd5; }
        .clip-info-popover table { width: 100%; font-size: 0.8125rem; border-collapse: collapse; }
        .clip-info-popover th { text-align: left; color: rgba(255,255,255,0.5); font-weight: 600; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
        .clip-info-popover td { padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.88); vertical-align: top; }
        .clip-info-popover th[scope="row"] { color: rgba(255,255,255,0.55); white-space: nowrap; width: 38%; font-weight: 600; }
        .clip-info-popover tr:last-child td { border-bottom: none; }
        .clip-info-popover .flow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; margin: 0.75rem 0 1rem; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
        .clip-info-popover .flow span.step { background: rgba(255, 107, 53, 0.18); border: 1px solid rgba(247, 147, 30, 0.45); padding: 0.25rem 0.6rem; border-radius: 6px; color: #ffedd5; }
        .clip-info-popover .flow i.fa-chevron-right { font-size: 0.65rem; opacity: 0.45; }
        .clip-info-popover .note { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 0.75rem; line-height: 1.45; }
        .time-slider { width: 100%; height: 6px; border-radius: 3px; accent-color: #ff6b35; cursor: pointer; }
        .time-slider-label { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.35rem; }
        .time-slider-value { font-weight: 700; color: #f7931e; font-size: 0.95rem; white-space: nowrap; }
