@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #4a90e2;
    --secondary-color: #50e3c2;
    --background-color: #f7f9fc;
    --text-color: #333;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 10px;
}

main {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
}

#result-container {
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

#result-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none;
}

/* Result Card Styles */
.result-card {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    background: var(--card-background);
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 20px;
}

.result-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.best-time-highlight {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.chart-container {
    width: 100%;
    height: 250px;
    margin-top: 20px;
}

.congestion-graph {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    border-left: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    padding: 10px 0;
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
}

.bar {
    width: 40px;
    background-color: var(--secondary-color);
    border-radius: 5px 5px 0 0;
    transition: height 0.8s ease-out;
}

.bar-label {
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 500;
}

.tip,
.notice {
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.6;
}
