/**
 * Nomo Theme — accent presets + متغيرات CSS
 */

html[data-ui-accent="green"] {
    --accent: #14532d;
    --accent-soft: #e8f5ec;
    --accent2: #0f766e;
}

html[data-ui-accent="blue"] {
    --accent: #1d4ed8;
    --accent-soft: #dbeafe;
    --accent2: #2563eb;
}

html[data-ui-accent="teal"] {
    --accent: #0f766e;
    --accent-soft: #ccfbf1;
    --accent2: #0d9488;
}

html[data-ui-accent="violet"] {
    --accent: #6d28d9;
    --accent-soft: #ede9fe;
    --accent2: #7c3aed;
}

html[data-ui-accent="amber"] {
    --accent: #b45309;
    --accent-soft: #fef3c7;
    --accent2: #d97706;
}

html.nomo-theme-transition,
html.nomo-theme-transition body {
    transition: background-color 0.35s ease, color 0.2s ease;
}

/* معاينة ألوان في الإعدادات */
.ui-accent-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ui-accent-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ui-accent-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ui-accent-swatch {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, border-color 0.2s;
}

.ui-accent-option input:checked + .ui-accent-swatch {
    border-color: var(--text, #0f172a);
    transform: scale(1.08);
}

.ui-accent-option span {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}
