/**
 * Solo Tab System CSS
 * Fájl: includes/assets/css/shared/solo-tab-system.css
 * A flow-tab-system.css Solo változata – átnevezett prefixekkel,
 * Elementor override-okkal.
 *
 * @version 1.0.0
 */

.solo-settings-wrapper,
.solo-settings-wrapper * {
    box-sizing: border-box;
}

/* ====================================================================
   TAB NAVIGÁCIÓ
   ==================================================================== */

.solo-settings-wrapper .flow-tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    border-bottom: 3px solid #e2e8f0;
    flex-wrap: wrap;
}

.solo-settings-wrapper .flow-tab-btn {
    flex: 1;
    min-width: 130px;
    padding: 13px 18px;
    background: #f8fafc;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: -3px;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0;
}

.solo-settings-wrapper .flow-tab-btn:hover {
    background: #f1f5f9;
    color: #1a2e4a;
    outline: none !important;
    box-shadow: none !important;
}

.solo-settings-wrapper .flow-tab-btn:focus,
.solo-settings-wrapper .flow-tab-btn:focus-visible,
.solo-settings-wrapper .flow-tab-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.solo-settings-wrapper .flow-tab-btn.active {
    background: #fff !important;
    color: #1a2e4a !important;
    border-bottom-color: #1a2e4a !important;
    font-weight: 600;
    outline: none !important;
    box-shadow: none !important;
}

.solo-settings-wrapper .flow-tab-btn .tab-icon {
    font-size: 20px;
}

/* ====================================================================
   TAB TARTALOM
   ==================================================================== */

.solo-settings-wrapper .flow-tab-content-wrapper {
    position: relative;
    min-height: 300px;
}

.solo-settings-wrapper .flow-tab-content {
    display: none;
    animation: soloFadeIn 0.25s ease;
}

.solo-settings-wrapper .flow-tab-content.active {
    display: block;
}

@keyframes soloFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Loading */
.solo-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 14px;
}

/* ====================================================================
   SETTINGS HEADER
   ==================================================================== */

.settings-header {
    margin-bottom: 24px;
}

.settings-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2e4a;
    margin: 0 0 4px;
}

.settings-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* ====================================================================
   CARD BELSŐ STRUKTÚRA
   ==================================================================== */

.solo-card-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.solo-card-section-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a2e4a;
    margin: 0;
}

.solo-card-content { padding: 4px 0; }

.solo-settings-section {
    margin-bottom: 8px;
}

.solo-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a2e4a;
    margin: 0 0 6px;
}

.solo-section-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.6;
}

/* ====================================================================
   INFO MEZŐK (szerkeszthető sorok)
   ==================================================================== */

.solo-info-field {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 16px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
}

.solo-info-field:last-child {
    border-bottom: none;
}

.solo-field-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    padding-top: 2px;
}

.solo-field-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.solo-field-value {
    font-size: 15px;
    color: #1a2e4a;
    font-weight: 500;
}

.solo-empty-value {
    font-style: italic;
    color: #94a3b8;
    font-weight: 400;
}

.solo-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.15s;
    align-self: flex-start;
    margin-top: -2px;
}

.solo-edit-btn:hover { opacity: 1; }

.solo-field-hint {
    font-size: 12px;
    color: #94a3b8;
}

.solo-field-edit-wrapper {
    margin-top: 6px;
}

.solo-field-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* ====================================================================
   RATES TABLE
   ==================================================================== */

.solo-rates-table-wrap { overflow-x: auto; }

.solo-rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.solo-rates-table th {
    background: #f8fafc;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    font-size: 13px;
}

.solo-rates-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.solo-rate-source {
    font-size: 12px;
    color: #64748b;
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */

@media (max-width: 640px) {
    .solo-settings-wrapper .flow-tab-nav {
        flex-direction: column;
        gap: 0;
    }

    .solo-settings-wrapper .flow-tab-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border-bottom: 1px solid #e2e8f0;
        border-left: 3px solid transparent;
        margin-bottom: 0;
    }

    .solo-settings-wrapper .flow-tab-btn.active {
        border-bottom-color: #e2e8f0 !important;
        border-left-color: #1a2e4a !important;
    }

    .solo-info-field {
        grid-template-columns: 1fr;
    }
}