/* 기본 스타일 */
#salaryCalculator {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 탭 스타일 */
.calculator-type {
    display: flex;
    gap: 1px;
    background: #e9ecef;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 30px;
    max-width: 600px;
}

.type-btn {
    flex: 1;
    padding: 14px 30px;
    border: none;
    background: #e9ecef;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.type-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.type-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.type-btn.active {
    background: #fff;
    color: #2A395A;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 안내 박스 */
.notice-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 20px 24px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.salary-info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 20px 24px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.notice-box ul, .salary-info-box ul {
    margin: 10px 0 0 20px;
    line-height: 1.7;
}

.notice-box li {
    color: #e65100;
}

.salary-info-box li {
    color: #0d47a1;
}

/* 입력 폼 */
.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.input-group label {
    width: 200px;
    color: #495057;
    font-weight: 500;
    text-align: right;
    padding-right: 24px;
    white-space: nowrap;
}

.input-group input {
    width: 300px;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #2A395A;
    box-shadow: 0 0 0 3px rgba(42, 57, 90, 0.1);
}

/* 체크박스 그룹 */
.checkbox-wrapper {
    display: flex;
    margin: 30px 0;
    padding-left: 200px;
    gap: 40px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 계산 버튼 */
#calculateSalary {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    padding: 16px;
    background: #2A395A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

#calculateSalary:hover {
    background: #1e2a43;
}

/* 결과 영역 */
#salaryResult {
    margin-top: 30px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    line-height: 1.6;
}

.salary-details {
    display: grid;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.salary-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.salary-item .value {
    font-weight: 600;
    color: #2A395A;
}

/* 계산 기준 스타일 추가 */
.salary-info {
    margin-top: 24px;
    padding: 20px;
    background: #edf2ff;
    border-radius: 8px;
    border-left: 4px solid #4263eb;
}

.salary-info p {
    color: #364fc7;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
}

.salary-info ul {
    display: grid;
    gap: 8px;
}

.salary-info li {
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.salary-info li::before {
    content: "•";
    color: #4263eb;
    font-weight: bold;
}

/* 보험 상세 내역 */
.insurance-details {
    margin-top: 24px;
    background: #f1f3f7;
    border-radius: 8px;
    padding: 20px;
}

.insurance-details h4 {
    color: #2A395A;
    margin-bottom: 16px;
    font-weight: 600;
}

.insurance-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.insurance-item:last-child {
    border-bottom: none;
}

.deduction-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #2A395A;
}

.net-salary {
    margin-top: 16px;
    padding: 16px;
    background: #e8f5e9;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #2e7d32;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    #salaryCalculator {
        padding: 20px;
    }

    .input-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .input-group label {
        width: 100%;
        text-align: left;
        padding-right: 0;
    }

    .input-group input {
        width: 100%;
    }

    .checkbox-wrapper {
        flex-direction: column;
        padding-left: 0;
        gap: 16px;
    }

    .salary-item {
        flex-direction: column;
        gap: 8px;
    }

    .salary-info li {
        padding-right: 10px;
    }
    
    .insurance-item, .deduction-total, .net-salary {
        flex-direction: column;
        gap: 4px;
    }
} 