:root {
    --firecom-donker: rgb(25, 22, 42);
    --firecom-donker-licht: rgb(55, 50, 70);
    --firecom-geel: rgb(255, 177, 0);
    --firecom-geel-hover: rgb(230, 160, 0);
    --firecom-wit: #ffffff;
    --firecom-tekst-licht: #e9e7f2;
    --firecom-rand: rgba(255, 255, 255, 0.22);
    --firecom-kaart: rgba(255, 255, 255, 0.13);
    --firecom-rood: #dc3545;
}

/* ==========================================================
   Algemene pagina-opbouw
   ========================================================== */

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background:
        linear-gradient(
            to bottom,
            var(--firecom-donker),
            var(--firecom-donker-licht)
        );
    background-attachment: fixed;
    color: var(--firecom-wit);
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content,
main {
    flex: 1 0 auto;
}

main {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ==========================================================
   Navigatie
   ========================================================== */

.bg-firecom,
.navbar {
    background-color: var(--firecom-donker) !important;
}

.navbar {
    min-height: 82px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img,
.navbar img {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 58px;
    object-fit: contain;
}

.navbar .navbar-text {
    color: var(--firecom-tekst-licht);
}

/* ==========================================================
   Footer
   ========================================================== */

.footer-firecom,
footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 1.25rem 0;
    background-color: var(--firecom-donker);
    color: var(--firecom-geel);
    text-align: center;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0;
}

/* ==========================================================
   Typografie
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--firecom-geel);
    font-weight: 700;
}

p,
label,
.form-text {
    color: var(--firecom-tekst-licht);
}

.text-muted {
    color: #c7c3d5 !important;
}

/* ==========================================================
   Firecom-kaarten
   ========================================================== */

.card,
.custom-card {
    color: var(--firecom-wit);
    background-color: var(--firecom-kaart);
    border: 1px solid var(--firecom-rand);
    border-radius: 15px;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.custom-card {
    padding: 0;
}

.card-body,
.custom-card .card-body {
    padding: 2rem;
}

.card p,
.card li,
.custom-card p,
.custom-card li {
    color: var(--firecom-tekst-licht);
}

.card .card {
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.card .card:hover {
    border-color: rgba(255, 177, 0, 0.65);
}

/* ==========================================================
   Knoppen
   ========================================================== */

.btn-firecom,
.firecom-btn {
    padding: 0.65rem 1.25rem;
    background-color: var(--firecom-geel);
    color: var(--firecom-wit);
    border: 1px solid var(--firecom-geel);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-firecom:hover,
.btn-firecom:focus,
.firecom-btn:hover,
.firecom-btn:focus {
    background-color: var(--firecom-geel-hover);
    border-color: var(--firecom-geel-hover);
    color: var(--firecom-wit);
    transform: translateY(-1px);
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.18);
}

.btn-firecom:active,
.firecom-btn:active {
    transform: translateY(0);
}

.btn-outline-firecom {
    color: var(--firecom-geel);
    background-color: transparent;
    border: 1px solid var(--firecom-geel);
    font-weight: 700;
}

.btn-outline-firecom:hover,
.btn-outline-firecom:focus {
    color: var(--firecom-wit);
    background-color: var(--firecom-geel);
    border-color: var(--firecom-geel);
}

/* ==========================================================
   Formulieren
   ========================================================== */

.form-label {
    margin-bottom: 0.5rem;
    color: var(--firecom-wit);
    font-weight: 700;
}

.form-control,
.form-select,
.custom-input {
    min-height: 46px;
    padding: 0.7rem 0.85rem;
    color: #2d2938;
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
}

textarea.form-control {
    min-height: 120px;
}

.form-control:focus,
.form-select:focus,
.custom-input:focus {
    color: #2d2938;
    background-color: var(--firecom-wit);
    border-color: var(--firecom-geel);
    box-shadow: 0 0 0 0.2rem rgba(255, 177, 0, 0.25);
}

.form-control::placeholder,
.custom-input::placeholder {
    color: #898397;
    opacity: 1;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--firecom-rood);
}

.invalid-feedback,
.veld-fout {
    color: #ffb9be;
}

/* ==========================================================
   Aantalvelden
   ========================================================== */

input[type="number"].form-control {
    max-width: 130px;
    margin-left: auto;
    text-align: center;
    font-weight: 700;
}

/* ==========================================================
   Selectievakjes
   ========================================================== */

.form-check-input:checked {
    background-color: var(--firecom-geel);
    border-color: var(--firecom-geel);
}

.form-check-input:focus {
    border-color: var(--firecom-geel);
    box-shadow: 0 0 0 0.2rem rgba(255, 177, 0, 0.25);
}

/* ==========================================================
   Tabellen
   ========================================================== */

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--firecom-wit);
    --bs-table-border-color: rgba(255, 255, 255, 0.18);
    margin-bottom: 0;
    color: var(--firecom-wit);
}

