/* Theme Variables */
:root {
    --bg-color: #1a1a1a;
    --text-color: #fff;
    --container-bg: rgba(0, 0, 0, 0.2);
    --btn-bg: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    --btn-hover-bg: linear-gradient(145deg, #333, #222);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --text-glow: rgba(255, 255, 255, 0.3);
    --pattern-opacity: 0.3;
}

.light-mode {
    --bg-color: #f0f2f5;
    --text-color: #333;
    --container-bg: rgba(255, 255, 255, 0.8);
    --btn-bg: linear-gradient(145deg, #ffffff, #e6e6e6);
    --btn-hover-bg: linear-gradient(145deg, #f0f0f0, #dadada);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --text-glow: rgba(0, 0, 0, 0.1);
    --pattern-opacity: 0.05;
}

/* General Styles */
body {
    font-family: 'Helvetica Neue', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
                      linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%),
                      linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 20px 20px;
    opacity: var(--pattern-opacity);
    z-index: -1;
    transition: opacity 0.3s ease;
}

/* Container */
.container {
    position: relative;
    text-align: center;
    background: var(--container-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow-color), 0 5px 15px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 600px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--text-glow);
}

.main-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

/* Theme Toggle Button */
#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Buttons */
button {
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background: var(--btn-bg);
    color: var(--text-color);
    box-shadow: 0 5px 15px var(--shadow-color), inset 0 -2px 5px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
}

button:hover {
    background: var(--btn-hover-bg);
    transform: translateY(-2px);
}

#recommend-btn {
    background: linear-gradient(145deg, #ff8c00, #e67e22);
    color: #fff;
}

/* Lotto Numbers Container */
#lotto-numbers-container, .recommend-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.recommend-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.light-mode .recommend-row {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

#recommend-container {
    margin-top: 40px;
    text-align: left;
}

#recommend-container h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

/* Lotto Ball Web Component */
lotto-ball {
    --ball-size: 50px;
    width: var(--ball-size);
    height: var(--ball-size);
}

/* Contact Form Styles */
.divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.light-mode .divider {
    border-top: 1px solid rgba(0,0,0,0.1);
}

.contact-section {
    text-align: left;
    margin-top: 20px;
}

.contact-section h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--text-color);
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.light-mode .form-group input,
.light-mode .form-group textarea {
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.1);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #ff8c00;
    background: rgba(255,255,255,0.1);
}

#submit-btn {
    width: 100%;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    margin-top: 10px;
}

#submit-btn:hover {
    background: #ff8c00;
    color: #fff;
}
