/* ============================================
   Minimum Wage Calculator (최저시급 계산기)
   Prefix: mwc
   ============================================ */

/* Layout */
.mwc-main-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.mwc-input-col {
    display: flex;
    flex-direction: column;
}
.mwc-result-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Tabs */
.mwc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #f5f3f0;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 4px;
}
.mwc-tab {
    padding: 11px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #7a756d;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.mwc-tab:hover { color: #2d2a26; background: rgba(255,255,255,0.5); }
.mwc-tab.active {
    background: #fff;
    color: #2d2a26;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Tab Content */
.mwc-tab-content { display: none; }
.mwc-tab-content.active { display: block; }

/* Sections */
.mwc-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}
.mwc-section + .mwc-section { margin-top: 14px; }
.mwc-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 14px;
}
.mwc-section-title i { color: #d4af37; }

/* Input Groups */
.mwc-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
    box-sizing: border-box;
}
.mwc-input-group + .mwc-input-group { margin-top: 12px; }
.mwc-input-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a4640;
}
.mwc-amount-input,
.mwc-number-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 11px 12px;
    font-size: 15px;
    border: 1px solid #e0dcd4;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.mwc-amount-input:focus,
.mwc-number-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}
.mwc-korean-amount {
    font-size: 12px;
    color: #d4af37;
    min-height: 16px;
    padding-left: 2px;
}
.mwc-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 11px 12px;
    font-size: 15px;
    border: 1px solid #e0dcd4;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
    cursor: pointer;
    outline: none;
}
.mwc-select:focus { border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212,175,55,0.1); }

