body {
    background-image: url('/images/achtergrond.jpg'); /* Pad naar je afbeelding */
    background-size: cover; /* Zorgt ervoor dat de afbeelding de hele viewport bedekt */
    background-position: center; /* Centreert de afbeelding */
    background-repeat: no-repeat; /* Voorkomt herhaling */
    background-attachment: fixed; /* Houdt de achtergrond vast bij scrollen */
    background-color: #FEFFFA;
    color: black;
    font: 1em "Trebuchet MS", Verdana, Arial, sans-serif;
}

a {
    color: #990D28;
    text-decoration: none;
}

a:hover { text-decoration: underline; color : #111; }


div.MessagePanel {
    text-align: center;
    font-weight: bold;
    width: 98%;
    background-color: #FFFFF0;
    border: 1px solid #B9CFD8;
    margin-bottom: 10px;
    position: relative;
}

hr {
    visibility: hidden;
}
h1 {
    border-bottom:1px dotted #AAAAAA;
    color:#666666;
    font-size:58px;
    font-weight:100;
    letter-spacing:-1px;
    margin:14px 0 7px;
    padding-bottom:4px;
}

li { list-style-position: inside }

h1 {
    text-decoration: underline;
    color:#666666;
    font-size:26px;
    font-weight:100;
    letter-spacing:-1px;
    margin-bottom: 5px;
    margin-top: 15px;
    padding-bottom:4px;
}
h2 {
    color:#666666;
    font-size:26px;
    font-weight:100;
    letter-spacing:-1px;
    margin-bottom: 5px;
    margin-top: 15px;
    padding-bottom:4px;
}

h3 {
    border-bottom:1px dotted #AAAAAA;
    color:#666666;
    font-size:22px;
    font-weight:100;
    letter-spacing:-1px;
    margin:14px 0 7px;
    padding-bottom:4px;
}

h3 {
    color:#666666;
    font-size:22px;
    font-weight:100;
    letter-spacing:-1px;
    margin:14px 0 7px;
    padding-bottom:4px;
}

h4 {
    border-bottom:1px dotted #AAAAAA;
    color:#666666;
    font-size:16px;
    font-weight:100;
    letter-spacing:-1px;
    margin:14px 0 7px;
    padding-bottom:4px;
}

div.MessagePanel .SuccessMessage {
    color: green;
}

div.MessagePanel .ErrorMessage {
    color: red;
}

#editor {
    min-height: 600px !important;
    border: 1px solid #ddd;
    padding: 10px;
}

th {
    background-color: #d25a71 !important;
    color: white;
}

td {
    background-color: #913547 !important;
    color: white;
}

/* Minimalistische roze knoppen */
.btn {
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
}

/* Kleuren */
.btn-add {
    background-color: #ff85a2; /* Lichtroze */
    color: white;
}

.btn-read {
    background-color: #ffb3c6; /* Zacht roze */
    color: white;
}

.btn-edit {
    background-color: #ff6699; /* Donker roze */
    color: white;
}

.btn-delete {
    background-color: #ff3366; /* Diep roze */
    color: white;
}

/* Hover-effecten */
.btn:hover {
    opacity: 0.8;
}

/* Strakke, minimalistische tabel */
.table-hover tbody tr:hover {
    background-color: rgba(255, 182, 193, 0.2); /* Heel licht roze hover */
}

.table-light {
    background-color: #fff0f5; /* Lichtroze header */
}

/* Sidebar logo styling */
#sidebar-logo {
    width: 80%;  /* Zorgt dat het logo responsief is */
    max-width: 180px; /* Max breedte om het compact te houden */
    height: auto; /* Behoudt de aspect ratio */
    margin: 10px auto; /* Plaatst het logo in het midden */
    display: block; /* Zorgt dat het goed gecentreerd wordt */
}

/*!* Sidebar links (standaard donkerroze) *!*/
/*#sidebar .nav-link {*/
/*    color: #D81B60; !* Donkerroze *!*/
/*    padding: 12px;*/
/*    font-size: 18px;*/
/*    transition: color 0.3s, background-color 0.3s; !* Soepel effect *!*/
/*}*/

/*!* Hover effect: lichtere roze achtergrond met witte tekst *!*/
/*#sidebar .nav-link:hover {*/
/*    color: hotpink;*/
/*    border-radius: 5px; !* Optioneel: maakt de hover wat zachter *!*/
/*}*/

/* --- Sidebar shell ---------------------------------------------------- */
.sidebar {
    position: sticky; top: 0;
    display: flex; flex-direction: column;
    width: 240px; min-height: 100dvh;
    padding: 1.25rem 1rem;
    background: rgba(255,255,255,.65);         /* subtiel glas */
    backdrop-filter: blur(6px);
    border-right: 1px solid rgba(0,0,0,.06);
}

/* Logo/brand */
.sidebar .brand {
    display: block;
    padding: .25rem .5rem .75rem;
    margin-bottom: .25rem;
}
.sidebar .brand img { max-width: 160px; height: auto; }

/* Nav */
.nav { display: flex; flex-direction: column; gap: .25rem; margin-top: .5rem; }
.nav__section {
    margin: 1rem .5rem .25rem;
    font: 600 .8rem/1 Inter, system-ui, sans-serif;
    letter-spacing: .04em; text-transform: uppercase;
    color: #8a8a8a;
}

.nav__item {
    display: block;
    padding: .6rem .75rem;
    border-radius: .6rem;
    font: 500 1rem/1.3 Inter, system-ui, sans-serif;
    color: #2b2b2b;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .08s ease;
}
.nav__item:hover { background: rgba(0,0,0,.06); }
.nav__item:active { transform: translateY(1px); }

