:root {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;
    --primary-color: #4dabf7;
    --primary-hover: #339af0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    /* Lotto Colors */
    --num-yellow: #fcc419;
    --num-blue: #4dabf7;
    --num-red: #ff6b6b;
    --num-gray: #adb5bd;
    --num-green: #51cf66;
}

[data-theme='dark'] {
    --bg-color: #1a1b1e;
    --text-color: #f8f9fa;
    --card-bg: #25262b;
    --primary-color: #339af0;
    --primary-hover: #4dabf7;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

h1 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
}

#lotto-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 2rem 0;
    min-height: 60px;
}

.lotto-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.generate-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
    width: 100%;
}

.generate-btn:hover {
    background-color: var(--primary-hover);
}

.generate-btn:active {
    transform: scale(0.98);
}

/* Inquiry Section */
.divider {
    border: 0;
    height: 1px;
    background: #e9ecef;
    margin: 3rem 0;
}

.inquiry-section {
    text-align: left;
}

.inquiry-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

/* Color Ranges */
.n-1 { background-color: var(--num-yellow); }
.n-2 { background-color: var(--num-blue); }
.n-3 { background-color: var(--num-red); }
.n-4 { background-color: var(--num-gray); }
.n-5 { background-color: var(--num-green); }