/* Preset Buttons */
.mwc-preset-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.mwc-preset-btn {
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 500;
    color: #7a756d;
    background: #faf8f5;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}
.mwc-preset-btn:hover { border-color: #d4af37; color: #d4af37; }
.mwc-preset-btn.active {
    background: rgba(212,175,55,0.1);
    border-color: #d4af37;
    color: #b8860b;
    font-weight: 600;
}

/* Radio Group */
.mwc-radio-group {
    display: flex;
    gap: 8px;
}
.mwc-radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #4a4640;
    background: #faf8f5;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.mwc-radio-label:hover { border-color: #d4af37; }
.mwc-radio-label.active {
    background: rgba(212,175,55,0.08);
    border-color: #d4af37;
    color: #2d2a26;
    font-weight: 600;
}
.mwc-radio-label input[type="radio"] { width: 16px; height: 16px; accent-color: #d4af37; }

/* Checkbox */
.mwc-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mwc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #4a4640;
    background: #faf8f5;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.mwc-checkbox-label:hover { border-color: #d4af37; }
.mwc-checkbox-label.active {
    background: rgba(212,175,55,0.08);
    border-color: #d4af37;
}
.mwc-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: #d4af37; }
.mwc-hint {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 2px;
}

/* Buttons */
.mwc-btn-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 14px;
}
.mwc-calculate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}
.mwc-calculate-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,175,55,0.3); }
.mwc-calculate-btn:active { transform: translateY(0); }
.mwc-reset-btn {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #7a756d;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.mwc-reset-btn:hover { background: #faf8f5; border-color: #d4af37; }

/* Waiting */
.mwc-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: #b0a99e;
}
.mwc-waiting i { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.mwc-waiting p { font-size: 14px; line-height: 1.6; margin: 0; }

/* Result Summary */
.mwc-result-summary {
    background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(184,134,11,0.05));
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}
.mwc-summary-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #b8860b;
    background: rgba(212,175,55,0.15);
    border-radius: 20px;
    margin-bottom: 8px;
}
.mwc-summary-main {
    font-size: 42px;
    font-weight: 800;
    color: #d4af37;
    line-height: 1.2;
    margin-bottom: 4px;
}
.mwc-summary-unit { font-size: 20px; font-weight: 600; }
.mwc-summary-sub {
    font-size: 13px;
    color: #7a756d;
    margin-bottom: 12px;
}
.mwc-summary-divider {
    height: 1px;
    background: rgba(212,175,55,0.2);
    margin: 12px 0;
}
.mwc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}
.mwc-summary-row-label { color: #7a756d; }
.mwc-summary-row-value { font-weight: 600; color: #2d2a26; }

/* Detail Cards */
.mwc-detail-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.mwc-detail-card {
    background: #faf8f5;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.mwc-detail-card.highlight {
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(184,134,11,0.03));
    border-color: rgba(212,175,55,0.3);
}
.mwc-detail-label {
    font-size: 12px;
    color: #7a756d;
    margin-bottom: 6px;
}
.mwc-detail-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
}
.mwc-unit { font-size: 13px; font-weight: 500; color: #7a756d; }

/* Deduction Section */
.mwc-deduction-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
}
.mwc-deduction-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
}
.mwc-deduction-title i { color: #e74c3c; }
.mwc-deduction-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mwc-deduction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.mwc-deduction-label { color: #7a756d; }
.mwc-deduction-rate { font-size: 11px; color: #b0a99e; margin-left: 4px; }
.mwc-deduction-value { font-weight: 600; color: #e74c3c; }
.mwc-deduction-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid #e8e4dc;
    font-size: 14px;
    font-weight: 700;
}
.mwc-deduction-total-label { color: #2d2a26; }
.mwc-deduction-total-value { color: #e74c3c; }

/* Charts */
.mwc-chart-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}
.mwc-chart-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
}
.mwc-chart-title i { color: #d4af37; }
.mwc-donut-wrap {
    position: relative;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 12px;
}
.mwc-chart-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
}
.mwc-legend-item { display: flex; align-items: center; gap: 6px; }
.mwc-legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.mwc-dot-net { background: #d4af37; }
.mwc-dot-deduction { background: #e74c3c; }
.mwc-bar-wrap {
    position: relative;
    width: 100%;
    height: 250px;
}
.mwc-bar-wrap canvas { max-height: 250px; }

/* Compliance Card */
.mwc-compliance-card {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.mwc-compliance-card.pass {
    background: linear-gradient(135deg, rgba(39,174,96,0.1), rgba(39,174,96,0.03));
    border: 1px solid rgba(39,174,96,0.3);
}
.mwc-compliance-card.fail {
    background: linear-gradient(135deg, rgba(231,76,60,0.1), rgba(231,76,60,0.03));
    border: 1px solid rgba(231,76,60,0.3);
}
.mwc-compliance-icon { font-size: 36px; margin-bottom: 8px; }
.mwc-compliance-card.pass .mwc-compliance-icon { color: #27ae60; }
.mwc-compliance-card.fail .mwc-compliance-icon { color: #e74c3c; }
.mwc-compliance-status { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.mwc-compliance-card.pass .mwc-compliance-status { color: #27ae60; }
.mwc-compliance-card.fail .mwc-compliance-status { color: #e74c3c; }
.mwc-compliance-detail { font-size: 13px; color: #7a756d; line-height: 1.5; }

/* Year Table */
.mwc-year-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
}
.mwc-year-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
}
.mwc-year-title i { color: #d4af37; }
.mwc-year-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.mwc-year-table th {
    padding: 8px 6px;
    font-weight: 600;
    color: #7a756d;
    text-align: center;
    border-bottom: 2px solid #e8e4dc;
}
.mwc-year-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #f0ede8;
    color: #2d2a26;
}
.mwc-year-table tr:last-child td { border-bottom: none; }
.mwc-year-table tr.current { background: rgba(212,175,55,0.08); font-weight: 600; }
.mwc-year-table .rate-up { color: #e74c3c; }

/* Disclaimer */
.mwc-disclaimer {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    font-size: 12px;
    color: #95a5a6;
    background: #faf8f5;
    border-radius: 8px;
    line-height: 1.5;
}
.mwc-disclaimer i { color: #d4af37; flex-shrink: 0; margin-top: 2px; }

/* Hidden */
.mwc-hidden { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .mwc-main-layout { grid-template-columns: 1fr; gap: 16px; }
    .mwc-input-col { max-width: 100%; overflow: hidden; }
    .mwc-input-group input:not([type="radio"]):not([type="checkbox"]),
    .mwc-input-group select {
        width: 100% !important;
        max-width: 100% !important;
    }
}
@media (max-width: 768px) {
    .mwc-summary-main { font-size: 36px; }
    .mwc-detail-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .mwc-detail-card { padding: 10px; }
    .mwc-detail-value { font-size: 16px; }
}
@media (max-width: 480px) {
    .mwc-summary-main { font-size: 32px; }
    .mwc-detail-cards { grid-template-columns: repeat(2, 1fr); }
    .mwc-radio-group { flex-direction: column; }
    .mwc-bar-wrap { height: 200px; }
    .mwc-bar-wrap canvas { max-height: 200px; }
    .tool-section, .mwc-main-layout { max-width: 100%; overflow-x: hidden; }
}
