﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* Header styling */
header .navbar, .navbar {
    background: #FEF468 !important;
    color: #046BD2 !important;
    box-shadow: 0 2px 12px rgba(4, 107, 210, 0.07);
    border-radius: 0 0 16px 16px;
    border-bottom: 1px solid #f3e97a;
    padding-bottom: 2%
}

/* Navbar links */
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .btn {
    color: #046BD2 !important;
    transition: color 0.2s, background 0.2s;
}

.navbar .nav-link.active,
.navbar .nav-link:hover,
.navbar .btn:hover {
    color: #fff !important;
    background: #046BD2 !important;
    border-radius: 6px;
    text-decoration: none;
}

a.navbar-brand {
    white-space: nowrap;
    text-align: center;
    word-break: break-all;
    font-family: 'TimesNewRomanVM', 'Times New Roman', serif;
    font-size: 4rem;
    color: blue !important;
}

.vm-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center; /* centreert subtitle onder de titel */
    line-height: 1.1;
}

.vm-brand-subtitle {
    font-family: 'Segoe UI', Arial, sans-serif; /* vervang door gewenste font */
    font-size: 1rem;
    color: #046BD2;
    text-decoration: none;
    margin-top: -0.25rem; /* optioneel: iets dichter tegen de titel */
}

/* Provide sufficient contrast against white background */
a {
    color: #046BD2;
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover, a:focus {
    color: #003366;
    text-decoration: none;
}

.btn-primary {
    background-color: #046BD2;
    border-color: #046BD2;
    color: #fff;
    transition: background 0.2s, border 0.2s;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1b6ec2;
    border-color: #1b6ec2;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */


.border-top {
    border-top: 1px solid #e5e5e5;
}
.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-content {
    flex: 1 0 auto;
}

.footer {
    /* Verwijder position: absolute en bottom: 0 */
    width: 100%;
    background: #FEF468;
    color: #046BD2;
    border-top: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 8px rgba(4, 107, 210, 0.07);
    white-space: normal;
}

.footer a {
    text-decoration: none;
}

a.footer-brand {
    white-space: nowrap;
    text-align: center;
    word-break: break-all;
    font-family: 'TimesNewRomanVM', 'Times New Roman', serif;
    font-size: 4vh;
    color: blue !important;
}



@font-face {
    font-family: TimesNewRomanVM;
    src: url("../font/TimesNewRomanVM.otf") format("opentype");
}


.languagebutton
{
    border: none;
    padding: 0;
    margin-bottom: 5px;
    box-sizing: content-box;
    background-color: transparent;
}


/* Opmaak Alle Machines pagina */
/*****************************************************************/
.machine-card {
    transition: transform 0.15s, box-shadow 0.15s;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(4, 107, 210, 0.08);
    border: 1px solid #f3f3f3;
    background: #fcfcfc;
}

.machine-card-transparent {
    opacity: 0.5;
    filter: grayscale(60%);
}

.machine-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.card-img-top {
    background: #f8f9fa;
}


.machine-type-header {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Opmaak details pagina */
/*****************************************************************/
.pswp-gallery .img-fluid {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    object-fit: cover;
    height: 220px;
    width: 100%;
    background: #f8f9fa;
}

.pswp-gallery .img-fluid:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    z-index: 2;
}

.pswp-gallery .col-md-3 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.pswp-items {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.machine-details {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0.25rem 1rem;
    align-items: baseline;
}

.machine-details dt {
    font-weight: bold;
    white-space: nowrap;
}

.machine-details dd {
    margin: 0;
}

.main-image {
    width: 100%;
    max-width: 700px;
    max-height: 500px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.thumbnail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.thumbnail-row img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.thumbnail-row img:hover {
    box-shadow: 0 0 0 2px #007bff;
}


/* Media */
/*****************************************************************/


@media (min-width: 576px) {
    html {
        font-size: 1.00rem;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 1.05rem;
    }
}

@media (min-width: 992px) {
    html {
        font-size: 1.1rem;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 1.2rem;
    }
}



/* Card styling */
.card, .machine-card {
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(4, 107, 210, 0.08);
    border: 1px solid #f3f3f3;
    background: #fcfcfc;
}

/* Machine card thumbnails: always square + center-cropped, with a sane maximum size */
.machine-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Mini machine card (floater/sidebar): thumbnail left, text right */
.machine-card-mini {
    border-radius: 14px;
}

.machine-card-mini .min-w-0 {
    min-width: 0; /* enables text-truncate inside flex */
}

.machine-card-mini-img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    background: #f8f9fa;
    display: block;
}

.machine-card-mini-title {
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #046BD2;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Kleine accenten */
hr {
    border-top: 2px solid #046BD2;
    opacity: 0.7;
    border-radius: 2px;
}


/* Minder ruimte tussen categorie-menu links */
.category-menu .nav-item {
    margin-bottom: 0.15rem; 
}

.category-menu .nav-link {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    font-size: 0.9rem; 
}


.category-menu-card,
.category-menu-card .card-header,
.category-menu-card .card-body {
    background-color: #FEF468;
}

.vm-shell {
    display: flex;
    flex-direction: column; /* mobiel: menu boven content */
}

.vm-sidebar {
    width: 100%; /* mobiel: volledige breedte */
}

.vm-content {
    min-width: 0;
}

/* Vanaf md: vaste sidebar links + content rechts */
@media (min-width: 768px) {
    .vm-shell {
        flex-direction: row;
        align-items: flex-start;
        margin-left: 5%;
        margin-right: 5%;
    }

    .vm-sidebar {
        flex: 0 0 270px;
        width: 270px;
    }

    .vm-content {
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: hidden;
        padding-left: 1rem;
    }
}


/********** filepond **********/

.filepond--item {
    width: calc(25% - 0.5em);
}

