/* -------- Algemene styling -------- */
body {
    background: #0f0f0f;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* -------- Container + Card -------- */
.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.card.main-card {
    background: #151515;
    padding: 35px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.6),
                inset 0 0 20px rgba(255,255,255,0.03);
    animation: fadein 0.6s ease-out;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -------- Titels -------- */
.title {
    font-size: 32px;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 25px;
}

/* -------- Input + button -------- */
.code-form label {
    display: block;
    font-size: 13px;
    color: #b1b1b1;
    margin-bottom: 8px;
}

.code-form input {
    width: 100%;
    padding: 14px;
    border-radius: 9px;
    border: none;
    outline: none;
    font-size: 17px;
    margin-bottom: 15px;
    background: #1f1f1f;
    color: white;
    text-align: center;
    letter-spacing: 2px;
    border: 1px solid #333;
    transition: 0.2s ease;

    /* FIX */
    box-sizing: border-box;   /* ← zorgt dat padding niet meer duwt */
    margin-left: 0 !important; 
    margin-right: 0 !important;
}


.code-form input:focus {
    border-color: #9147ff;
    box-shadow: 0 0 8px #9147ffaa;
}

.code-form button {
    width: 100%;
    padding: 14px;
    margin-top: 5px;
    background: linear-gradient(135deg, #7b2aff, #b16cff);
    border: none;
    border-radius: 9px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.code-form button:hover {
    box-shadow: 0 0 15px #a36cffaa;
    transform: translateY(-2px);
}

/* -------- Alerts -------- */
.alert {
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 18px;
    font-weight: 500;
    animation: fadein 0.4s ease-out;
}

.alert-error {
    background: #ff2f2f22;
    border: 1px solid #ff3d3d;
    color: #ff6b6b;
    box-shadow: 0 0 15px #ff2f2faa;
}

.alert-success {
    background: #2fff6b22;
    border: 1px solid #42ff7a;
    color: #70ffaa;
    box-shadow: 0 0 15px #2fff6baa;
}

/* -------- Kleine tekst -------- */
.small-note {
    margin-top: 18px;
    color: #888;
    font-size: 12px;
}
/* --- Mobiele weergave optimaliseren --- */
@media (max-width: 600px) {

    body {
        padding: 10px;
        height: auto;
        display: block;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .card.main-card,
    .card {
        padding: 20px 18px;
        border-radius: 12px;
        margin-top: 15px;
        margin-bottom: 15px;
        box-shadow: 0 0 20px rgba(0,0,0,0.4);
    }

    .title {
        font-size: 26px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    input, button {
        font-size: 16px;
        padding: 12px;
    }

    .code-form input {
        letter-spacing: 1px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }

    .del {
        font-size: 14px;
    }
}
