:root {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --header-color: #343a40;
    --subtitle-color: #6c757d;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --button-bg: #007bff;
    --button-text: #ffffff;
    --button-hover: #0056b3;
    --toggle-bg: #e9ecef;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --progress-bg: #e9ecef;
    --primary-color: #007bff;
    --nav-bg: #ffffff;
}

.dark-mode {
    --bg-color: #121212;
    --text-color: #e9ecef;
    --header-color: #f8f9fa;
    --subtitle-color: #adb5bd;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --button-bg: #375a7f;
    --button-text: #ffffff;
    --button-hover: #2b4764;
    --toggle-bg: #2c2c2c;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --progress-bg: #333;
    --nav-bg: #1e1e1e;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding-top: 70px; /* Space for fixed header */
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--header-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--button-bg);
}

#theme-toggle {
    background-color: var(--toggle-bg);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Container */
.container {
    width: 95%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

/* Hero Section */
.hero-section {
    padding: 3rem 1rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--header-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--subtitle-color);
}

/* Info Content */
.info-content {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--bg-color);
    border-radius: 15px;
    text-align: left;
}

.info-content h3 {
    margin-top: 0;
    color: var(--header-color);
}

.info-content p {
    line-height: 1.6;
    color: var(--subtitle-color);
}

/* Footer */
.main-footer {
    background-color: var(--nav-bg);
    padding: 3rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--subtitle-color);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--button-bg);
}

/* Existing Components Adjustments */
.test-area { margin-bottom: 2rem; }
.upload-box { border: 2px dashed var(--border-color); border-radius: 20px; padding: 2rem; cursor: pointer; }
.video-container { width: 100%; border-radius: 20px; overflow: hidden; margin-top: 20px; }
.result-box { margin-top: 2rem; }
.prediction-item { margin-bottom: 1rem; text-align: left; }
.progress-bar { height: 10px; background: var(--progress-bg); border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary-color); width: 0; transition: width 0.5s; }
.lotto-numbers { display: flex; justify-content: center; gap: 8px; margin: 2rem 0; flex-wrap: wrap; }
.number { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border-color); display: flex; justify-content: center; align-items: center; font-weight: 700; background: var(--card-bg); }

button { padding: 0.8rem 1.5rem; border-radius: 10px; border: none; cursor: pointer; font-weight: 600; transition: 0.2s; }
.primary-btn { background: var(--button-bg); color: #fff; }
.secondary-btn { background: var(--toggle-bg); color: var(--text-color); }
button:hover { filter: brightness(0.9); transform: translateY(-2px); }

/* Form (for Contact Page later) */
.form-group { margin-bottom: 1rem; }
input, textarea { width: 100%; padding: 0.8rem; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-color); color: var(--text-color); }

@media (max-width: 600px) {
    .nav-links { display: none; } /* Simplified for mobile */
    .hero-section h1 { font-size: 1.8rem; }
    .container { padding: 1.5rem; }
}

/* Content Pages */
.content-page {
    padding: 2rem 0;
}

.content-page h1 {
    margin-bottom: 2rem;
    color: var(--header-color);
}

.content-page h3 {
    margin-top: 2.5rem;
    color: var(--header-color);
}

.content-page p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

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

.mt-2 {
    margin-top: 2rem;
}

.content-page ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
