/**
 * VAT Calculator Styles
 * 부가가치세 계산기 전용 스타일
 *
 * @package Zipper
 */

/* ===== 2컬럼 레이아웃 (데스크탑) ===== */
.vc-main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}

.vc-input-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vc-result-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== 공통 섹션 ===== */
.vc-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

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

.vc-section-title i {
    color: #d4af37;
    font-size: 14px;
}

/* ===== 탭 (일반/간이) ===== */
.vc-tab-group {
    display: flex;
    gap: 4px;
    background: #f5f3f0;
    border-radius: 8px;
    padding: 3px;
}

.vc-tab {
    flex: 1;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #9e9a96;
    cursor: pointer;
    transition: all 0.2s;
}

.vc-tab:hover {
    color: #5f5a56;
}

.vc-tab.active {
    background: #fff;
    color: #d4af37;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.vc-tab-content {
    display: none;
}

.vc-tab-content.active {
    display: block;
}

/* ===== 방향 토글 (부가세 계산/역산) ===== */
.vc-direction-group {
    display: flex;
    gap: 4px;
    background: #f5f3f0;
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 12px;
}

.vc-direction-btn {
    flex: 1;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #9e9a96;
    cursor: pointer;
    transition: all 0.2s;
}

.vc-direction-btn:hover {
    color: #5f5a56;
}

.vc-direction-btn.active {
    background: #fff;
    color: #d4af37;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ===== 입력 그룹 ===== */
.vc-input-group {
    margin-bottom: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.vc-input-group:last-child {
    margin-bottom: 0;
}

.vc-input-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #5f5a56;
    margin-bottom: 6px;
}

.vc-input-label .vc-label-hint {
    font-weight: 400;
    color: #9e9a96;
    margin-left: 4px;
}

.vc-amount-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vc-amount-input:focus {
    outline: none;
    border-color: #d4af37;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.vc-amount-input::placeholder {
    font-weight: 400;
    color: #c4c0bc;
}

.vc-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235f5a56' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.vc-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.vc-korean-amount {
    font-size: 11px;
    color: #d4af37;
    margin-top: 4px;
    text-align: right;
    min-height: 16px;
}

.vc-hint {
    font-size: 11px;
    color: #9e9a96;
    margin-top: 4px;
}

/* ===== 업종 부가가치율 표시 ===== */
.vc-rate-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 10px;
    background: #fdfbf5;
    border: 1px solid #e8dfc0;
    border-radius: 6px;
    font-size: 12px;
    color: #5f5a56;
}

.vc-rate-display strong {
    color: #d4af37;
    font-weight: 700;
}

/* ===== 버튼 ===== */
.vc-btn-group {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.vc-calculate-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #d4af37, #c9a030);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

.vc-calculate-btn:hover {
    background: linear-gradient(135deg, #c9a030, #b8922a);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.vc-reset-btn {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #5f5a56;
    background: #f5f3f0;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.vc-reset-btn:hover {
    background: #eae7e3;
}

/* ===== 결과 - 대기 영역 ===== */
.vc-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #9e9a96;
}

.vc-waiting i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    color: #d4af37;
    opacity: 0.4;
}

.vc-waiting p {
    font-size: 13px;
    margin: 0;
}

/* ===== 결과 - 일반 부가세 결과 카드 ===== */
.vc-general-result {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 20px;
}

.vc-general-result-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-general-result-title i {
    color: #d4af37;
}

.vc-general-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vc-result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #e8e4dc;
    background: #faf9f7;
}

.vc-result-card-label {
    font-size: 13px;
    color: #5f5a56;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-result-card-label i {
    font-size: 14px;
}

.vc-result-card-value {
    font-size: 20px;
    font-weight: 700;
    text-align: right;
}

.vc-result-card.supply {
    border-color: rgba(212, 175, 55, 0.3);
    background: #fdfbf5;
}

.vc-result-card.supply .vc-result-card-label i {
    color: #d4af37;
}

.vc-result-card.supply .vc-result-card-value {
    color: #d4af37;
}

.vc-result-card.vat {
    border-color: rgba(52, 152, 219, 0.3);
    background: #f0f7ff;
}

.vc-result-card.vat .vc-result-card-label i {
    color: #3498db;
}

.vc-result-card.vat .vc-result-card-value {
    color: #3498db;
}

.vc-result-card.total {
    border-color: rgba(39, 174, 96, 0.3);
    background: #f0fff4;
}

.vc-result-card.total .vc-result-card-label i {
    color: #27ae60;
}

.vc-result-card.total .vc-result-card-value {
    color: #27ae60;
}

.vc-result-card-unit {
    font-size: 13px;
    font-weight: 500;
    margin-left: 2px;
}

