﻿/* Kleuren configureren (pas deze aan naar smaak) */
:root {
    --lb-orange: #ff7a00; /* basiskleur van de balk (staat bij jou al goed) */
    --lb-orange-hover: #ff8f26; /* hoverkleur voor menu-items */
    --lb-orange-active: #e86e00; /* actieve/selected kleur */
    --lb-orange-focus: #e86e00;
    --lb-orange-light: #ff8f26;
    --lb-orange-dark: #e86e00;
    --lb-orange-card: #ffb05e
}

/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 70px;
    padding-bottom: 20px;
    /*display: flex;
    justify-content: center;*/
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}


/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px; 
    }

    .body-content {
        padding: 0;
    }
}


.dropdown:hover .dropdown-menu{
    display: block;
}
.dropdown-menu{
    margin-top: 0;
}
#loadingdiv {
    display: none;
    position: fixed;
    background-color: var(--lb-orange-light); /*rgba(0, 0, 0, 0.5); /* halfdoorzichtige achtergrond */
    top: 50%;
    left: 50%;
    color: white;
    font-size: 24px;
    text-align: center;
    transform: translate(-50%, -50%);
    z-index: 999999;
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 20px;
}

.HomeHeader {
    background-color: var(--lb-orange-light);
    color: white;
    font-size:22px;
    padding-left:7px;
}

#loadingdivimg {
    display: none;
    position: fixed;
    background-color: rgba(0, 0, 0, 0); /* halfdoorzichtige achtergrond */
    top: 50%;
    left: 55%;
    / color: white;
    font-size: 24px;
    text-align: center;
    transform: translate(-50%, -50%);
    z-index: 1005;
    animation: rotation 1s linear infinite;
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.message-container-save {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom)); /* netjes boven iOS home-indicator */
    left: 50%;
    transform: translateX(-50%);
    /* lay-out */
    z-index: 9999;
    width: 250px; /* past zich aan de inhoud aan */
    height:auto;
    max-width: 95vw; /* voorkomt dat het buiten beeld valt op mobiel */
    /* optioneel: meerdere meldingen naast of onder elkaar */
    display: flex; /* zet meldingen naast elkaar */
    gap: 10px; /* ruimte tussen meldingen */
    flex-wrap: wrap; /* laat ze afbreken naar volgende regel bij weinig ruimte */
    justify-content: center;
    align-items: center;
}

.floating-message-save {
    position: relative; /* nodig voor absolute close-button */
    background-color: #333;
    color: #fff;
    padding: 0px 0px 0px 0px;
    width:200px;
    border-radius: 3px;
    margin-bottom: 0px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeIn 0.4s forwards;
    line-height: 1.35;
}

    .floating-message-save .close-btn {
        position: absolute;
        top: 10px;
        right: 6px;
        background: transparent;
        border: none;
        color: #000000;
        font-size: 16px;
        line-height: 1;
        cursor: pointer;
        padding: 0px;
        opacity: 0.85;
    }

        .floating-message-save .close-btn:focus {
            outline: 2px solid rgba(255,255,255,0.6);
            outline-offset: 2px;
        }

        .floating-message-save .close-btn:hover {
            opacity: 1;
        }


