:root {
    --primary-color: #6a5acd; /* SlateBlue */
    --background-color: #f4f7f6;
    --text-color: #333;
    --light-text-color: #888;
    --card-bg-color: #ffffff;
    --border-color: #e0e0e0;
    --font-family: 'Noto Sans KR', sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-grow: 1;
    gap: 20px;
}

.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.header-content h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.header-content p {
    margin: 10px 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.content-wrapper {
    width: 100%;
    max-width: 800px;
    margin: -30px 0 0;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
    flex-grow: 1;
}

.card-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.card h2 {
    margin-top: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card p {
    color: var(--light-text-color);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.saju-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

input[type="number"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="number"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
}

textarea {
    height: 120px;
    resize: vertical;
}

#generateBtn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    box-shadow: 0 4px 8px rgba(106, 90, 205, 0.2);
}

#generateBtn:hover {
    background-color: #5a4acd;
    transform: translateY(-2px);
}

.result-card {
    margin-top: 30px;
    text-align: center;
}

#result.hidden {
    display: none;
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.lotto-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background-color: #f0ad4e; /* Example color */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: var(--light-text-color);
    background-color: var(--background-color);
}

.main-footer p {
    margin: 5px 0;
}

.left-sidebar,
.right-sidebar {
    flex: 0 0 160px; /* Fixed width */
}

.ad-sidebar {
    position: sticky;
    top: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .card-section {
        grid-template-columns: 1fr;
    }
    .header-content h1 {
        font-size: 2rem;
    }
    .content-wrapper {
        margin-top: -20px;
    }
}

/* Header and Navigation Styles */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4f46e5;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    width: 45px;
    height: 45px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    background-color: #374151;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    position: absolute;
    left: 10px;
}

.hamburger {
    top: 21px;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

body.nav-open .hamburger {
    background-color: transparent;
}

body.nav-open .hamburger::before {
    transform: rotate(45deg);
}

body.nav-open .hamburger::after {
    transform: rotate(-45deg);
}

.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    padding-top: 80px;
}

.side-nav.active {
    transform: translateX(0);
}

.side-nav ul {
    list-style: none;
}

.side-nav li a {
    display: block;
    padding: 15px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.side-nav li a:hover {
    background-color: #f3f4f6;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}