﻿:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --muted: #6b7280;
    --accent: #2563eb;
    --radius: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--bg), #eef2ff);
    color: #0f172a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: var(--accent);
    color: white;
    padding: 24px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

main {
    flex: 1;
    padding: 32px;
}

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

/* Boekenlijst */
.book-list {
    margin-bottom: 32px;
}

.book-item {
    padding: 12px 16px;
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16,24,40,0.06);
}

    .book-item:hover {
        background: rgba(37,99,235,0.05);
    }

/* Boekdetail card */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 6px 24px rgba(16,24,40,0.08);
    padding: 24px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.info {
    flex: 1;
}

.cover {
    flex: 0 0 300px;
    border-radius: 10px;
    overflow: hidden;
    background: #e9eefb;
}

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

.title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.code {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.authors {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.pill {
    background: rgba(37,99,235,0.1);
    color: var(--accent);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
}

.category {
    display: inline-block;
    background: rgba(37,99,235,0.15);
    color: var(--accent);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.description {
    color: #111827;
    line-height: 1.5;
    font-size: 15px;
}

.status {
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 14px;
}
.status-dot {
    display: inline-block;
    width: 20px; /* groter dan 12px */
    height: 20px; /* groter dan 12px */
    border-radius: 50%; /* blijft rond */
    margin-right: 8px;
    vertical-align: middle; /* netjes uitlijnen met tekst */
}
.available {
    color: green;
}

.borrowed {
    color: red;
}
.Beschikbaar::before {
    content: "\2714"; /* ✔ */
    color: green;
    font-size: 20px;
}

.Uitgeleend::before {
    content: "\2716"; /* ✖ */
    color: red;
    font-size: 20px;
}
footer {
    background: #111827;
    color: #e5e7eb;
    text-align: center;
    padding: 16px;
    font-size: 14px;
}
.fullBanner {
	display:block;
	max-width: 100%;
}
.smallBanner {
	display:none;
	max-width: 100%;
}

@media (max-width: 768px) {
    .card {
        flex-direction: column-reverse;
    }

    .cover {
        width: 100%;
    }
	.fullBanner {
		display:none;
		max-width: 100%;
	}
	.smallBanner {
		display:block;
		max-width: 100%;
	}
}

.top-row {
    padding: 10px 20px;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center; /* centreren */
}

.filters-container {
    width: 90%;
    max-width: 1100px; /* de bannerbreedte */
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

select, input[type="text"] {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

select {
    flex: 0 0 auto;
}

input[type="text"] {
    flex: 1 1 auto;    /* neemt resterende ruimte in */
    min-width: 150px;
}

select:focus, input:focus {
    border-color: #0077cc;
    outline: none;
}

.btn {
    background: #0077cc;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    flex: 0 0 auto;
}

.btn:hover {
    background: #005fa3;
}

/* Mobiel */
@media (max-width: 600px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    select, input[type="text"], .btn {
        width: 100%;
        max-width: none;
    }
}
