
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-y: auto;
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23000" x="0" y="0" width="100%" height="100%"/><path fill="%23fff" d="M50 50 L0 0 L100 0 Z" opacity="0.02"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

.container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
    font-size: 2.5rem;
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #eee;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

/* Animation for number appearance */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#generate-btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: #5D50FE;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(93, 80, 254, 0.4);
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(93, 80, 254, 0.6);
}

#generate-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(93, 80, 254, 0.6);
}

/* Theme Toggle Button */
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: #333;
}

body.dark-mode #theme-toggle {
    color: #f0f0f0;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

/* Header */
.app-header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

body.dark-mode .header-controls {
    background: rgba(0, 0, 0, 0.5);
}

#lang-selector {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    color: #333;
}

body.dark-mode #lang-selector {
    color: #f0f0f0;
    border-color: #555;
}

/* Game Selector */
.game-selector-container {
    margin-bottom: 25px;
}

#game-selector {
    padding: 10px 20px;
    font-size: 1.1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
    width: 100%;
    max-width: 300px;
    margin-top: 10px;
    cursor: pointer;
}

body.dark-mode #game-selector {
    background: #333;
    color: #fff;
    border-color: #555;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.dash-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
}

body.dark-mode .dash-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.05);
}

.dash-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .dash-label {
    color: #aaa;
}

.dash-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

body.dark-mode .dash-value {
    color: #fff;
}

.dash-value.highlight {
    color: #5D50FE;
}

body.dark-mode .dash-value.highlight {
    color: #764ba2; /* Lighter purple for dark mode visibility */
}

/* Game Info Box */
.game-info-box {
    background: rgba(0,0,0,0.03);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: left;
}

body.dark-mode .game-info-box {
    background: rgba(255,255,255,0.05);
}

.game-info-box h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #5D50FE;
}

.game-info-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

body.dark-mode .game-info-box p {
    color: #ccc;
}

/* Disclaimer */
.disclaimer-box {
    margin-top: 20px;
    padding: 15px;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid rgba(0,0,0,0.05);
}

body.dark-mode .disclaimer-box {
    color: #999;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Special Balls */
.number.special {
    border: 3px solid #FFD700; /* Gold border for special balls */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 100%);
    color: #f0f0f0;
}

body.dark-mode .container {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode h1 {
    color: #f0f0f0;
}

body.dark-mode .number {
    background-color: #333;
    color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
}

/* Contact Section */
.contact-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .contact-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

body.dark-mode .contact-section h3 {
    color: #f0f0f0;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

#contact-form input, #contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s ease;
}

body.dark-mode #contact-form input, body.dark-mode #contact-form textarea {
    background: #222;
    border-color: #444;
    color: #fff;
}

#contact-form textarea {
    height: 100px;
    resize: none;
}

#contact-form button {
    padding: 12px;
    background: #5D50FE;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

#contact-form button:hover {
    opacity: 0.9;
}

/* Comments Section */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left; /* Better for comment threads */
}

body.dark-mode .comments-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-section h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

body.dark-mode .comments-section h3 {
    color: #f0f0f0;
}
