/* Labor Cost Calculator (인건비 계산기) - Light Theme */

/* ===== Layout ===== */
.lcc-main-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
}

.lcc-input-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

/* ===== Tabs ===== */
.lcc-tabs {
    display: flex;
    gap: 4px;
    background: #f5f3f0;
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 14px;
}

.lcc-tab-btn {
    flex: 1;
    padding: 10px 8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #8c8578;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.lcc-tab-btn:hover:not(.active) {
    color: #5f5a56;
    background: rgba(255, 255, 255, 0.5);
}

.lcc-tab-btn.active {
    background: #fff;
    color: #2d2a26;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

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

/* ===== Sections ===== */
.lcc-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease;
}

.lcc-section:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

.lcc-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lcc-section-title i {
    color: #d4af37;
    font-size: 15px;
}

/* ===== Input Groups ===== */
.lcc-input-group {
    margin-bottom: 12px;
}

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

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

.lcc-amount-input-wrap {
    position: relative;
}

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

.lcc-amount-input:hover,
.lcc-number-input:hover {
    border-color: #d4c67a;
}

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

.lcc-amount-input::placeholder,
.lcc-number-input::placeholder {
    font-weight: 400;
    color: #c4c0bc;
}

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

.lcc-input-hint {
    display: block;
    font-size: 11px;
    color: #9e9a96;
    margin-top: 4px;
}

/* ===== Select ===== */
.lcc-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    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;
}

.lcc-select:hover {
    border-color: #d4c67a;
}

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

.lcc-select optgroup {
    font-weight: 700;
    color: #2d2a26;
}

.lcc-select option {
    font-weight: 400;
    color: #2d2a26;
    background: #fff;
}

/* ===== Radio Groups ===== */
.lcc-radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lcc-radio-label {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lcc-radio-label:hover {
    border-color: #d4af37;
    color: #2d2a26;
}

.lcc-radio-label.active {
    border-color: #d4af37;
    background: #fdfbf5;
    color: #d4af37;
    font-weight: 600;
}

.lcc-radio-label input[type="radio"] {
    display: none;
}

/* ===== Info Box ===== */
.lcc-info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    background: #fdfbf5;
    border: 1px solid #e8dfc0;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.5;
}

