* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: #ffffff;
    max-width: 500px;
    width: 100%;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

h2 {
    color: #1a365d;
    text-align: center;
    margin-bottom: 15px;
}

/* 상태 박스 */
.status-box {
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: bold;
}
.status-box.loading { background-color: #feebc8; color: #c05621; border: 1px solid #fbd38d; }
.status-box.success { background-color: #c6f6d5; color: #22543d; border: 1px solid #9ae6b4; }
.status-box.error { background-color: #fed7d7; color: #742a2a; border: 1px solid #feb2b2; }

/* ⭐ 즐겨찾기 위젯 스타일 */
.favorite-box {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border: 1px solid #a0aec0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.5);
}
.fav-header {
    font-weight: bold;
    font-size: 0.9rem;
    color: #2d3748;
    margin-bottom: 8px;
}
.fav-body {
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 8px;
}
.fav-route {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 4px;
}
.btn-mini {
    width: 100%;
    padding: 6px;
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* 검색 창 및 버튼 정렬 */
.search-box {
    background-color: #edf2f7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.search-box.disabled { opacity: 0.4; pointer-events: none; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 4px; font-size: 0.85rem; color: #4a5568; }
select, input[type="time"] { width: 100%; padding: 8px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 0.95rem; }

.btn-group {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}
.btn {
    flex: 2;
    padding: 10px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
}
.btn:hover { background-color: #2b6cb0; }
.btn-fav {
    flex: 1;
    background-color: #ecc94b;
    color: #744210;
}
.btn-fav:hover { background-color: #d69e2e; }
.btn:disabled { background-color: #cbd5e0; cursor: not-allowed; color: #718096; }

/* 결과 리스트 */
.result-section { margin-top: 15px; }
h3 { font-size: 1rem; color: #2d3748; margin: 15px 0 8px 0; border-left: 4px solid #3182ce; padding-left: 6px; }
.result-card { background-color: #ebf8ff; border: 1px solid #bee3f8; padding: 12px; border-radius: 8px; text-align: center; }
.station-title { display: block; font-size: 0.9rem; color: #4a5568; margin-bottom: 4px; border-bottom: 1px dashed #cbd5e0; padding-bottom: 4px; }
.highlight { color: #2b6cb0; font-weight: bold; font-size: 1.15rem; }
.table-wrapper { max-height: 200px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 6px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; font-size: 0.9rem; }
th { background-color: #f7fafc; color: #4a5568; position: sticky; top: 0; }
tbody tr:hover { background-color: #f8fafc; }