.salary-calc-page {
    max-width: var(--small-width);
    margin: 0 auto;
    padding: 20px;
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.input-card, .result-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.input-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 14px;
    background: #059669;
    border-radius: 2px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    background: white;
}

.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.form-select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    background-color: white;
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.calc-btn {
    flex: 1;
    padding: 12px 24px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.calc-btn:hover {
    background: #047857;
}

.calc-btn:active {
    transform: scale(0.98);
}

.result-header {
    margin-bottom: 20px;
}

.result-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 4px;
}

.result-amount {
    font-size: 36px;
    font-weight: 700;
    color: #059669;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.detail-label {
    font-size: 14px;
    color: #6b7280;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.detail-value.deduction {
    color: #dc2626;
}

.detail-value.deduction.social {
    color: #3b82f6;
}

.detail-value.deduction.tax {
    color: #f59e0b;
}

.detail-value.addition {
    color: #059669;
}

.detail-total {
    background: #f9fafb;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 8px;
}

.detail-total .detail-label {
    font-weight: 600;
    color: #374151;
}

.annual-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-text {
    font-size: 13px;
    color: #6b7280;
}

.tax-table-section {
    margin-top: 32px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tax-table-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.tax-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tax-table th, .tax-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.tax-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.tax-table tr:last-child td {
    border-bottom: none;
}

.tax-table td {
    color: #4b5563;
}

@media (max-width: 768px) {
    .calc-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .btn-row {
        flex-direction: column;
    }

    .result-amount {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .salary-calc-page {
        padding: 12px;
    }

    .input-card, .result-card, .tax-table-section {
        padding: 16px;
    }

    .card-title {
        font-size: 18px;
    }

    .form-input, .form-select {
        padding: 8px 12px;
        font-size: 14px;
    }

    .tax-table th, .tax-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
}