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

.container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    width: 90%;
    max-width: 500px;
}

h1 {
    color: #1a73e8;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #5f6368;
    margin-bottom: 2rem;
}

.lotto-balls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ball:hover {
    transform: scale(1.1);
}

.ball.placeholder {
    background-color: #e8eaed;
    color: #9aa0a6;
    text-shadow: none;
}

/* 로또 번호별 색상 (한국 로또 기준) */
.range-1 { background-color: #fbc02d; } /* 1-10: 노랑 */
.range-2 { background-color: #1976d2; } /* 11-20: 파랑 */
.range-3 { background-color: #d32f2f; } /* 21-30: 빨강 */
.range-4 { background-color: #7b7b7b; } /* 31-40: 회색 */
.range-5 { background-color: #388e3c; } /* 41-45: 초록 */

#generate-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
    width: 100%;
}

#generate-btn:hover {
    background-color: #1557b0;
}

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

.history {
    margin-top: 2rem;
    text-align: left;
    border-top: 1px solid #e8eaed;
    padding-top: 1rem;
}

.history h3 {
    font-size: 1rem;
    color: #3c4043;
}

#history-list {
    list-style: none;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
}

.history-item {
    font-size: 0.9rem;
    color: #5f6368;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
}

.contact-section {
    margin-top: 2rem;
    border-top: 1px solid #e8eaed;
    padding-top: 1.5rem;
    text-align: left;
}

.contact-section h3 {
    font-size: 1rem;
    color: #3c4043;
    margin-bottom: 1rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.1);
}

.submit-btn {
    background-color: #34a853;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #2d8e47;
}
