/* ----------- GLOBAL PAGE ---------- */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #0a1e3a; /* Donkerblauw achtergrond */
    color: #f0f4ff;
}

h1, h2, h3 {
    font-weight: 600;
    color: #ffffff;
}

a {
    color: #9bc3ff;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* ----------- PAGE CONTAINER ---------- */

.page-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 20px;
}

/* ----------- CARD (StudyGo stijl) ---------- */

.card {
    background: #10294f;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.card h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    color: white;
}

/* ----------- INPUTS ---------- */

input[type="text"],
input[type="password"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 1px solid #1c3f76;
    background: #0f2546;
    color: #e8f1ff;
    font-size: 16px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #4c9dff;
    background: #143463;
}

/* ----------- BUTTONS ---------- */

.btn {
    display: inline-block;
    background: #4c9dff;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
}

.btn:hover {
    background: #357ddd;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(10, 90, 200, 0.4);
}

.btn-accent {
    display: inline-block;
    background: #1ea7ff;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
}

.btn-accent:hover {
    background: #1084cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 167, 255, 0.4);
}

.btn-danger {
    display: inline-block;
    background: #e85050;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
}

.btn-danger:hover {
    background: #d43d3d;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(220, 50, 50, 0.45);
}

.btn-ghost {
    display: inline-block;
    border: 2px solid #4c9dff;
    color: #4c9dff;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
}

.btn-ghost:hover {
    background: #4c9dff;
    color: #0a1e3a;
    box-shadow: 0 5px 10px rgba(10, 90, 200, 0.3);
}

/* ----------- SUBMIT BUTTON ---------- */

input[type="submit"] {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #4c9dff;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.25s;
}

input[type="submit"]:hover {
    background: #357ddd;
    transform: translateY(-2px);
}

/* ----------- TABLES ---------- */

table {
    width: 100%;
    border-collapse: collapse;
    background: #10294f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

table th {
    background: #184077;
    padding: 14px;
    color: #dceaff;
    text-align: left;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #1c3f76;
    color: #e8f1ff;
}

table tr:hover {
    background: #15355f;
}

/* ----------- NAVBAR ---------- */

.navbar {
    width: 100%;
    max-width: 100vw;
    background: #10294f;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    box-sizing: border-box;
}

.nav-right {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #cfe2ff;
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.25s;
}

.nav-link:hover {
    background: #184077;
    color: #ffffff;
}

.nav-btn {
    background: #e85050;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
}

.nav-btn:hover {
    background: #d43d3d;
    transform: translateY(-2px);
}

/* LOGO IN NAVBAR */

.logo-img {
    height: 42px;
    width: auto;
    margin-right: 12px;
}

.nav-logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #4c9dff, #1ea7ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    top: 1px;
}

.nav-left {
    display: flex;
    align-items: center;
}

/* ----------- MESSAGES / LINKS ---------- */

.message {
    background: #143463;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    color: #dceaff;
}

.links {
    margin-top: 20px;
    text-align: center;
    font-size: 15px;
}

.links a {
    color: #9bc3ff;
}

.links a:hover {
    text-decoration: underline;
}

/* ----------- RECENT TABLE ---------- */

.recent-table {
    width: 100%;
    border-collapse: collapse;
    background: #10294f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    margin-top: 10px;
}

.recent-table th {
    background: #184077;
    padding: 10px;
    color: #dceaff;
    text-align: left;
}

.recent-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #1c3f76;
    color: #e8f1ff;
}

/* ----------- PRACTICE PAGINA ---------- */

.exercise-mode-form {
    margin-left: 10px;
}

.exercise-mode-form select {
    background: #0f2546;
    border: 1px solid #1c3f76;
    color: #f0f4ff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
}

/* Practice pagina iets compacter */
.page-practice {
    max-width: 700px;
    margin: 40px auto;
}

/* blok rechtsboven: oefenvorm + andere vraag */
.nav-mode-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.nav-small-btn {
    background: #4c9dff;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.nav-small-btn:hover {
    background: #357ddd;
    transform: translateY(-1px);
}

/* meerkeuze knoppen-stijl */
.answer-option {
    display: block;
    background: #0f2546;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1px solid #1c3f76;
    cursor: pointer;
    transition: 0.2s;
    font-size: 16px;
}

.answer-option:hover {
    background: #143463;
    border-color: #4c9dff;
}

/* radio verstopt, label is de knop */
.answer-option input[type="radio"] {
    display: none;
}

/* submit-knop verstoppen bij meerkeuze (we checken direct) */
.mc-submit {
    display: none;
}

/* vraagtekst iets groter */
.question-text {
    font-size: 20px;
    font-weight: 600;
}

/* ----------- COIN / UPGRADE INFO ---------- */

.coin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coin-icon {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.coin-icon-small {
    height: 20px;
    width: 20px;
    object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
}

.upgrade-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0;
}

/* ---------- LOGIN PAGINA LAYOUT ---------- */
/* body tag in index.html heeft class="login-page" */

body.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* verticaal centreren */
    align-items: center;       /* horizontaal centreren */
    padding: 20px;
}

/* Logo boven het kaartje */
.login-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.login-logo img {
    width: 120px;
    height: auto;
}

/* Container zodat de kaart niet te breed wordt */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Het kaartje zelf (de login-box) */
.login-card {
    background: #10294f;
    padding: 30px 26px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Titel in het formulier */
.login-card h1 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
}

/* Form-groepen netjes onder elkaar */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

/* Login-knop mooi als primaire knop */
.btn-login {
    width: 100%;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: #4c9dff;
    color: #fff;
    transition: 0.25s;
}

.btn-login:hover {
    background: #357ddd;
    transform: translateY(-2px);
}

/* Tekst onder het formulier centreren */
.register-link {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}
