﻿/* =========================================================
   BASIS
========================================================= */

:root {
    --yellow: #DDDC00;
    --black: #000;
    --white: #fff;
}

body {
    font-family: "Nimbus Sans", "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
    color: var(--black);
}

h1, h2, h3 {
    font-weight: 600;
    margin-top: 0;
}

.page-title {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--black);
}

/* =========================================================
   HEADER & NAVIGATIE
========================================================= */

#header {
    background: var(--black);
    color: var(--yellow);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 42px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .nav a {
        color: var(--yellow);
        text-decoration: none;
        font-weight: bold;
        font-size: 15px;
        padding: 10px 15px;
    }

        .nav a:hover,
        .nav a.active {
            color: var(--white);
        }

/* Dropdown */
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
    color: var(--yellow);
    font-weight: bold;
    padding: 10px 15px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--black);
    border: 1px solid #333;
    min-width: 180px;
    z-index: 9999;
}

    .dropdown-content a {
        display: block;
        padding: 10px 14px;
        color: var(--white);
    }

        .dropdown-content a:hover {
            background: var(--yellow);
            color: var(--black);
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.active-dropdown > .dropbtn {
    color: var(--white);
}

/* Hamburger (mobiel) */
.hamburger {
    display: none;
    font-size: 28px;
    padding: 10px;
    cursor: pointer;
    color: var(--yellow);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column;
        background: var(--black);
        width: 100%;
        padding: 10px 0;
    }

        .nav a,
        .dropbtn {
            width: 100%;
            border-bottom: 1px solid #222;
            font-size: 18px;
        }

    .dropdown-content {
        position: static;
        border: none;
        background: #111;
    }
}

/* =========================================================
   CONTENT & CARDS
========================================================= */

#content {
    padding: 18px;
}

.card {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

    .card h3 {
        margin: 0 0 20px;
        font-size: 22px;
        font-weight: 700;
        color: var(--black);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .card .btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--yellow);
        color: var(--black);
        padding: 8px 14px;
        border-radius: 6px;
        font-weight: 600;
        text-decoration: none;
        font-size: 15px;
        margin-bottom: 10px;
    }

        .card .btn:hover {
            background: #c7c600;
        }

/* =========================================================
   INPUTS & BUTTONS
========================================================= */

input[type=text],
input[type=password],
select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 14px;
    font-size: 16px;
    background: var(--white);
    color: var(--black);
}

.btn {
    background: var(--yellow);
    color: var(--black);
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

    .btn:hover {
        background: #c7c600;
    }

/* =========================================================
   FOTO GRID
========================================================= */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.photo-item {
    margin-bottom: 25px;
}

.photo-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Delete button */
.photo-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-delete {
    background: var(--yellow);
    color: var(--black);
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
}

    .photo-delete:hover {
        background: #c7c600;
    }

/* Upload button */
.upload-section {
    margin-top: 20px;
}

.upload-btn {
    background: var(--yellow);
    color: var(--black);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

    .upload-btn:hover {
        background: #c7c600;
    }

.upload-input {
    display: none;
}

/* =========================================================
   BIKE CARDS (Dashboard + List)
========================================================= */

.bike-card.small {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
    align-items: center;
    margin-bottom: 10px;
}

.bike-card-thumb {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
}

.bike-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bike-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bike-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.bike-card-meta {
    font-size: 12px;
    color: #666;
}

.bike-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.bike-card-btn {
    display: inline-flex; /* voorkomt uitrekken */
    align-items: center;
    background: var(--yellow);
    color: #000;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    width: auto; /* belangrijk */
    max-width: fit-content; /* extra bescherming */
    white-space: nowrap; /* voorkomt afbreken */
}

    .bike-card-btn:hover {
        background: #c7c600;
    }

    .bike-card-btn.delete {
        background: #000;
        color: #fff;
    }

        .bike-card-btn.delete:hover {
            background: #333;
        }

/* =========================================================
   PAGING
========================================================= */

.paging {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.paging-btn {
    background: var(--yellow);
    color: #000;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}

    .paging-btn[disabled] {
        opacity: 0.4;
        pointer-events: none;
    }

.paging-info {
    font-size: 14px;
    color: #555;
}

/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.lightbox-img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 8px;
}

/* =========================================================
   LOGIN PAGINA
========================================================= */

body.login-page {
    background: #000 !important;
    color: #DDDC00 !important;
}

.login-container {
    max-width: 360px;
    margin: 80px auto;
    background: #000;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    text-align: center;
    color: #DDDC00;
}

.login-logo {
    height: 110px;
    margin-bottom: 28px;
}

.login-title {
    margin-bottom: 20px;
    color: #DDDC00;
    font-size: 22px;
    font-weight: bold;
}

.login-input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #444;
    margin-bottom: 14px;
    font-size: 16px;
    background: #111;
    color: #DDDC00;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #DDDC00;
    color: #000;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

    .login-btn:hover {
        background: #c7c600;
    }

.login-error {
    color: #ff4d4d;
    margin-bottom: 10px;
}

/* =========================================================
   FOOTER
========================================================= */

#footer {
    background: var(--black);
    color: var(--yellow);
    padding: 10px;
    text-align: center;
    font-size: 12px;
}
@media (max-width: 768px) {

    #header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: var(--yellow);
        padding: 10px;
    }

    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--black);
        padding: 10px 0;
    }

        .nav.active {
            display: flex;
        }

        .nav a,
        .dropbtn {
            width: 100%;
            padding: 14px 18px;
            border-bottom: 1px solid #222;
            font-size: 18px;
            text-align: left;
            color: var(--yellow);
        }

    .dropdown-content {
        position: static;
        width: 100%;
        background: #111;
        border: none;
    }

        .dropdown-content a {
            padding: 12px 18px;
            border-bottom: 1px solid #222;
            color: var(--white);
        }
}
/* ============================
   MOBILE NAVIGATION FIX
   ============================ */

@media (max-width: 768px) {

    /* Header layout */
    #header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }

    /* Hamburger zichtbaar */
    .hamburger {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: var(--yellow);
        padding: 10px;
    }

    /* NAV standaard verborgen */
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--black);
        padding: 10px 0;
    }

        /* NAV zichtbaar wanneer actief */
        .nav.active {
            display: flex;
        }

        /* Menu-items full width */
        .nav a,
        .dropbtn {
            width: 100%;
            padding: 14px 18px;
            border-bottom: 1px solid #222;
            font-size: 18px;
            text-align: left;
            color: var(--yellow);
            display: block;
        }

    /* Dropdown-content full width */
    .dropdown-content {
        position: static;
        width: 100%;
        background: #111;
        border: none;
    }

        .dropdown-content a {
            padding: 12px 18px;
            border-bottom: 1px solid #222;
            color: var(--white);
            display: block;
        }
}

/* FORCE FAB RIGHT BOTTOM */
.fab {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 9999 !important;
}


/* FORCE FAB RIGHT BOTTOM — ALWAYS */
.fab {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: #DDDC00 !important;
    color: #000 !important;
    font-size: 36px !important;
    font-weight: bold !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    z-index: 99999 !important;
}

/* Optional: iets hoger op mobiel */
@media (max-width: 768px) {
    .fab {
        bottom: 80px !important;
    }
}
.textarea-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-size: 16px;
    resize: vertical;
}