/* --- General Setup & Background --- */
:root {
    --primary-glow: rgba(200, 100, 255, 0.5); /* A purplish glow for highlights */
    --secondary-glow: rgba(0, 200, 255, 0.5); /* A cyan glow for highlights */
}

body {
    font-family: 'Poppins', sans-serif;
    background: #121212; /* A dark base background */
    color: #f0f0f0; /* Light text color for contrast */
    line-height: 1.6;
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    overflow-x: hidden;
    /* The animated gradient background */
    background-image: linear-gradient(135deg, #2b0a3d, #0b1a3b, #121212);
    background-size: 200% 200%;
    animation: gradient-flow 15s ease infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Main Layout & Header --- */
main {
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between the cards */
}

header, footer {
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

h2 {
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.disclaimer {
    color: #ff8a8a; /* A lighter, more modern red */
    font-weight: bold;
}

/* --- Frosted Glass Cards --- */
.card {
    /* The magic happens here! */
    background: rgba(255, 255, 255, 0.05); /* Very transparent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* For Safari */
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Subtle lift effect on hover */
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.37);
}


/* --- Generator Section & Buttons --- */
.generator .buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

button {
    background: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px var(--secondary-glow);
}

#results {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* --- Number Balls --- */
.ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 5px;
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.4);
    text-shadow: 0 0 3px rgba(0,0,0,0.6);
}

.main-ball { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.star-ball { background: linear-gradient(135deg, #f1c40f, #f39c12); }


/* --- Stats & Chart --- */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}
