/* Style Controls in Modal */
.style-controls {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.control-row {
    display: flex;
    gap: 1.5rem;
}

.control-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Inputs & Selects */
select,
input[type="number"] {
    padding: 0.6rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
}

select:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
}

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 0.4rem;
    border-radius: 6px;
}

input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    background: none;
    cursor: pointer;
    border-radius: 4px;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
    border: 1px solid var(--border);
}

#colorValue {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Style Toggles (Bold/Italic/Alignment) */
.style-toggles {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.style-toggles.unified {
    flex-wrap: wrap;
}

.style-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 0.25rem;
}

.style-toggle input {
    display: none;
}

.style-toggle .toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.style-toggle .toggle-btn.italic {
    font-style: italic;
    font-weight: normal;
    font-family: serif;
}

.style-toggle input:checked+.toggle-btn {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.style-toggle .toggle-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Alignment Toggles */
.align-toggles {
    display: flex;
    gap: 0.5rem;
}

.align-toggle input {
    display: none;
}

.align-toggle .toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.align-toggle .toggle-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.align-toggle input:checked+.toggle-btn {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.align-toggle .toggle-btn svg {
    width: 16px;
    height: 16px;
}