@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;600;800&family=JetBrains+Mono:wght@800&display=swap');
        
:root {
    --main-blue: #4A90E2;
    --bg-light: #F8FAFF;
    --text-gray: #888;
}

/* body {
    font-family: 'Pretendard', -apple-system, sans-serif;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #333;
} */

body { font-family: 'Pretendard', sans-serif; scroll-behavior: smooth; }

/* 타이머 전용 스타일: 고정폭 폰트와 간격 강제 고정 */
/* 타이머 전용 스타일 최적화 */
.timer-container {
    /* 숫자가 꽉 차고 기계적인 느낌을 주는 Space Mono 적용 */
    font-family: 'Space Mono', monospace; 
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0; /* 폰트 자체의 여백이 있어 gap을 0으로 조정 */
}

.timer-unit {
    display: inline-block;
    min-width: 0.9ch; /* Space Mono 특성에 맞게 폭 미세 조정 */
    text-align: center;
}

.ms-unit {
    display: inline-block;
    min-width: 3ch; 
    text-align: left;
}

.gradient-text {
    background: linear-gradient(90deg, #4F46E5, #EF4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 부드러운 등장 애니메이션 */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    width: 360px;
    background: white;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* URL 입력창 스타일 */
.url-input-wrapper {
    margin-bottom: 20px;
}

#target-url-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #E8F0FE;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    outline: none;
    color: #333;
    transition: border-color 0.3s;
}

#target-url-input:focus {
    border-bottom-color: var(--main-blue);
}

#target-url-input::placeholder {
    color: #ccc;
    font-weight: 400;
}

/* 상단 설정 영역 */
.top-setting {
    border: 2px solid #E8F0FE;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.target-time {
    font-size: 24px;
    font-weight: 800;
}

/* 메인 시계 영역 */
.clock-section {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-svg {
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #E8F0FE;
    stroke-width: 8;
}

/* CSS 부분: 진행 방향 시각화를 위해 끝 모양을 부드럽게 유지 */
.circle-progress {
    fill: none;
    stroke: var(--main-blue);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 628;
    transition: none;
}

.time-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.main-time {
    font-size: 44px;
    font-weight: 900;
    color: var(--main-blue);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.ms-time {
    font-size: 20px;
    font-weight: 800;
    color: #FFB84D;
    font-variant-numeric: tabular-nums;
}

/* 하단 버튼 영역 */
.bottom-card {
    background: #F0F4F8;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.bottom-card:active {
    background: #E2E8F0;
}

.status-text {
    font-size: 12px;
    color: var(--main-blue);
    margin-top: 15px;
}