/* ===== 결과 - 간이과세자 요약 ===== */
.vc-simple-result {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 20px;
}

.vc-simple-result-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-simple-result-title i {
    color: #d4af37;
}

.vc-simple-summary {
    text-align: center;
    padding: 16px;
    background: #fdfbf5;
    border: 2px solid #d4af37;
    border-radius: 12px;
    margin-bottom: 16px;
}

.vc-simple-summary-label {
    font-size: 12px;
    color: #7a756d;
    margin-bottom: 6px;
}

.vc-simple-summary-value {
    font-size: 32px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1.2;
}

.vc-simple-summary-unit {
    font-size: 16px;
    font-weight: 500;
}

/* ===== 간이과세자 상세 행 ===== */
.vc-simple-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vc-simple-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.vc-simple-detail-row:nth-child(odd) {
    background: #faf9f7;
}

.vc-simple-detail-label {
    color: #5f5a56;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-simple-detail-label .vc-detail-op {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.vc-detail-op-multiply {
    background: #fdf5e6;
    color: #d4af37;
}

.vc-detail-op-minus {
    background: #fff0f0;
    color: #e74c3c;
}

.vc-detail-op-equals {
    background: #f0f7ff;
    color: #3498db;
}

.vc-simple-detail-value {
    font-weight: 600;
    color: #2d2a26;
    text-align: right;
}

.vc-simple-detail-row.vc-detail-highlight {
    background: #fdfbf5;
    border: 1px solid #e8dfc0;
}

.vc-simple-detail-row.vc-detail-highlight .vc-simple-detail-value {
    color: #d4af37;
    font-size: 15px;
}

/* ===== 납부면제 뱃지 ===== */
.vc-exempt-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.vc-exempt-badge.exempt {
    background: #f0fff4;
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.vc-exempt-badge.not-exempt {
    background: #fff5f5;
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.vc-exempt-badge i {
    font-size: 14px;
}

.vc-exempt-note {
    font-size: 11px;
    color: #9e9a96;
    margin-top: 6px;
    line-height: 1.5;
}

/* ===== 신고기간 안내 테이블 ===== */
.vc-filing-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
}

.vc-filing-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-filing-title i {
    color: #d4af37;
}

.vc-filing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.vc-filing-table th {
    background: #faf9f7;
    color: #5f5a56;
    font-weight: 600;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e8e4dc;
}

.vc-filing-table td {
    padding: 8px 10px;
    color: #2d2a26;
    border-bottom: 1px solid #f0ede8;
}

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

.vc-filing-table .vc-filing-type {
    font-weight: 600;
    color: #5f5a56;
    white-space: nowrap;
}

/* ===== 2026년 변경사항 ===== */
.vc-changes-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
}

.vc-changes-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vc-changes-title i {
    color: #d4af37;
}

.vc-changes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vc-change-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #faf9f7;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #5f5a56;
}

.vc-change-icon {
    font-size: 14px;
    color: #d4af37;
    flex-shrink: 0;
    margin-top: 1px;
}

.vc-change-text strong {
    color: #2d2a26;
}

/* ===== 면책 조항 ===== */
.vc-disclaimer {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.5;
}

.vc-disclaimer i {
    color: #d4af37;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== 유틸리티 ===== */
.vc-hidden {
    display: none !important;
}

/* ===== 탭 콘텐츠 내부 섹션 간격 ===== */
.vc-tab-content .vc-section + .vc-section {
    margin-top: 14px;
}

.vc-tab-content .vc-btn-group {
    margin-top: 14px;
}

/* ===== 반응형 ===== */
@media (max-width: 900px) {
    .vc-main-layout {
        grid-template-columns: 1fr;
    }

    .vc-input-col {
        position: static;
        width: 100%;
    }

    .vc-result-col {
        width: 100%;
    }

    .vc-input-group input:not([type="radio"]):not([type="checkbox"]),
    .vc-input-group select {
        width: 100% !important;
        max-width: 100% !important;
    }

    .vc-simple-summary-value {
        font-size: 26px;
    }

    .vc-result-card-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .tool-section,
    .tool-layout-split,
    .tool-layout-input,
    .tool-layout-result {
        max-width: 100%;
        overflow-x: hidden;
    }

    .vc-section {
        padding: 12px;
    }

    .vc-general-result,
    .vc-simple-result {
        padding: 14px;
    }

    .vc-simple-summary-value {
        font-size: 22px;
    }

    .vc-result-card-value {
        font-size: 16px;
    }

    .vc-result-card {
        padding: 10px 12px;
    }

    .vc-filing-table {
        font-size: 11px;
    }

    .vc-filing-table th,
    .vc-filing-table td {
        padding: 6px 8px;
    }
}
