/* Default (Light Mode) */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    color: #333;
}
.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative; /* For footer positioning */
}
input, select, button {
    display: block;
    width: 90%;
    margin: 10px auto;
    padding: 8px;
    font-size: 16px;
}
button {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover:not(:disabled) {
    background-color: #0056b3;
}
button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
#result, #timer {
    margin: 10px 0;
    font-size: 18px;
}
footer {
    margin-top: 20px;
    font-size: 14px;
}
footer a {
    color: #007BFF;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.stats-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin: 20px auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}
th {
    background-color: #f4f4f4;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    .container {
        background: #2a2a2a;
        box-shadow: 0 2px 10px rgba(255,255,255,0.1);
    }
    input, select {
        background-color: #333;
        color: #e0e0e0;
        border: 1px solid #555;
    }
    button {
        background-color: #1e90ff;
    }
    button:hover:not(:disabled) {
        background-color: #1c6cd4;
    }
    button:disabled {
        background-color: #666;
    }
    footer a {
        color: #1e90ff;
    }
    .modal-content {
        background: #2a2a2a;
    }
    .stats-container {
        background: #2a2a2a;
        box-shadow: 0 2px 10px rgba(255,255,255,0.1);
    }
    th, td {
        border-color: #555;
    }
    th {
        background-color: #333;
    }
}
