/* 한국에너지공단 계산기 스타일 */

.calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.calculator-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* 헤더 */
.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.calculator-title {
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.calculator-subtitle {
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* 폼 */
.calculator-form {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: #1f2937;
    background-color: #ffffff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #52b8e2;
    box-shadow: 0 0 0 3px rgba(82, 184, 226, 0.1);
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit .form-control {
    padding-right: 60px;
}

.unit-display {
    position: absolute;
    right: 12px;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: #6b7280;
    pointer-events: none;
}

/* 버튼 그룹 */
.button-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #52b8e2;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #3da8d1;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #676a7b;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #555766;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-delete {
    padding: 0.375rem 0.75rem;
    background-color: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.btn-delete:hover {
    background-color: #dc2626;
}

/* 결과 섹션 */
.results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.results-title {
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
}

.results-table-wrapper {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 14px;
}

.results-table thead {
    background-color: #f3f4f6;
}

.results-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.results-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
}

.results-table tbody tr:hover {
    background-color: #f9fafb;
}

.results-table tfoot {
    background-color: #f3f4f6;
    font-weight: 600;
}

.total-row td {
    border-top: 2px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
}

/* 안내 섹션 */
.info-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #52b8e2;
}

.info-title {
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.info-content {
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.8;
}

.info-content p {
    margin: 0.5rem 0;
}

.info-note {
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
}

.info-spacing {
    margin-top: 1rem !important;
}

/* 반응형 */
@media (max-width: 767px) {
    .calculator-wrapper {
        padding: 1rem;
    }

    .calculator-container {
        padding: 1.5rem;
    }

    .calculator-title {
        font-size: 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .results-table {
        font-size: 12px;
    }

    .results-table th,
    .results-table td {
        padding: 0.5rem;
    }
}