/* Smalle voortgangsbalk onderin de melding */
.msg-progress {
    height: 4px;
    width: 100%;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

    /* De vullende balk; kleur kun je desgewenst per type overschrijven */
    .msg-progress > .bar {
        height: 100%;
        width: 100%;
        background: #2ecc71; /* groen; pas aan naar smaak */
        transform-origin: left center;
        transition: width linear; /* duur zetten we in JS */
    }


.message-container {
    position: fixed;
    top: 80px;
    /*left: 20%;*/
    z-index: 9999;
    width: 350px;
}

.floating-message {
    position: relative; /* nodig voor absolute close-button */
    background-color: #333;
    color: #fff;
    padding: 12px 20px 12px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeIn 0.4s forwards;
    line-height: 1.35;
    overflow: hidden; /* netjes afkappen */
}


.floating-message .close-btn {
    position: absolute;
    top: 10px;
    right: 6px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    opacity: 0.85;
}
.floating-message .close-btn:focus {
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 2px;
}
.floating-message .close-btn:hover {
    opacity: 1;
}

@keyframes fadeIn { to { opacity: 1; } }

.fade-out {
    animation: fadeOut 0.6s forwards;
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

.btn {
    border: 1px solid var(--lb-orange-dark) !important; /* duidelijke blauwe rand */
    background-color: var(--lb-orange) !important;
    color: white !important;
    font-weight: 400;
    padding: 5px 9px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

    .btn:hover {
        background-color: var(--lb-orange-hover) !important;
        color: white !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }


.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}


    .toggle-switch input[type="checkbox"] {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-switch .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        border-radius: 24px;
        transition: .3s;
    }

        .toggle-switch .slider:before {
            content: "";
            position: absolute;
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background: white;
            border-radius: 50%;
            transition: .3s;
        }

    .toggle-switch input:checked + .slider {
        background-color: var(--lb-orange-light);
    }

        .toggle-switch input:checked + .slider:before {
            transform: translateX(24px);
        }


#divMenuLosballos {
    background-color: #ff7a00 !important;
}




/* 1) Menuletters altijd helder wit */
#divMenuLosballos .navbar-brand,
#divMenuLosballos .navbar-nav .nav-link {
    color: #fff !important;
}

    /* 2) Hover/focus: andere oranje achtergrond, tekst wit houden */
    #divMenuLosballos .navbar-nav .nav-link:hover,
    #divMenuLosballos .navbar-nav .nav-link:focus {
        color: #fff !important;
        background-color: var(--lb-orange-hover) !important;
        border-radius: .25rem; /* kleine afronding; optioneel */
    }

    /* 3) Actieve pagina (Bootstrap voegt .active toe) */
    #divMenuLosballos .navbar-nav .nav-link.active,
    #divMenuLosballos .navbar-nav .show > .nav-link {
        color: #fff !important;
        background-color: var(--lb-orange-active) !important;
        border-radius: .25rem;
    }

/* 4) Dropdown-items in het menu (indien gebruikt) */
#divMenuLosballos .dropdown-menu .dropdown-item:hover,
#divMenuLosballos .dropdown-menu .dropdown-item:focus {
    color: #fff !important;
    background-color: var(--lb-orange-hover) !important;
}

/* 5) Toggler (hamburger) in mobiele weergave wit houden */
#divMenuLosballos .navbar-toggler {
    border-color: rgba(255,255,255,.5);
}

#divMenuLosballos .navbar-toggler-icon {
    filter: invert(1) grayscale(100%); /* zorgt voor witte icon bars als dat nodig is */
}


/* Basis-opmaak */
table {
    /*width: 100%;*/
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Header */
table th {
    background-color: var(--lb-orange-dark);
    color: #fff;
    padding: 2px 4px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid var(--lb-orange);
}

/* Zebra-rijen */
table tr:nth-child(even) {
    background: #fff8f0; /* heel lichte oranje waas */
}

table tr:nth-child(odd) {
    background: #ffffff;
}

/* Cellen */
table td {
    padding: 2px 4px;
    border-bottom: 1px solid #ddd;
    }

/* Hover-effect over hele rij 
    table tr:hover {
        background-color: var(--lb-orange-light);
        color: #fff;
        cursor: default;
        transition: 0.15s;
    }*/

/* Optionele: klikbare rijen (alleen toepassen als je wilt) */
/*
table tr[data-clickable]:hover {
    cursor: pointer;
}
*/


/* Textboxen, dropdowns, textarea */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    border: 1px solid var(--lb-orange-light) !important;
    border-radius: 2px;
    /* padding: 6px 8px;*/
    /*transition: 0.15s ease;*/
}

/* Focus effect (bij aanklikken) */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--lb-orange-light) !important;
    box-shadow: 0 0 4px var(--lb-orange-light) !important;
    outline: none;
}



/* --- BASIS SELECT STYLING --- */
select {
    appearance: none; /* verbergt standaard pijltje in moderne browsers */
    background-color: #fff;
    border: 1px solid var(--lb-orange-light) !important;
    border-radius: 4px;
    padding-left:2px;
    font-size: 0.95rem;
    color: #333;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23ff7a00' height='16' width='16' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,12'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
}

/* --- FOCUS (AANGEKLIKT) --- */
select:focus {
    border-color: var(--lb-orange-light) !important;
    box-shadow: 0 0 4px var(--lb-orange-light);
    outline: none;
}

/* --- OPTIES BINNEN DE DROPDOWN --- */
select option {
    padding: 6px;
    background: #fff;
    color: #333;
}

/* Hover over options (Chrome/Edge ondersteunen dit) */
select option:hover {
    background-color: var(--lb-orange-light);
    color: #fff;
}

    /* Geselecteerde item */
/*select option:checked {
    background-color: var(--lb-orange) !important;
    color: #fff;
}*/




