/* ============================================
   TEXT-GENERATOR CONTROLS
   Arrow, Range, Number, Reset, Padding, Standalone Arrow
   ============================================ */

/* ========== ARROW OPTIONS ========== */
.arrow-options {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.arrow-btn {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.arrow-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.arrow-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

#arrowDetailsRow,
#arrowDetailsRow2 {
    display: none;
    background: var(--gray-50);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.5rem 0;
}

#arrowDetailsRow .text-input-group {
    flex: 1;
    min-width: 120px;
}

/* ========== RANGE INPUTS ========== */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ========== NUMBER INPUTS ========== */
.num-input {
    width: 55px;
    padding: 0.25rem 0.4rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.num-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.num-input::-webkit-inner-spin-button,
.num-input::-webkit-outer-spin-button {
    opacity: 1;
}

.num-unit {
    font-size: 0.75rem;
    color: var(--gray-500);
    min-width: 20px;
}

/* ========== RESET BUTTON ========== */
.btn-reset {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-reset:hover {
    background: #dc2626;
}

/* ========== PADDING ROW ========== */
.padding-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.padding-group {
    flex: 1;
    min-width: 120px;
}

.padding-group label {
    font-size: 0.75rem;
    color: #6b7280;
}

.padding-group input[type="range"] {
    width: 100%;
}

/* ========== STANDALONE ARROW SECTION ========== */
.standalone-arrow-section {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #e5e7eb;
}

.standalone-arrow-section.visible {
    display: block;
}

.standalone-arrow-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.standalone-arrow-section .section-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #374151;
}

.standalone-arrow-section .section-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
}

.standalone-arrow-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.standalone-arrow-preview {
    min-width: 150px;
    min-height: 60px;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.standalone-arrow-preview svg {
    max-width: 100%;
    max-height: 50px;
}

.standalone-arrow-content .preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
