/* Algemene instellingen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f5f8fa;
    color: #222;
    line-height: 1.6;
}

/* Header */
header {
    background: #0a3d62;
    color: white;
    text-align: center;
    padding: 1rem;
}

.logo {
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.nav-placeholder {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hero sectie */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0a3d62, #3c6382);
    color: white;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn {
    background: #feca57;
    color: #222;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn:hover {
    background: #ffda79;
}

/* Info sectie */
.info {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.info h2 {
    margin-bottom: 1rem;
    color: #0a3d62;
}

/* Tools sectie */
.tools {
    background: white;
    padding: 3rem 2rem;
    text-align: center;
}

.tools h2 {
    color: #0a3d62;
    margin-bottom: 2rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tool {
    background: #f1f2f6;
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.tool:hover {
    transform: translateY(-5px);
}

.tool h3 {
    margin-bottom: 0.5rem;
}

.tool-btn {
    display: inline-block;
    margin-top: 1rem;
    background: #0a3d62;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
}

.tool-btn:hover {
    background: #1e6091;
}

/* Contact sectie */
.contact {
    background: #f5f8fa;
    text-align: center;
    padding: 3rem 2rem;
}

.contact h2 {
    color: #0a3d62;
    margin-bottom: 1rem;
}

.insta-btn {
    display: inline-block;
    margin-top: 1rem;
    background: #d62976;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}

.insta-btn:hover {
    background: #f06aa3;
}

/* Footer */
footer {
    background: #0a3d62;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Mobielvriendelijke opmaak */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .info,
    .tools,
    .contact {
        padding: 2rem 1rem;
    }

    .btn,
    .tool-btn,
    .insta-btn {
        width: 100%;
        text-align: center;
    }
}

/* QR Generator sectie */
.qr-section {
    background: #ffffff;
    padding: 3rem 2rem;
    text-align: center;
}

.qr-container {
    max-width: 500px;
    margin: auto;
    background: #f1f2f6;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.qr-container h2 {
    color: #0a3d62;
    margin-bottom: 1rem;
}

.qr-container p {
    margin-bottom: 1.5rem;
}

.qr-container input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.qr-container input:focus {
    outline: none;
    border-color: #0a3d62;
}

.qr-output {
    margin-top: 2rem;
}

.qr-output canvas {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobielvriendelijk */
@media (max-width: 600px) {
    .qr-container {
        padding: 1.5rem;
    }

    .qr-container input {
        font-size: 0.95rem;
    }
}

/* Wachtwoordgenerator layout */
.generator-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.option-row input[type="number"],
.option-row input[type="text"] {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.checkboxes label {
    font-size: 0.95rem;
    color: #0a3d62;
}

#generatePassword {
    margin-top: 1.5rem;
}

#passwordOutput {
    width: 100%;
    margin-top: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.8rem;
    background: #fff;
}

/* Kopieer knop styling */
#copyBtn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #0a3d62;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

#copyBtn:hover {
    background: #1e6091;
}

/* Wachtwoordsterkte feedback */
#passwordStrength {
    margin-top: 1rem;
    /* Extra ruimte toegevoegd */
    height: 15px;
    border-radius: 8px;
    background: #e0e0e0;
    position: relative;
    width: 100%;
}

#strengthBar {
    height: 100%;
    width: 0%;
    border-radius: 8px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

#strengthText {
    display: block;
    margin-top: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
}

/* Kleurcodes voor sterktebar */
.very-weak {
    background-color: #ff4d4d;
}

/* Rood */
.weak {
    background-color: #ff944d;
}

/* Oranje */
.moderate {
    background-color: #ffeb3b;
}

/* Geel */
.good {
    background-color: #9be564;
}

/* Lichtgroen */
.excellent {
    background-color: #4cd964;
}

/* Groen */