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

:root {
    --bg-outer: #e6f6f4; /* Light mint/cyan background */
    --bg-card: #fff4eb; /* Warm cream container */
    --bg-white: #ffffff;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --primary: #ff8c42; /* Bright orange */
    --primary-hover: #e87b35;
    --border-light: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    background-color: var(--bg-outer);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The main presentation container mimics the warm cream window */
.glass-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 4rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    width: 95%;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Headers */
h1 {
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

h2 {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Lists */
ul {
    text-align: left;
    margin-top: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.15rem;
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

li::before {
    content: '•';
    color: var(--primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}

/* Input group */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 400px;
}

input[type="text"] {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
    text-align: center;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.15);
}

/* Primary Orange Pill Button */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 1rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 15px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.4);
}

/* Secondary Button (for admin) */
.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--bg-white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0.25rem;
}

.btn-secondary:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

/* Quiz Buttons Grid */
.answers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 800px;
}

.btn-answer {
    background-color: var(--bg-white);
    border: 2px solid var(--bg-white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    color: var(--text-dark);
    padding: 2.5rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-answer:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.btn-answer.selected {
    border-color: var(--primary);
}

/* Checkmark in top right for answers */
.btn-answer::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}

.btn-answer.selected::before {
    background-color: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-answer:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Timer */
.timer-container {
    width: 100%;
    max-width: 400px;
    height: 10px;
    background: #ffe5d4;
    border-radius: 999px;
    margin-top: 1.5rem;
    overflow: hidden;
    display: none;
}

.timer-bar {
    height: 100%;
    width: 100%;
    background: var(--primary);
    transition: width 1s linear;
    border-radius: 999px;
}

.timer-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 0.5rem;
    display: none;
}

/* Admin Dashboard styles */
.admin-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
    text-align: left;
    width: 100%;
}
.admin-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.admin-section h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 800;
}
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Antwoorden Controller */
.btn-answer.correct-answer {
    background-color: #dcfce7 !important;
    border-color: #22c55e !important;
    color: #166534 !important;
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.2) !important;
}

.btn-answer.correct-answer::before {
    background-color: #22c55e;
    border-color: #22c55e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-answer.wrong-answer {
    background-color: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
    opacity: 0.8;
}

/* Leaderboard */
.leaderboard-list {
    margin-top: 2rem;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    font-size: 1.25rem;
    font-weight: 700;
    border: 2px solid var(--border-light);
    transition: transform 0.2s;
}

.leaderboard-item:hover {
    transform: translateX(5px);
}

.leaderboard-rank {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
}

.rank-1 .rank-badge { background: #fbbf24; box-shadow: 0 4px 10px rgba(251, 191, 36, 0.4); }
.rank-1 { border-color: #fbbf24; }
.rank-2 .rank-badge { background: #94a3b8; box-shadow: 0 4px 10px rgba(148, 163, 184, 0.4); }
.rank-3 .rank-badge { background: #b45309; box-shadow: 0 4px 10px rgba(180, 83, 9, 0.4); }
.rank-other .rank-badge { background: var(--text-muted); }

.leaderboard-score {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.5rem;
}

 / *   T o g g l e   S w i t c h   * / 
 . s w i t c h   { 
     p o s i t i o n :   r e l a t i v e ; 
     d i s p l a y :   i n l i n e - b l o c k ; 
     w i d t h :   6 0 p x ; 
     h e i g h t :   3 4 p x ; 
 } 
 . s w i t c h   i n p u t   { 
     o p a c i t y :   0 ; 
     w i d t h :   0 ; 
     h e i g h t :   0 ; 
 } 
 . s l i d e r   { 
     p o s i t i o n :   a b s o l u t e ; 
     c u r s o r :   p o i n t e r ; 
     t o p :   0 ;   l e f t :   0 ;   r i g h t :   0 ;   b o t t o m :   0 ; 
     b a c k g r o u n d - c o l o r :   # c c c ; 
     t r a n s i t i o n :   . 4 s ; 
 } 
 . s l i d e r : b e f o r e   { 
     p o s i t i o n :   a b s o l u t e ; 
     c o n t e n t :   ' ' ; 
     h e i g h t :   2 6 p x ; 
     w i d t h :   2 6 p x ; 
     l e f t :   4 p x ; 
     b o t t o m :   4 p x ; 
     b a c k g r o u n d - c o l o r :   w h i t e ; 
     t r a n s i t i o n :   . 4 s ; 
 } 
 i n p u t : c h e c k e d   +   . s l i d e r   { 
     b a c k g r o u n d - c o l o r :   v a r ( - - p r i m a r y ) ; 
 } 
 i n p u t : c h e c k e d   +   . s l i d e r : b e f o r e   { 
     t r a n s f o r m :   t r a n s l a t e X ( 2 6 p x ) ; 
 } 
 . s l i d e r . r o u n d   { 
     b o r d e r - r a d i u s :   3 4 p x ; 
 } 
 . s l i d e r . r o u n d : b e f o r e   { 
     b o r d e r - r a d i u s :   5 0 % ; 
 } 
 
 . s t u d e n t - l i s t - i t e m   { 
         d i s p l a y :   f l e x ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
         a l i g n - i t e m s :   c e n t e r ; 
         b a c k g r o u n d :   v a r ( - - b g - w h i t e ) ; 
         p a d d i n g :   0 . 5 r e m   1 r e m ; 
         b o r d e r - r a d i u s :   8 p x ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r - l i g h t ) ; 
 } 
 . b t n - k i c k   { 
         b a c k g r o u n d - c o l o r :   # e f 4 4 4 4 ; 
         c o l o r :   w h i t e ; 
         b o r d e r :   n o n e ; 
         p a d d i n g :   0 . 4 r e m   0 . 8 r e m ; 
         b o r d e r - r a d i u s :   8 p x ; 
         c u r s o r :   p o i n t e r ; 
         f o n t - w e i g h t :   7 0 0 ; 
         t r a n s i t i o n :   b a c k g r o u n d - c o l o r   0 . 2 s ; 
 } 
 . b t n - k i c k : h o v e r   { 
         b a c k g r o u n d - c o l o r :   # d c 2 6 2 6 ; 
 } 
  
 