.table thead th {
    color: var(--firecom-geel);
    background-color: rgba(25, 22, 42, 0.75);
    border-bottom-color: rgba(255, 177, 0, 0.45);
    white-space: nowrap;
}

.table tbody td,
.table tbody th {
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.table th:last-child,
.table td:last-child {
    width: 120px;
    text-align: center !important;
}

/* ==========================================================
   Meldingen
   ========================================================== */

.alert {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.12);
}

.alert-info {
    color: #ffffff;
    background-color: #286aa6;
}

.alert-success {
    color: #ffffff;
    background-color: #248550;
}

.alert-danger {
    color: #ffffff;
    background-color: #b83c48;
}

.alert-warning {
    color: #2e2600;
    background-color: #f1c84a;
}

/* ==========================================================
   Productkaarten
   ========================================================== */

.product-kaart {
    height: 100%;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.product-kaart:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 177, 0, 0.6);
    box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, 0.25);
}

.product-kaart .card-body {
    padding: 1.5rem;
}

.product-kaart h2 {
    min-height: 2.5rem;
}

.product-kaart input[type="number"].form-control {
    max-width: 100%;
    margin-left: 0;
    text-align: left;
}

.product-artikelnummer {
    color: var(--firecom-geel);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ==========================================================
   Winkelmandje
   ========================================================== */

.winkelmand-aantal {
    display: inline-flex;
    min-width: 46px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--firecom-wit);
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--firecom-rand);
    border-radius: 6px;
    font-weight: 700;
}

.winkelmand-aantal-bediening {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.winkelmand-aantal-bediening form {
    margin: 0;
}

/* ==========================================================
   Verwijderknop
   ========================================================== */

.verwijder-knop {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;

    min-width: 82px;
    padding: 0.45rem 0.6rem;

    color: var(--firecom-geel);
    background-color: transparent;
    border: 1px solid rgba(255, 177, 0, 0.45);
    border-radius: 6px;

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.verwijder-knop:hover,
.verwijder-knop:focus {
    color: var(--firecom-wit);
    background-color: rgba(220, 53, 69, 0.18);
    border-color: rgba(220, 53, 69, 0.8);
    transform: translateY(-1px);
}

.verwijder-knop:focus-visible {
    outline: 3px solid rgba(255, 177, 0, 0.3);
    outline-offset: 2px;
}

.verwijder-knop .icon-delete {
    display: block;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px !important;
    min-height: 20px;
    max-height: 20px !important;
    object-fit: contain;

    filter:
        invert(64%)
        sepia(92%)
        saturate(429%)
        hue-rotate(2deg)
        brightness(106%)
        contrast(100%);

    transition:
        filter 0.2s ease,
        transform 0.2s ease;
}

.verwijder-knop:hover .icon-delete,
.verwijder-knop:focus .icon-delete {
    filter:
        invert(35%)
        sepia(77%)
        saturate(2487%)
        hue-rotate(333deg)
        brightness(96%)
        contrast(92%);

    transform: scale(1.08);
}

/* ==========================================================
   Succesweergave
   ========================================================== */

.succes-icoon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #ffffff;
    background-color: #248550;
    border-radius: 50%;
    font-size: 2.5rem;
    font-weight: 700;
}

/* ==========================================================
   Links
   ========================================================== */

a {
    color: var(--firecom-geel);
}

a:hover {
    color: var(--firecom-geel-hover);
}

/* ==========================================================
   Mobiele weergave
   ========================================================== */

@media (max-width: 767.98px) {
    main {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .navbar {
        min-height: 70px;
    }

    .navbar-brand img,
    .navbar img {
        max-width: 165px;
        max-height: 48px;
    }

    .card-body,
    .custom-card .card-body {
        padding: 1.4rem;
    }

    .navbar .d-flex {
        gap: 0.5rem;
    }

    .navbar .navbar-text,
    .navbar .klantnaam {
        display: none;
    }

    input[type="number"].form-control {
        max-width: 100%;
        margin-left: 0;
    }

    .btn-firecom,
    .firecom-btn {
        width: 100%;
        text-align: center;
    }

    .table th:last-child,
    .table td:last-child {
        width: 95px;
    }

    .verwijder-knop {
        min-width: 70px;
        padding: 0.4rem;
    }

    .winkelmand-aantal-bediening {
        min-width: 145px;
    }
}