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

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Quicksand', sans-serif; }
body { background-color: #2b87d1; color: white; line-height: 1.6; }

/* Full width layout for test area */
.container { max-width: 100%; margin: 0; padding: 0; }
.content-wrapper { max-width: 800px; margin: 0 auto; padding: 20px; }

nav { background: rgba(0,0,0,0.1); padding: 10px 20px; }
nav .nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto; }
nav a { color: white; text-decoration: none; margin-left: 20px; }
.logo { font-weight: bold; font-size: 1.2rem; }

#test-area {
    min-height: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.1s ease;
    user-select: none;
}

.state-start, .state-result { background-color: #2b87d1; }
.state-wait { background-color: #ce2635; }
.state-ready { background-color: #4bdb6a; color: #2b2b2b; }
.state-too_soon { background-color: #ffcc00; color: #2b2b2b; }

.icon { font-size: 5rem; margin-bottom: 20px; }
h1 { margin-bottom: 10px; }

#result-summary { text-align: center; background: white; color: #333; padding: 40px; border-radius: 10px; max-width: 600px; margin: 40px auto; }
#result-summary h1 { color: #2b87d1; }
#individual-results { margin: 20px 0; }
.btn { 
    background: #2b87d1; color: white; border: none; padding: 12px 24px; 
    border-radius: 25px; cursor: pointer; font-size: 1rem; font-weight: bold;
}
.btn:hover { background: #1c5e91; }

.auth-form { max-width: 400px; margin: 40px auto; background: white; padding: 30px; border-radius: 15px; color: #333; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.auth-form h1 { color: #2b87d1; margin-bottom: 20px; }
.auth-form div { margin-bottom: 15px; }
.auth-form label { display: block; margin-bottom: 5px; font-weight: 500; }
.auth-form input { width: 100%; padding: 10px; border: 2px solid #eee; border-radius: 10px; font-size: 1rem; outline: none; transition: border-color 0.2s; }
.auth-form input:focus { border-color: #2b87d1; }

/* Reserved space for messages */
.message-box { min-height: 50px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.flashes { list-style: none; width: 100%; text-align: center; background: #ffebee; color: #c62828; padding: 8px; border-radius: 8px; font-size: 0.9rem; }
.flash-success { background: #e8f5e9; color: #2e7d32; }

table { width: 100%; border-collapse: collapse; background: white; color: #333; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
th, td { text-align: left; padding: 15px; border-bottom: 1px solid #eee; }
th { background: #f8f9fa; color: #2b87d1; font-weight: 700; }
