:root {
    --bg-color: #1a2035;
    --panel-color: #2a314d;
    --primary-color: #f0b90b;
    --text-color: #f0f0f0;
    --text-muted-color: #a0a8b7;
    --border-color: #404863;
}

body {
    font-family: 'Poppins', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

#generator-container {
    width: 100%;
    max-width: 800px;
    background-color: var(--panel-color);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 30px 40px;
    border: 1px solid var(--border-color);
}

.main-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.main-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(240, 185, 11, 0.3);
}

.main-header p {
    margin: 5px 0 0;
    color: var(--text-muted-color);
    font-size: 0.9rem;
}

.generator-core {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-panel {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 12px;
}

.settings {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.setting-item label {
    font-size: 0.8rem;
    color: var(--text-muted-color);
    margin-bottom: 8px;
}

.setting-item input[type="number"] {
    width: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-weight: 600;
}

.checkbox-item {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.checkbox-item label { margin: 0; }

#generate-btn {
    background: linear-gradient(90deg, var(--primary-color), #ffdc73);
    color: #1a2035;
    border: none;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.2);
}

#generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.3);
}

.results-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

#results-container, #analysis-container {
    background: rgba(0,0,0,0.2);
    padding: 25px;
    border-radius: 12px;
}

h2 {
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

#lotto-games { display: flex; flex-direction: column; gap: 15px; }
.game { display: flex; align-items: center; background: var(--bg-color); padding: 12px 20px; border-radius: 10px; }
.game-label { font-weight: bold; font-size: 0.9rem; margin-right: auto; color: var(--text-muted-color); }
.game-numbers { display: flex; gap: 10px; }

.number-ball {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; font-size: 1rem;
    color: var(--bg-color);
    background-color: var(--text-muted-color);
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.hot-number { background-color: #e55353; color: #fff;}
.cold-number { background-color: #3399ff; color: #fff;}

.analysis-box { margin-bottom: 20px; }
.analysis-box h3 { font-size: 0.9rem; margin-bottom: 15px; color: var(--text-muted-color); }
.number-display { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;}
.number-display .number-ball { width: 32px; height: 32px; font-size: 0.9rem;}

.error-message { text-align: center; padding: 40px; color: #e55353; background-color: rgba(229, 83, 83, 0.1); border: 1px solid #e55353; border-radius: 8px; }

@media (max-width: 768px) {
    #generator-container { padding: 20px; }
    .results-panel { grid-template-columns: 1fr; }
}