/* Actieve item (huidige pagina) */
.nav__item.is-active {
    background: #1f4fd2;   /* of je merk-kleur */
    color: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.04) inset;
}

/* Footer (user/admindropdown) */
.sidebar__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0,0,0,.08);
}
.userbtn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: .6rem;
    padding: .55rem .75rem;
    font: 500 .95rem/1 Inter, system-ui, sans-serif;
    color: #333;
    cursor: pointer;
}
.userbtn:hover { background: rgba(0,0,0,.04); }

/* Focus (toegankelijkheid) */
.nav__item:focus-visible, .userbtn:focus-visible {
    outline: 3px solid #1f4fd2; outline-offset: 2px;
}

/* Main content naast de sidebar */
.layout {
    display: grid; grid-template-columns: 240px 1fr;
}
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar {
        position: static; width: auto; min-height: auto;
        flex-direction: row; gap: .5rem; align-items: center;
        border-right: 0; border-bottom: 1px solid rgba(0,0,0,.06);
        backdrop-filter: none; background: rgba(255,255,255,.9);
    }
    .nav { flex-direction: row; gap: .25rem; overflow-x: auto; }
    .nav__section { display: none; }
    .sidebar__footer { margin-left: auto; border-top: 0; padding-top: 0; }
}



footer {
    padding-left: 20px; /* Laat de hele footer inspringen */
}

/* Forceer transparante achtergrond voor de hele tabel */
.table {
    background-color: transparent !important;
}

/* Forceer transparantie voor tbody en tr */
.table tbody, .table tbody tr {
    background-color: transparent !important;
}

/* Debug: Verwijder expliciet Bootstrap-achtergronden */
.table-striped tbody tr:nth-of-type(odd),
.table-hover tbody tr:hover {
    background-color: transparent !important;
}

/* Optioneel: Maak cellen ook transparant */
.table td {
    background-color: transparent !important;
}

//* Tabel wrapper: geen achtergrond */
.table-responsive {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* Tabel header */
.table thead th {
    background: rgba(255, 255, 255, 0.25); /* transparant wit */
    backdrop-filter: blur(4px);            /* lichte blur voor leesbaarheid */
    font-weight: 600;
    color: #222;                           /* donkergrijs tekst */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: .75rem;
}

/* Rijen: transparant, alleen lichte onderlijn */
.table tbody tr {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.table-hover tbody tr:hover {
    background: rgba(0,0,0,0.05); /* zachte grijze highlight */
}

/* Story titel als nette donkere link */
.story-link {
    color: #222;
    font-weight: 600;
    text-decoration: none;
}
.story-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Auteur: iets subtieler */
.table td {
    color: #f0f0f0;
}

/* Actie-knoppen transparant */
.btn-edit, .btn-delete {
    background: rgba(255,255,255,0.15);
    border: none;
    padding: .35rem .6rem;
    border-radius: .5rem;
}
.btn-edit:hover, .btn-delete:hover {
    background: rgba(255,255,255,0.3);
}

p.align-center {
    text-align: center;
}
p.align-left {
    text-align: left;
}
p.align-right {
    text-align: right;
}
/* Shell van de story page */
.story-page {
    max-width: 72ch;          /* prettige regelbreedte */
    margin: 3rem auto 5rem;   /* ruimere marges top/bottom */
    padding: 0 1rem;          /* beetje ruimte op mobiel */
}

/* Titel + auteur */
.story-header h1 {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 600;
    font-size: 2.2rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.2em;
}
.story-header .meta {
    margin: 0 0 2.25rem;
    color: #666;
    font-size: .95rem;
    font-family: Inter, Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Verhaaltekst */
.story-content {
    --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
    font-family: var(--font-serif);
    font-size: 1.125rem;       /* ~18px */
    line-height: 1.8;
    color: #1b1b1b;
    letter-spacing: .01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    hyphens: auto;
}

.story-content p { margin: 0 0 1.25em; }

/* Alleen eerste paragraaf drop cap */
.story-content p:first-of-type::first-letter {
    font-size: 3.2em;
    float: left;
    line-height: .85;
    margin-right: .12em;
    font-weight: 700;
}

.story-content h2,
.story-content h3 {
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-style: italic;   /* boekachtig gevoel */
    color: #222;
    margin: 2.5em 0 1em;
    line-height: 1.4;
    border: none;         /* geen lijnen */
    text-align: left;     /* expliciet links */
}

.story-content h2 {
    font-size: 1.3rem;
}

.story-content h3 {
    font-size: 1.15rem;
    font-weight: bold;     /* iets lichter dan h2 */
    font-style: normal;
}

/* Blockquote */
.story-content blockquote {
    margin: 1.8em 0;
    padding: .25em 1.25em;
    border-left: 3px solid #e5e5e5;
    color: #444;
    font-style: italic;
}

/* HR / scene-break */
.story-content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 2.5rem 0;
}

/* Uitlijning (uit sanitizer) */
.story-content .align-left   { text-align: left; }
.story-content .align-center { text-align: center; }
.story-content .align-right  { text-align: right; }
.story-content .align-justify{ text-align: justify; }

/* Terug link */
.back-link {
    margin-top: 3rem;
    font-family: Inter, Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    text-align: center;
}
.back-link a {
    color: #444;
    text-decoration: none;
}
.back-link a:hover {
    text-decoration: underline;
    text-underline-offset: .15em;
}
