/* ==========================================
   1. ALGEMENE STIJLEN & ACHTERGROND
   ========================================== */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #2b1d0c;
    color: #f4e8c1;
    max-width: 800px; 
    margin: 40px auto; 
    padding: 20px; 
    line-height: 1.6; 
}

h1 {
    text-align: center;
    color: #ffd700;
    text-shadow: 2px 2px 4px #000;
    font-size: 32px;
    margin-bottom: 25px;
}

h2, h3 {
    color: #ffe89c;
    text-shadow: 1px 1px 2px #000;
    margin-top: 0;
    border-bottom: 2px dashed #ffd700;
    padding-bottom: 8px;
}

label {
    font-weight: bold;
    color: #f4e8c1;
    text-shadow: 1px 1px 1px #000;
    display: block;
    margin-top: 10px;
}

code {
    background-color: #1a1006;
    color: #ffd700;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 16px;
    letter-spacing: 0.5px;
    border: 1px solid #a67c52;
}

/* ==========================================
   2. FORMULIEREN & INPUTS
   ========================================== */
input[type="text"], 
input[type="password"] { 
    width: 100%; 
    padding: 12px; 
    margin: 6px 0 12px; 
    box-sizing: border-box; 
    background-color: #1a1006;
    border: 2px solid #a67c52;
    color: #fff;
    border-radius: 4px;
    font-size: 16px; 
}

input:focus {
    border-color: #ffd700;
    outline: none;
}

/* ==========================================
   3. DE SCHATKIST BOX
   ========================================== */
.box { 
    border: 8px solid #3d2314;
    outline: 4px solid #ffd700;
    padding: 25px; 
    margin-bottom: 25px; 
    border-radius: 12px; 
    background: repeating-linear-gradient(
        0deg,
        #5c3a21,
        #5c3a21 30px,
        #4a2e19 30px,
        #4a2e19 32px
    );
    box-shadow: 0 10px 25px rgba(0,0,0,0.8), inset 0 0 15px rgba(0,0,0,0.6);
    position: relative;
}

.box::before {
    content: "🪙";
    position: absolute;
    top: -18px;
    left: calc(50% - 12px);
    font-size: 20px;
    background: #ffd700;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 5px #000;
}

/* ==========================================
   4. KNOPPEN (GOUDEN SLUITINGEN)
   ========================================== */
button { 
    background: linear-gradient(180deg, #ffd700 0%, #caa000 100%);
    color: #2b1d0c; 
    font-weight: bold;
    font-size: 15px;
    border: 2px solid #fff; 
    padding: 10px 15px; 
    cursor: pointer; 
    border-radius: 6px; 
    box-shadow: 0 4px 0 #8c6f00, 0 5px 10px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
}

button:hover {
    background: linear-gradient(180deg, #ffe033 0%, #e6b800 100%);
}

button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #8c6f00;
}

.btn-full {
    width: 100%;
}

button.danger { 
    background: linear-gradient(180deg, #dc3545 0%, #a71d2a 100%);
    color: #fff;
    box-shadow: 0 4px 0 #6c0f17, 0 5px 10px rgba(0,0,0,0.5);
}

button.secondary { 
    background: linear-gradient(180deg, #17a2b8 0%, #117a8b 100%);
    color: #fff;
    box-shadow: 0 4px 0 #0c525d;
    font-size: 13px;
    padding: 8px 12px;
}

/* ==========================================
   5. MELDINGEN & LINKS
   ========================================== */
.alert { 
    background: #8b0000; 
    color: #fff; 
    border: 2px solid #ff4500;
    padding: 12px; 
    margin-bottom: 20px; 
    border-radius: 6px; 
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.links { 
    text-align: center; 
    margin-top: 18px; 
    font-size: 14px; 
}

.links a, a { 
    color: #ffd700 !important; 
    text-decoration: none; 
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

.links a:hover, a:hover { 
    text-decoration: underline; 
}

/* ==========================================
   6. TABEL VOOR SCHATTEN (DESKTOP)
   ========================================== */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 20px; 
    background: #3d2314;
    border: 3px solid #ffd700;
    border-radius: 6px;
    overflow: hidden;
}

th, td { 
    border: 1px solid #5c3a21; 
    padding: 10px; 
    text-align: left; 
}

th { 
    background-color: #2b1d0c; 
    color: #ffd700;
}

tr:nth-child(even) {
    background-color: #4a2e19;
}

/* ==========================================
   7. TOOLTIP VOOR BEVEILIGINGSUITLEG (?)
   ========================================== */
.info-icoon {
    display: inline-block;
    background: #ffd700;
    color: #2b1d0c;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    cursor: pointer;
    position: relative;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.info-icoon .tooltip {
    visibility: hidden;
    opacity: 0;
    width: 320px;
    background-color: #1a1006;
    color: #f4e8c1;
    text-align: left;
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 10;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.info-icoon:hover .tooltip,
.info-icoon:focus .tooltip {
    visibility: visible;
    opacity: 1;
}

/* ==========================================
   8. SPECIAAL VOOR MOBIELE SCHERMEN (< 600px)
   - Tabel wordt omgebouwd tot losse kaarten
   ========================================== */
@media (max-width: 600px) {
    body {
        margin: 8px;
        padding: 10px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 16px;
    }

    .box {
        padding: 12px;
    }

    /* Verberg de standaard tabelkoppen op mobiel */
    table thead {
        display: none;
    }

    /* Maak van elke rij een zelfstandig 'kaartje' */
    table, tr, td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    table {
        border: none;
        background: transparent;
    }

    tr {
        background: #3d2314;
        border: 2px solid #ffd700;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    }

    tr:nth-child(even) {
        background-color: #3d2314; /* Zorg voor gelijkmatige kleur per kaart */
    }

    td {
        border: none;
        padding: 6px 0;
        text-align: left;
        position: relative;
    }

    /* Voeg duidelijke labels toe vóór de celinhoud via CSS */
    td:nth-child(1):before {
        content: "Dienst: ";
        font-weight: bold;
        color: #ffd700;
    }

    td:nth-child(2):before {
        content: "Gebruiker: ";
        font-weight: bold;
        color: #ffd700;
    }

    td:nth-child(3):before {
        content: "Wachtwoord: ";
        font-weight: bold;
        display: block;
        color: #ffd700;
        margin-bottom: 2px;
    }

    td code {
        font-size: 14px;
        display: inline-block;
        margin-bottom: 5px;
    }

    td button.secondary {
        display: inline-block;
        margin-left: 8px;
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Actieknop (Wis) onderaan de kaart */
    td.mobiel-verborgen, 
    td:nth-child(4) {
        display: block !important;
        margin-top: 8px;
        border-top: 1px dashed #5c3a21;
        padding-top: 8px;
        text-align: right;
    }
    
    td:nth-child(4) button {
        width: 100%;
    }
}

/* ==========================================
   9. FOOTER CREDITS
   ========================================== */
.credits {
    text-align: center;
    font-size: 12px;
    color: #a67c52;
    margin-top: 40px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px #000;
}