/* Card, header en teams: blijft zoals jij het al hebt */
.match-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 10px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.10);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}


.match-card-buttons {
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 10px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.10);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.center-buttons {
    display: flex;
    justify-content: center;
}


.match-header {
    display: flex;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.1;
    justify-content: center;
}


.match-teams {
    position: relative; /* referentie voor absolute positioning */
    display: flex;
    font-weight: bold;
    justify-content: center; /* teams centreren */
    align-items: center;
    gap: 6px; /* ruimte rondom het '-' teken */
    text-align: center;
}




.match-teams .dash {
    opacity: .6;
}

/* --- Belangrijk deel: 3-koloms grid voor perfecte uitlijning --- */

/* --- 3-koloms grid: links | midden | rechts --- */
.match-scores {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    column-gap: 12px;
}


/* Middenkolom: score cluster komt in de middelste kolom
   en wordt precies onder de (gecentreerde) teamnamen geplaatst */

.score-fields {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}


/* Joker-toggle helemaal rechts in kolom 3 */
.joker-toggle {
    grid-column: 3;
    justify-self: end; /* <-- zorgt dat hij naar de rechterkant gaat */
    display: flex;
    align-items: center;
}



/* Joker rechts, verticaal gecentreerd op dezelfde regel */
.match-teams .joker-text {
    position: absolute;
    font-weight:bold;
    right: 0; /* helemaal rechts */
    top: 50%;
    transform: translateY(-50%); /* verticaal centreren in de regel */
    white-space: nowrap; /* 'Joker' op 1 regel houden */
    font-size: 14px; /* optioneel: iets compacter */
}



/* Joker: in de rechterkolom, rechts uitgelijnd */
.joker-label {
    grid-column: 3; /* in de rechterkolom */
    justify-self: end; /* rechts uitlijnen */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 14px;
}

/* Inputs compact en consistent */
.score-input {
    width: 50px; /*was 56*/
    font-size: 16px;
    line-height: 1;
    padding: 4px 6px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #bbb;
}


.match-card.readonly {
    pointer-events: none; /* maakt alles binnen de card niet klikbaar */
    opacity: 0.7; /* optioneel visueel effect */
}

.match-card.readonly input,
.match-card.readonly select,
.match-card.readonly textarea {
    background-color: #f4f4f4;
    color: #666;
}

.qa-card {
    display: flex;
    flex-direction: column;
    gap: 14px; /* ruimte tussen regels */
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.qa-row {
    display: grid;
    grid-template-columns: 150px 1fr; /* links breed, rechts vaste breedte */
    align-items: center;
    gap: 16px;
}

.qa-col-left {
    display: flex;
    flex-direction: column;
    width: 120px;
}

.qa-row-sl {
    display: grid;
    grid-template-columns: 130px 1fr; /* links breed, rechts vaste breedte */
    align-items: center;
    gap: 20px;
}

.qa-col-left-sl {
    display: flex;
    flex-direction: column;
    width: 60px;
}



    .qa-col-right input {
        width: 100%;
    }


.qa-label {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
}

.qa-sublabel {
    font-size: .85rem;
    color: #6c757d;
    margin-top: 0px;
}

.qa-input {
    width: 100%;
    padding: 6px 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.qa-input-sl {
    width: 100%;
    padding-top: 0px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.save-bar {
    position: fixed;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom)); /* netjes boven iOS home-indicator */
    transform: translateX(-50%);
    z-index: 1050; /* boven de content, onder modals (Bootstrap modals zitten op 1055+) */
    background: #fff;
    color: #111;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 9999px; /* pill look */
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 8px 14px;
}

    .save-bar .btn {
        min-width: 140px;
    }


/* Container als verticale stack */
.poule-stack .poule-card-compact {
    margin-bottom: .5rem;
    border-radius: .5rem;
}

/* Compactere body 
.poule-card-compact .card-body {
    padding: .5rem .75rem;
    min-height: 48px;
}
    */

.poule-card-compact .card-body {
    padding: .35rem .5rem; /* was meestal ~.75-1rem */
}


/* 3) Naamregel compacter */
.poule-card-compact .name-xs {
    font-size: .95rem; /* iets kleiner */
    line-height: 1.1; /* minder hoogte */
    margin-right: .35rem; /* i.p.v. .5rem of me-2 */
}

/* 4) Iconen iets kleiner voor balans */
.poule-card-compact .trend i,
.poule-card-compact .meta-row i {
    font-size: .9em;
}


/* Kleinere naam & meta */
.name-xs {
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
}

.meta-row {
    font-size: .85rem;
    color: #6c757d; /* bootstrap text-muted tint */
}


.poule-card-compact .meta-row {
    margin-top: .15rem; /* kleiner dan default */
    gap: .35rem; /* als je CSS gap gebruikt */
    font-size: .9rem;
    line-height: 1.1;
}


.poule-card-compact .card-body.d-flex.align-items-center {
    gap: .5rem; /* i.p.v. me-2 etc. of grotere gaps */
}



/* Kleinere pozitie-badge */
.position-badge-xs {
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    background: #0d6efd; /* primary */
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
}

/* Kleinere trend indicators */
.poule-card-compact .trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    padding: .1rem .4rem; /* dunnere pill */
    gap: .25rem;
    min-height: 1.3rem; /* lager dan default */
    font-size: .7rem;
}






