@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

* {
    box-sizing: border-border;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
    background-color: #f0f4f8;
    color: #334155;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* 우측 상단 다크 모드 버튼 */
.dark-toggle-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: #ffffff;
    color: #475569;
    border: none;
    border-radius: 20px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.dark-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* 메인 컨테이너 */
.container {
    text-align: center;
    background: #ffffff;
    padding: 36px 30px;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    width: 380px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
}

/* 타이머 박스 */
.timer-box {
    background: #e0f2fe;
    padding: 20px 15px;
    border-radius: 18px;
    margin-bottom: 24px;
}

#timer {
    font-size: 26px;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: 0.5px;
}

/* 시간 입력 영역 */
.input-card {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #64748b;
}

.input-group input {
    width: 60px;
    height: 42px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: #38bdf8;
}

/* 공통 버튼 */
.btn {
    border: none;
    border-radius: 14px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    width: 100%;
}

.btn-primary {
    background-color: #0ea5e9;
    color: #ffffff;
    flex: 1;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-danger {
    background-color: #ef4444;
    color: #ffffff;
    flex: 1;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 파일 섹션 */
.sound-section {
    margin-bottom: 20px;
}

.sound-name {
    font-size: 13px;
    margin-top: 10px;
    font-weight: 500;
    color: #ef4444;
}

/* 버튼 컨테이너 */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

/* 상태 표시 배지 */
.status-badge {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background-color: #fef2f2;
    color: #ef4444;
    transition: all 0.3s ease;
}

#made-by {
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

/* ------------------- 다크 모드 ------------------- */
body.dark-mode {
    background-color: #0f172a;
    color: #f8fafc;
}

body.dark-mode .dark-toggle-btn {
    background-color: #1e293b;
    color: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .container {
    background: #1e293b;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

body.dark-mode h1 {
    color: #f8fafc;
}

body.dark-mode .timer-box {
    background: #0369a1;
}

body.dark-mode #timer {
    color: #e0f2fe;
}

body.dark-mode .input-card {
    background: #0f172a;
}

body.dark-mode .input-group {
    color: #94a3b8;
}

body.dark-mode .input-group input {
    background-color: #1e293b;
    color: #f8fafc;
    border-color: #334155;
}

body.dark-mode .btn-secondary {
    background-color: #334155;
    color: #f8fafc;
}

body.dark-mode #made-by {
    color: #64748b;
}