body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    transition: all 0.3s ease;
}

#app {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 480px;
    text-align: center;
    position: relative;
}

/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.brand-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.brand-title span {
    color: #00c853;
}

.tagline {
    color: #64748b;
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Topbar Knoppen */
#top-bar {
    position: fixed;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 1000;
}

#top-bar button {
    width: auto;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 12px;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin: 0;
}

/* Digibord Modus */
body.digibord-modus { background: #0f172a; }
body.digibord-modus #app { max-width: 800px; background: #1e293b; color: #fff; font-size: 22px; }
body.digibord-modus h1, body.digibord-modus h2, body.digibord-modus p, body.digibord-modus .brand-title { color: #fff; }
body.digibord-modus .woord { font-size: 28px; padding: 12px; background: #0f172a; color: #fff; border-color: #334155; }
body.digibord-modus #timer { font-size: 80px; }

/* Grid Instellingen */
.instellingen-grid { display: flex; justify-content: space-between; gap: 10px; margin: 15px 0; }
.instellingen-grid div { flex: 1; }
.instellingen-grid input { width: 100%; text-align: center; }

/* Knoppen & Velden */
button {
    background-color: #00c853;
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin: 8px 0;
    transition: transform 0.1s, background-color 0.2s;
}

button:hover { opacity: 0.95; transform: translateY(-2px); }
button.secundair { background-color: #64748b; }

textarea, input {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    margin-top: 5px;
}

#spelcode-display {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #d97706;
    background: #fef3c7;
    padding: 10px;
    border-radius: 8px;
}

#scorebord {
    display: flex;
    justify-content: space-around;
    background: #f1f5f9;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 15px;
}

body.digibord-modus #scorebord { background: #334155; color: #fff; }

#timer { font-size: 56px; font-weight: bold; color: #ef4444; margin: 5px 0; }
#timer-bar-outer { width: 100%; height: 14px; background-color: #e2e8f0; border-radius: 7px; overflow: hidden; margin-bottom: 15px; }
#timer-bar-inner { height: 100%; width: 100%; background-color: #22c55e; transition: width 1s linear, background-color 1s linear; }

#kaartje { background: #fefce8; border: 2px solid #fef08a; border-radius: 12px; padding: 15px; margin: 15px 0; }
.instructie { font-size: 13px; color: #64748b; margin-bottom: 8px; }
.woord { font-size: 20px; font-weight: 600; padding: 10px; margin: 6px 0; background: white; border: 2px solid #cbd5e1; border-radius: 8px; cursor: pointer; user-select: none; }
.woord.geraden { background-color: #22c55e !important; color: white !important; border-color: #16a34a !important; text-decoration: line-through; }
.woord.gepast { background-color: #f1f5f9 !important; color: #94a3b8 !important; border-color: #cbd5e1 !important; text-decoration: line-through; opacity: 0.6; pointer-events: none; }

.win-banner { background: #eab308; color: #1e293b; padding: 12px; border-radius: 8px; font-weight: bold; font-size: 20px; margin-bottom: 15px; }
.scan-container { margin: 10px 0; }
.ocr-btn { background-color: #8b5cf6 !important; margin: 0 !important; }
#ocr-status { margin-top: 8px; font-size: 14px; font-weight: bold; color: #c2410c; background: #ffedd5; padding: 8px; border-radius: 6px; }