.highlight-card {
    background-color: var(--lb-orange-card) !important; /* zachte gele tint, voorbeeld */
}


.poule-card-compact .trend-up {
    color: #0f5132;
    background: #d1e7dd;
}
/* success */
.poule-card-compact .trend-down {
    color: #842029;
    background: #f8d7da;
}
/* danger  */
.poule-card-compact .trend-same {
    color: #664d03;
    background: #fff3cd;
}
/* warning */

/* Kleinere actieknop/rechts-icon */
.poule-card-compact .btn-outline-secondary {
    --bs-btn-padding-y: .125rem;
    --bs-btn-padding-x: .4rem;
    --bs-btn-font-size: .8rem;
}



/* Basis pill */
.trend {
    display: inline-flex; /* zet icoon + tekst op één lijn */
    align-items: center;
    justify-content: center; /* centreert inhoud */
    gap: .35rem; /* ruimte tussen pijl en het getal */
    padding: .20rem .60rem; /* verticale + horizontale padding */
    border-radius: 9999px; /* maakt 'm ovaal (pill) */
    line-height: 1; /* compacte hoogte */
    font-size: .9rem; /* schaal naar wens */
    vertical-align: middle;
    white-space: nowrap; /* voorkom afbreken */
    min-height: 1.6rem; /* visueel constante hoogte */
    min-width: 2.2rem; /* voorkomt té smal bij één cijfer */
    margin-right:10px;
}

/* Variaties in kleur (voorbeeld) */
.trend-down {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.trend-up {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Icoon iets kleiner dan tekst voor balans */
.trend .fa-arrow-down,
.trend .fa-arrow-up,
.trend .fa-minus {
    font-size: 0.95em;
}

/* Getal: iets steviger en stabiel in breedte */
.trend-value {
    font-weight: 600;
    min-width: 1.2ch; /* subtiele stabiliteit bij 1 cijfer */
    text-align: center;
}


.position-badge-xs {
    margin-right: .5rem; /* ← marge blijft altijd behouden */
    width: 1.6rem;
    height: 1.6rem;
    font-size: .9rem; /* kleiner lettertype in badge */
    line-height: 1;
}

/* 2) Markeer items die standaard verborgen moeten zijn */
.position-badge-xs.is-hidden {
    visibility: hidden !important; /* belt & braces */
    opacity: 0 !important;
}


/* Forceer zichtbaarheid van de positie-badge wanneer er gefilterd wordt */
.position-badge-xs.force-show {
    visibility: visible !important;
    opacity: 1 !important;
}


.poule-card {
    background: #ffffff;
    /*border-radius: 10px;*/
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 1rem 1.2rem;
    margin-bottom: 25px;
}

    .poule-card h3 {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 15px;
        text-transform: uppercase;
        color: #333;
    }

.poule-table {
    width: 100%;
}

    .poule-table th {
        background: #ff9800;
        color: white;
        padding: 6px;
        font-size: 0.9rem;
        text-align: center;
    }

    .poule-table td {
        padding: 6px;
        font-size: 0.9rem;
    }

.poule-row-even {
    background: #fff8f0;
}

.poule-row-odd {
    background: #ffffff;
}

.poule-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}


.card {
    border-radius: 12px;
    /*border-top-right-radius: 12px;*/

}

.card-header {
    background: var(--lb-orange-card);
    color: #fff;
    font-weight: bold;
    font-size:20px;
    padding-left:10px;
}


.fi {
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.25); 
}


.flag-icon {
    width: 30px !important;
    height: 22px !important;
    background-size: cover !important;
}