.lcc-info-box i {
    color: #d4af37;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== Calculate Button ===== */
.lcc-calculate-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4af37 0%, #c9a030 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

.lcc-calculate-btn:hover {
    background: linear-gradient(135deg, #c9a030 0%, #b8922a 100%);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

.lcc-calculate-btn:active {
    transform: translateY(0);
}

/* ===== Result Section ===== */
.lcc-result-section {
    display: none;
}

.lcc-result-section.active {
    display: block;
}

.lcc-result-title {
    font-size: 15px;
    font-weight: 700;
    color: #2d2a26;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lcc-result-title i {
    color: #d4af37;
    font-size: 16px;
}

/* ===== Total Card ===== */
.lcc-total-card {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.lcc-total-label {
    font-size: 12px;
    color: #7a756d;
    margin-bottom: 6px;
}

.lcc-total-amount {
    font-size: 28px;
    font-weight: 800;
    color: #d4af37;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.lcc-total-sub {
    font-size: 12px;
    color: #9e9a96;
    margin-top: 6px;
}

/* ===== Detail Grid ===== */
.lcc-detail-grid {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.lcc-detail-heading {
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
    margin: 0 0 8px 0;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lcc-detail-heading i {
    color: #d4af37;
    font-size: 13px;
}

.lcc-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.lcc-detail-label {
    font-size: 13px;
    color: #5f5a56;
}

.lcc-detail-value {
    font-size: 13px;
    font-weight: 600;
    color: #2d2a26;
    text-align: right;
}

.lcc-detail-divider {
    height: 1px;
    background: #f0ede8;
    margin: 8px 0;
}

.lcc-detail-subtotal .lcc-detail-label,
.lcc-detail-subtotal .lcc-detail-value {
    font-weight: 700;
    color: #2d2a26;
}

/* ===== All Employees Total ===== */
.lcc-all-total {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    border: 1px solid #e8dfc0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(212, 175, 55, 0.08);
}

.lcc-detail-grandtotal .lcc-detail-label {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
}

.lcc-detail-grandtotal .lcc-detail-value {
    font-size: 18px;
    font-weight: 800;
    color: #d4af37;
}

.lcc-all-total-sub {
    display: block;
    font-size: 11px;
    color: #9e9a96;
    margin-top: 4px;
    text-align: center;
}

/* ===== Credit Note Table ===== */
.lcc-credit-note {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.lcc-note-table {
    display: grid;
    gap: 0;
}

.lcc-note-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0ede8;
    font-size: 13px;
    color: #5f5a56;
}

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

.lcc-note-header {
    font-weight: 600;
    color: #2d2a26;
    font-size: 12px;
    background: #faf9f7;
    padding: 8px 0;
    border-radius: 6px;
}

/* ===== Chart ===== */
.lcc-chart-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.lcc-chart-title {
    font-size: 13px;
    font-weight: 700;
    color: #2d2a26;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lcc-chart-wrap {
    position: relative;
    width: 100%;
    height: 280px;
}

.lcc-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ===== Download Button ===== */
.lcc-download-btn {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #16a34a;
    border-radius: 8px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.lcc-download-btn:hover {
    background: #16a34a;
    color: #fff;
}

/* ===== Waiting Screen ===== */
.lcc-waiting {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    text-align: center;
    padding: 60px 20px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.lcc-waiting-icon {
    font-size: 48px;
    color: #d4af37;
    margin-bottom: 16px;
    opacity: 0.4;
}

.lcc-waiting-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 8px;
}

.lcc-waiting-desc {
    font-size: 13px;
    color: #9e9a96;
}

/* ===== Source Section ===== */
.lcc-source-section {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 14px;
}

.lcc-source-title {
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lcc-source-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lcc-source-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #0284c7;
    text-decoration: none;
    transition: color 0.2s;
}

.lcc-source-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

.lcc-source-link i {
    font-size: 10px;
}

.lcc-source-note {
    font-size: 11px;
    color: #64748b;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #bae6fd;
    line-height: 1.5;
}

/* ===== Related Calculators ===== */
.lcc-related-section {
    background: #f9f6ef;
    border: 1px solid #e8e0c8;
    border-radius: 12px;
    padding: 20px;
}

.lcc-related-title {
    font-size: 15px;
    font-weight: 600;
    color: #5c5647;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lcc-related-title i {
    color: #d4af37;
}

.lcc-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lcc-related-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e8e0c8;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.lcc-related-link:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.lcc-related-icon {
    width: 36px;
    height: 36px;
    background: #fffdf5;
    border: 1px solid #e8e0c8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 16px;
    flex-shrink: 0;
}

.lcc-related-info {
    flex: 1;
    min-width: 0;
}

.lcc-related-name {
    font-size: 13px;
    font-weight: 600;
    color: #5c5647;
}

.lcc-related-desc {
    font-size: 11px;
    color: #8b8475;
    margin-top: 2px;
}

/* ===== Disclaimer ===== */
.lcc-disclaimer {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    margin-top: 8px;
}

.lcc-disclaimer > i {
    color: #d97706;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.lcc-disclaimer-text {
    font-size: 12px;
    color: #92400e;
    line-height: 1.6;
}

.lcc-disclaimer-text strong {
    color: #78350f;
}

/* ===== Utility ===== */
.lcc-hidden {
    display: none !important;
}

/* ===== Motion Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    .lcc-section,
    .lcc-amount-input,
    .lcc-number-input,
    .lcc-select,
    .lcc-calculate-btn,
    .lcc-download-btn,
    .lcc-tab-btn {
        transition: none !important;
    }
    .lcc-section:hover,
    .lcc-calculate-btn:hover {
        transform: none !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .lcc-main-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

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

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

@media (max-width: 480px) {
    .lcc-main-layout {
        gap: 12px;
    }

    .lcc-section {
        padding: 12px;
    }

    .lcc-total-amount {
        font-size: 22px;
    }

    .lcc-detail-grid {
        padding: 12px;
    }

    .lcc-radio-group {
        gap: 6px;
    }

    .lcc-radio-label {
        padding: 7px 8px;
        font-size: 12px;
    }

    .lcc-chart-wrap {
        height: 220px;
    }

    .lcc-calculate-btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .lcc-credit-note,
    .lcc-chart-section,
    .lcc-detail-grid,
    .lcc-all-total {
        max-width: 100%;
        overflow: hidden;
    }

    .lcc-related-grid {
        grid-template-columns: 1fr;
    }

    .lcc-source-section,
    .lcc-related-section,
    .lcc-disclaimer {
        padding: 12px;
    }
}

/* ===== Desktop Sticky Input ===== */
@media (min-width: 901px) {
    .lcc-input-col {
        position: sticky;
        top: 20px;
        align-self: start;
    }
}

/* Excel button guard */
.tool-btn-excel {
  background: #59ab79;
  border-color: #59ab79;
}

.tool-btn-excel:hover,
.tool-btn-excel:focus-visible {
  background: #4f9f70;
  border-color: #4f9f70;
}

