/* 전체 레이아웃 기본 설정 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background: #111827;
    color: #e5e7eb;
}

/* 중앙 카드 컨테이너 */
.container {
    max-width: 480px;
    margin: 40px auto;
    padding: 24px 20px;
    background: #1f2933;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* 제목 */
h1 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 12px;
}

/* 설명 텍스트 */
.desc {
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
    color: #9ca3af;
}

/* 입력 그룹 */
.form-group {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
}

/* 라벨 */
label {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* 입력창 */
input[type="number"] {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: #111827;
    color: #e5e7eb;
    font-size: 0.95rem;
    outline: none;
}

input[type="number"]::placeholder {
    color: #6b7280;
}

/* 포커스 스타일 */
input[type="number"]:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.4);
}

/* 버튼 */
button#calc-btn {
    width: 100%;
    margin-top: 20px;
    padding: 10px 0;
    border: none;
    border-radius: 999px;
    background: #2563eb;
    color: #f9fafb;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}

/* 버튼 호버 / 활성화 */
button#calc-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

button#calc-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.8);
}

/* 결과 박스 */
.result-box {
    margin-top: 20px;
    padding: 14px 12px;
    border-radius: 10px;
    background: #020617;
    border: 1px solid #374151;
    min-height: 40px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-line;
}

/* 결과 강조 숫자 */
.result-highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbbf24;
}

/* 에러 메시지 */
.error {
    color: #f97373;
}

/* 푸터 */
footer {
    margin-top: 18px;
    font-size: 0.75rem;
    text-align: center;
    color: #6b7280;
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .container {
        margin: 16px;
        padding: 18px 16px;
    }
}
