/* ============================= */
/* BASISINSTELLINGEN */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4faff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================= */
/* LAYOUT */
/* ============================= */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ============================= */
/* HEADER / NAVIGATIE */
/* ============================= */
header {
    background: #0066cc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo a {
    color: white;
    font-size: 26px;
    font-weight: bold;
}

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

nav a {
    color: white;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.user-info {
    position: relative;
    cursor: pointer;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    min-width: 160px;
}

.dropdown a {
    display: block;
    padding: 10px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.dropdown a:hover {
    background: #f1f1f1;
}

.user-info:hover .dropdown {
    display: block;
}

/* ============================= */
/* HAMBURGER */
/* ============================= */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: white;
}

.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        top: 16px;
        right: 20px;
    }

    nav {
        display: none;
        flex-direction: column;
        background: #0066cc;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 20px;
    }

    nav.active {
        display: flex;
    }

    nav a,
    .user-info {
        width: 100%;
        margin: 10px 0;
    }
}

/* ============================= */
/* HERO */
/* ============================= */
.hero {
    background: linear-gradient(to right, #e0f7ff, #f4faff);
    padding: 60px 20px;
    border-radius: 20px;
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ============================= */
/* KNOPPEN */
/* ============================= */
.btn {
    background: #0070dd;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 112, 221, 0.2);
}

.btn:hover {
    background: #005bb5;
    transform: translateY(-2px);
}

/* ============================= */
/* FORMULIEREN */
/* ============================= */
form input,
form textarea,
form select {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: #3399ff;
    box-shadow: 0 0 6px rgba(51, 153, 255, 0.3);
    outline: none;
}

/* ============================= */
/* CARDS & PRODUCTEN */
/* ============================= */
.card,
.product-card,
.ticket-card,
.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.product-grid,
.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.product-card:hover,
.dashboard-card:hover,
.ticket-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* ============================= */
/* DASHBOARD SPECIFIEK */
/* ============================= */
.dashboard-card {
    background: linear-gradient(135deg, #0077cc, #005fa3);
    color: white;
    transition: transform 0.3s ease;
}

.dashboard-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.dashboard-card p {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ============================= */
/* BADGES */
/* ============================= */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.badge-medium {
    background: #ffaa00;
}

.badge-snel {
    background: #e74c3c;
}

.badge-traag {
    background: #6c757d;
}

/* ============================= */
/* FOOTER */
/* ============================= */
footer {
    background: #0066cc;
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 15px;
    border-top: 4px solid #0055aa;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.company-info {
    font-weight: 500;
    margin-bottom: 8px;
}

.legal-info {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 14px;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links a {
    color: white;
    text-decoration: underline;
}

.footer-links a:hover {
    color: #cce6ff;
}

/* ============================= */
/* DONKERE MODUS */
/* ============================= */
body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode header,
body.dark-mode footer {
    background: #111;
    border-top-color: #222;
}

body.dark-mode main,
body.dark-mode .card,
body.dark-mode .btn,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode .product-card,
body.dark-mode .dashboard-card,
body.dark-mode .ticket-card {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}

body.dark-mode .btn {
    background: #004b87;
}

body.dark-mode .btn:hover {
    background: #003b6b;
}

body.dark-mode .dropdown a {
    color: #fff;
}

body.dark-mode .dropdown a:hover {
    background: #333;
}

/* ============================= */
/* RESPONSIVE AANPASSINGEN */
/* ============================= */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    nav a {
        font-size: 1rem;
    }
}

/* ============================= */
/* ANIMATIES */
/* ============================= */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}