/* Calculator Salariu Net/Brut 2026 - seotoolpro.ro */

.sal-calculator {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

/* Toggle Brut/Net */
.sal-toggle-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.sal-toggle-btn {
    flex: 1;
    padding: 12px 0;
    border: 2px solid #7c3aed;
    background: #fff;
    color: #7c3aed;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sal-toggle-btn.active,
.sal-toggle-btn:hover {
    background: #7c3aed;
    color: #fff;
}

/* Input */
.sal-input-group {
    margin-bottom: 20px;
}

.sal-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.sal-input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 18px;
    color: #111827;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

.sal-input-group input:focus {
    border-color: #7c3aed;
}

/* Optiuni */
.sal-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
}

.sal-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sal-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #7c3aed;
    cursor: pointer;
}

.sal-option label {
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}

/* Rezultate */
.sal-results {
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sal-results-title {
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.sal-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.sal-result-card {
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    background: #f3f4f6;
}

.sal-card-green {
    background: #ecfdf5;
}

.sal-card-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.sal-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.sal-card-green .sal-card-value {
    color: #059669;
}

/* Deduceri */
.sal-deduceri {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.sal-deduceri h4 {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sal-angajator-section {
    background: #eff6ff;
}

.sal-deducere-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: 14px;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}

.sal-deducere-row:last-child {
    border-bottom: none;
}

.sal-deducere-total {
    font-weight: 700;
    color: #111827 !important;
    margin-top: 4px;
    padding-top: 10px;
}

.sal-deducere-total span:last-child {
    color: #dc2626;
}

/* Badge */
.sal-badge {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

/* Nota */
.sal-nota {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 16px;
}

/* Reset */
.sal-reset-btn {
    width: 100%;
    padding: 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.sal-reset-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

@media (max-width: 600px) {
    .sal-result-grid,
    .sal-options {
        grid-template-columns: 1fr;
    }

    .sal-card-value {
        font-size: 20px;
    }

    .sal-calculator {
        padding: 18px;
    }
}
