
:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5a623;
    --background-color: #f0f0f0;
    --container-bg: #ffffff;
    --text-color: #333333;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --background-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #f0f0f0;
    --shadow: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--container-bg);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    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(--primary-color);
}

/* Layout */
.main-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    width: 95%; /* Increased from 90% */
    margin: 2rem auto;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
}

.left-column {
    flex: 1.5; /* Adjusted from 2 to reduce 'squeezed' effect on the right */
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.comments-section {
    flex: 1;
    min-width: 320px; /* Added min-width to prevent squeezing */
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: background-color 0.3s, box-shadow 0.3s;
    min-height: 400px;
}

@media (max-width: 1100px) { /* Increased breakpoint */
    .main-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .left-column, .comments-section {
        width: 100%;
        max-width: 600px; /* Center and limit width on mobile */
    }
}

#theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

#theme-toggle:hover {
    background-color: rgba(128, 128, 128, 0.2);
}

#generate-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s;
}

#generate-btn:hover {
    background-color: #357ABD;
}

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

.action-buttons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

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

#numbers-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

lotto-ball {
    margin: 5px;
}

#voc-open-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.2s, background-color 0.2s;
    z-index: 100;
}

#voc-open-btn:hover {
    background-color: #e59512;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--container-bg);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.6;
}

.close-btn:hover {
    opacity: 1;
}

#voc-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.voc-input, .voc-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--shadow);
    border-radius: 8px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.voc-input:focus, .voc-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.voc-textarea {
    min-height: 120px;
    resize: vertical;
}
