/* Modern szöveg szerkesztő panel stílusok - Horizontal Toolbar */

.text-options-modern {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 12px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.text-options-modern:hover {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

.text-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f3f4f6;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.text-close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.text-editor-header {
    display: none;
}

.text-control-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    vertical-align: middle;
}

.text-control-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.text-control-group label i {
    font-size: 14px;
    color: #ff6600;
}

.modern-select {
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modern-select:hover {
    border-color: #ff6600;
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.1);
}

.modern-select:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.text-control-row {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-right: 20px;
    vertical-align: middle;
}

.flex-1 {
    display: inline-flex;
    align-items: center;
}

.size-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modern-slider {
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff6600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.3);
    transition: transform 0.2s ease;
    border: 2px solid white;
}

.modern-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 6px rgba(255, 102, 0, 0.4);
}

.modern-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff6600;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.3);
}

.size-value {
    font-size: 13px;
    font-weight: 700;
    color: #ff6600;
    min-width: 30px;
    text-align: center;
}

.modern-color-picker {
    width: 50px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modern-color-picker:hover {
    border-color: #ff6600;
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.15);
}

.format-buttons {
    display: inline-flex;
    gap: 6px;
    background: #f9fafb;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.format-btn {
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    background: white;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.format-btn:hover {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
}

.format-btn.active {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
    box-shadow: 0 2px 4px rgba(255, 102, 0, 0.2);
}

.button-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 2px;
}

.modern-textarea {
    flex: 1;
    min-width: 250px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    transition: all 0.2s ease;
    outline: none;
    height: 36px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modern-textarea:hover {
    border-color: #d1d5db;
}

.modern-textarea:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* Alkalmazás gomb eltávolítva - élő frissítés miatt nincs rá szükség */

/* Horizontal layout wrapper */
.text-options-modern > * {
    display: inline-flex;
    vertical-align: middle;
}

/* Mobil reszponzív */
@media (max-width: 900px) {
    .text-options-modern {
        padding: 12px 16px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .text-control-group {
        margin-right: 12px;
    }

    .modern-select {
        min-width: 140px;
    }

    .modern-textarea {
        min-width: 200px;
    }
}
