﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

a.nav-link[href*="Privacy"] {
    display: none !important;
}

/* De div om de tabel */
.table-scroll-container {
    max-height: 800px;
    overflow-y: auto;
    margin-left: 1px;
}

table th, table td {
    padding-top: 0.20rem;
    padding-bottom: 0.20rem;
}

.selectable-row.table-active,
.selectable-row:focus {
    background-color: #a3ffff !important;
}

.hidden-nav-item {
    display: none;
}

/* Zoekvelden */
.search-input-all-fields {
    width: 700px;
}

.search-input-artiest {
    width: 345px;
}

.search-input-titel {
    width: 345px;
}

.search-input-klein {
    width: 3.5cm;
}

.search-input-tiphit {
    width: 1.5cm;
}

.search-input-jaar {
    width: 2cm;
}

.search-input-dbind {
    width: 2.0cm;
}

/* ❌ Standaard geen koppen */
thead {
    display: none;
}

/* ✅ Alleen in excel-table koppen wél tonen */
.excel-table thead {
    display: table-header-group !important;
}

    .excel-table thead th {
        position: sticky;
        top: 0;
        background-color: #f8f9fa; /* lichtgrijs */
        font-weight: bold;
        z-index: 5;
    }

/* Layout zoeksectie */
.search-section {
    margin-left: 1px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.search-fields-container {
    display: flex;
    gap: 1px;
    margin-bottom: 10px;
}

.search-buttons-outside-fields {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

    .search-buttons-outside-fields .btn {
        min-width: 100px;
    }

.search-fields-container input {
    box-sizing: border-box;
}

/* Animatie knipperen */
@keyframes blink {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.blink {
    animation: blink 1.5s infinite;
    color: red;
}

.homepage-foto-container {
    text-align: center;
    margin: 20px 0;
}

.homepage-foto {
    width: 25%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0px 0px rgba(0,0,0,0.1);
}

/* Desktop */
@media (min-width: 769px) {
    .table-fixed-layout {
        table-layout: fixed;
        width: 1039px;
    }

        .table-fixed-layout td:nth-child(1) {
            width: 10px;
        }

        .table-fixed-layout td:nth-child(2),
        .table-fixed-layout th:nth-child(2) {
            width: 330px;
            padding-left: 25px;
        }
        .table-fixed-layout td:nth-child(3) {
            width: 350px;
        }

        .table-fixed-layout td:nth-child(4) {
            width: 0.9cm;
        }

        .table-fixed-layout td:nth-child(5) {
            width: 2.0cm;
        }

        .table-fixed-layout td:nth-child(6) {
            width: 1.0cm;
        }

        .table-fixed-layout td:nth-child(7) {
            width: 1.5cm;
        }

        .table-fixed-layout td:nth-child(8) {
            width: 2.0cm;
        }

        .table-fixed-layout td:nth-child(9) {
            width: 2.0cm;
        }

    .search-mode-selector {
        display: flex !important;
    }

    #specificFieldsContainer {
        display: flex;
    }

    #allFieldsContainer {
        display: none;
    }
}

/* Mobiel */
@media (max-width: 768px) {
    .search-mode-selector,
    #specificFieldsContainer {
        display: none !important;
    }

    #allFieldsContainer {
        display: block !important;
        width: 90% !important;
        margin: 10px auto 0 auto !important;
    }

        #allFieldsContainer .search-input-all-fields {
            width: 100% !important;
            display: block !important;
        }

    .search-buttons-outside-fields {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 10px !important;
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        gap: 10px !important;
    }

        .search-buttons-outside-fields #clearBtn {
            flex-grow: 1 !important;
            max-width: 150px !important;
        }

        .search-buttons-outside-fields #openSrtFilterBtn {
            display: none !important;
        }

    .sticky-header-container h1 {
        margin-left: 0 !important;
        text-align: center !important;
        font-size: 24px !important;
        padding-top: 10px !important;
    }

    .search-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 10px 0 !important;
        margin: 0 auto 10px auto !important;
        width: 100% !important;
    }

    .table-responsive-md table {
        table-layout: auto !important;
        width: 100% !important;
    }

    .table-responsive-md td {
        width: auto !important;
        white-space: normal !important;
    }
}

/* Sticky header container (boven de pagina zelf, niet de tabel) */
.sticky-header-container {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #FFFFCC;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

/* Dropdown altijd boven header */
.dropdown-menu {
    z-index: 3000 !important;
}

/* Blauw geselecteerde rij */
.row-highlight {
    background-color: #d0ebff !important; /* lichtblauw */
}

/* ✅ Verwijder spinners bij number inputs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}
/* 🧾 Zwevende knop voor selectie */
.cart-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: #0d6efd;
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
    z-index: 2500;
    user-select: none;
}

    .cart-fab:hover {
        filter: brightness(1.05);
    }

    .cart-fab #cartCount {
        display: inline-block;
        min-width: 20px;
        text-align: center;
    }
.playlist-row {
    background-color: #fff8dc; /* lichtgeel */
}
.playlist-row {
    background-color: #fff8dc !important; /* lichtgeel */
}
.row-selected {
    background-color: #ffeeba !important;
}
.btn-mailstudio {
    background-color: #000EA4 !important; /* donkerblauw */
    border-color: #000EA4 !important;
    color: white !important;
    font-weight: 600;
}

    .btn-mailstudio:hover {
        background-color: #007B00 !important; /* iets donkerder bij hover */
        border-color: #007B00 !important;
        color: #fff !important;
    }
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important; /* geen template-marge */
}

/* content neemt de vrije ruimte, footer komt normaal onderaan */
main {
    flex: 1 0 auto;
}

/* standaard: footer normaal in de flow */
.footer {
    position: static !important;
    width: 100%;
}

/* Alleen op Home: compacter + footer fixed onderin */
.is-home main.pb-3 {
    padding-bottom: 0 !important;
}

.is-home .homepage-foto-container {
    margin: 0 !important;
}

.is-home .footer {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0 !important;
    top: auto !important;
    z-index: 2000;
}

/* ruimte zodat Home-content niet achter de footer valt */
.is-home main {
    padding-bottom: 1cm !important;
}
.custom-modal {
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
}

.custom-modal-content {
    background: #fff;
    width: 500px;
    max-width: 95%;
    margin: 80px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}