
:root {
    --bg-color: #f0f0f0;
    --container-bg: #ffffff;
    --text-color: #333333;
    --button-bg: #007bff;
    --button-hover: #0056b3;
    --shadow: rgba(0, 0, 0, 0.1);
    --input-border: #ccc;
    --input-bg: #fff;
    --accent-color: #6c757d;
}

body.dark-mode {
    --bg-color: #121212;
    --container-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --button-bg: #3700b3;
    --button-hover: #6200ee;
    --shadow: rgba(0, 0, 0, 0.5);
    --input-border: #444;
    --input-bg: #2d2d2d;
}

body {
    font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px 0;
    transition: background-color 0.3s, color 0.3s;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 탭 스타일 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--input-border);
    padding-bottom: 10px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-color);
    border-radius: 8px;
    transition: background 0.3s;
}

.tab-btn.active {
    background-color: var(--button-bg);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 업로드 섹션 */
.upload-section {
    margin-bottom: 20px;
}

.sub-btn {
    padding: 10px 15px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px;
}

#image-display-container {
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

#webcam-container {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

/* 결과 스타일 */
.result-bar-wrapper {
    margin-bottom: 15px;
    text-align: left;
}

.result-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.result-bar-bg {
    background-color: var(--input-border);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.result-bar-fill {
    background-color: var(--button-bg);
    height: 100%;
    width: 0%;
    transition: width 0.5s;
}

/* 기존 버튼 및 로또 스타일 */
#generate-button, #theme-toggle, .submit-button {
    padding: 12px 25px;
    background-color: var(--button-bg);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.numbers-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

lotto-ball {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-section { text-align: left; }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
}
