/* Algemene stijlen */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f4f4;
    font-family: "Arial", sans-serif;
}

.container {
    margin-top: 20px;
}

.card-deck .card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Login-kaart stijlen */
.login-card {
    margin: auto;
    padding: 2rem;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}



/* Footer stijlen */
.footer {
    margin-top: auto;
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    width: 100%;
}

/* Switch stijlen */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #007bff;
}

input:focus + .slider {
    box-shadow: 0 0 1px #007bff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* DataTables filter stijlen */
.dataTables_wrapper .dataTables_filter {
    margin: 0;
    text-align: right;
    padding: 0;
    right: 0;
}

/* Tabel stijlen */
table {
    border-radius: 10px;
}



.login-card {
    max-width: 700px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-container {
    flex: 1;
    margin-right: 20px;
}

.login-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.form-container {
    flex: 2;
}

h4 {
    font-size: 24px;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.card-img-top:hover {
    transform: scale(1.02);
}

.card-img-top {
    height: 320px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.prediction-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.prediction-column {
    flex: 1;
    min-width: 140px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.prediction-column h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.prediction-user {
    background: white;
    border-radius: 8px;
    padding: 6px 8px;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.prediction-empty {
    color: #bbb;
    font-size: 18px;
    padding: 10px 0;
}

.prediction-missing {
    font-size: 13px;
    color: #999;
}

.prediction-container {
    display:flex;
    gap:10px;
}

.prediction-column {
    flex:1;
    background:#f8f9fa;
    border-radius:10px;
    padding:10px;
    text-align:center;
}

.prediction-user {
    background:white;
    margin:4px 0;
    border-radius:6px;
    padding:4px;
    font-size:13px;
}

.ranking-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:white;
    padding:8px 12px;
    border-radius:8px;
    margin-bottom:6px;
    box-shadow:0 1px 3px rgba(0,0,0,0.08);
}

.points-group {
    margin-bottom: 18px;
}

.points-header {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
    color: #222;
}

.points-row {
    display:flex;
    justify-content:space-between;
    padding:8px 12px;
    background:white;
    border-radius:8px;
    margin-bottom:6px;
    box-shadow:0 1px 2px rgba(0,0,0,0.08);
}

.player-name {
    font-weight:500;
}

.prediction {
    color:#666;
}

.fm-nav-bonus {
    color: #ea580c !important;
    background: rgba(249,115,22,0.08);
    border-radius: 8px;
    font-weight: 600;
    margin: 0 .25rem;
    padding: .4rem .8rem !important;
    transition: all .2s ease;
}

.fm-nav-bonus:hover {
    background: rgba(249,115,22,0.15);
    color: #c2410c !important;
}

.fm-support-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2f61e5, #2a4fc9);
    color: #fff;
}

.fm-support-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
}

.fm-support-text strong {
    font-size: 18px;
    font-weight: 700;
}

.fm-support-btn {
    white-space: nowrap;
    padding: 12px 20px;
    border-radius: 12px;
    background: #fff;
    color: #2f61e5;
    font-weight: 700;
    text-decoration: none;
    transition: .2s;
}

.fm-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
}


.fm-live-widget-row {
    border-left: 3px solid #dc2626;
}

.fm-live-widget-main {
    display: flex;
    flex-direction: column;
    min-width: 75px;
    text-align: center;
}

.fm-live-widget-score {
    font-size: 1.1rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.1;
}

.fm-live-widget-prediction {
    margin-top: 3px;
    font-size: .67rem;
    color: #6b7280;
    white-space: nowrap;
}

.fm-live-widget-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.fm-live-widget-status {
    font-size: .65rem;
    font-weight: 900;
    text-transform: uppercase;
}

.fm-live-widget-status.live {
    display: flex;
    align-items: center;
    gap: 5px;

    color: #dc2626;
}

.fm-live-widget-status.finished {
    color: #059669;
}

.fm-live-widget-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #dc2626;

    animation: fmHomeLivePulse 1.4s infinite;
}

.fm-live-widget-points {
    padding: 2px 6px;

    border-radius: 6px;

    background: #fff7ed;
    border: 1px solid #fed7aa;

    color: #9a3412;

    font-size: .7rem;
    font-weight: 900;
}

@keyframes fmHomeLivePulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(220,38,38,.55);
    }

    70% {
        box-shadow:
            0 0 0 6px rgba(220,38,38,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(220,38,38,0);
    }
}


.fm-form-competitions {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.fm-form-competition {
    padding-bottom: .6rem;
    border-bottom: 1px solid #f3f4f6;
}

.fm-form-competition:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.fm-form-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 800;
    color: #374151;
    margin-bottom: .4rem;
}

.fm-form-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fm-form-count {
    margin-left: auto;
    color: #9ca3af;
    font-size: .68rem;
    font-weight: 600;
}

.fm-form-results {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.fm-form-result {
    width: 28px;
    height: 28px;
    border-radius: 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: .85rem;
    font-weight: 900;

    cursor: help;
}

/* gewonnen */
.fm-form-result.win {
    background: #dcfce7;
    color: #166534;
}

/* gelijk */
.fm-form-result.draw {
    background: #fef3c7;
    color: #92400e;
}

/* verloren */
.fm-form-result.loss {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================================
   QUICK ACTIONS + LIVE STATS CTA
   ============================================================ */

.fm-actions {
    margin-bottom: 24px;
    display: flex;
    align-items: stretch;
    gap: 10px;
}


/* ============================================================
   LIVE STATS - PRIMAIRE CTA
   ============================================================ */

.fm-live-stats-cta {
    position: relative;
    isolation: isolate;

    flex: 0 0 auto;
    min-width: 285px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 14px;

    overflow: hidden;

    border: 1px solid rgba(220, 38, 38, .30);
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #991b1b 0%,
            #dc2626 48%,
            #ef4444 100%
        );

    color: #fff !important;
    text-decoration: none !important;

    box-shadow:
        0 8px 22px rgba(220, 38, 38, .20),
        inset 0 1px 0 rgba(255,255,255,.18);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}


/* subtiele bewegende highlight */

.fm-live-stats-glow {
    position: absolute;
    z-index: -1;

    width: 100px;
    height: 100px;

    top: -45px;
    right: 20px;

    border-radius: 50%;

    background: rgba(255,255,255,.16);
    filter: blur(22px);

    pointer-events: none;
}


/* hover */

.fm-live-stats-cta:hover {
    color: #fff !important;

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(220, 38, 38, .30),
        inset 0 1px 0 rgba(255,255,255,.20);
}


/* ============================================================
   ICOON
   ============================================================ */

.fm-live-stats-icon {
    position: relative;

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(255,255,255,.15);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.12);

    font-size: 19px;
}


/* LIVE bolletje */

.fm-live-stats-pulse {
    position: absolute;

    width: 8px;
    height: 8px;

    top: -2px;
    right: -2px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 0 0 0 rgba(255,255,255,.7);

    animation:
        fmLiveStatsPulse 1.5s infinite;
}


@keyframes fmLiveStatsPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(255,255,255,.65);
    }

    70% {
        box-shadow:
            0 0 0 8px rgba(255,255,255,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(255,255,255,0);
    }

}


/* ============================================================
   TEKST
   ============================================================ */

.fm-live-stats-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.fm-live-stats-label {
    display: inline-flex;
    align-items: center;

    width: max-content;

    margin-bottom: 2px;

    font-size: 8px;
    line-height: 1;

    font-weight: 900;

    letter-spacing: .10em;

    color: rgba(255,255,255,.78);
}


.fm-live-stats-content strong {
    display: block;

    font-size: 13px;
    line-height: 1.2;

    font-weight: 900;

    color: #fff;
}


.fm-live-stats-content small {
    display: block;

    margin-top: 2px;

    font-size: 9px;
    line-height: 1.2;

    color: rgba(255,255,255,.76);
}


/* ============================================================
   PIJL
   ============================================================ */

.fm-live-stats-arrow {
    flex: 0 0 auto;

    margin-left: auto;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(255,255,255,.14);

    font-size: 16px;
    font-weight: 900;

    transition:
        transform .18s ease,
        background .18s ease;
}


.fm-live-stats-cta:hover
.fm-live-stats-arrow {

    transform: translateX(3px);

    background: rgba(255,255,255,.22);
}


/* ============================================================
   NORMALE ACTIONS
   ============================================================ */

.fm-actions-secondary {
    min-width: 0;

    flex: 1 1 auto;

    display: flex;
    align-items: stretch;
    gap: 8px;
}


.fm-actions-secondary .fm-action {
    flex: 1 1 0;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;

    text-align: center;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1050px) {

    .fm-actions {
        flex-wrap: wrap;
    }

    .fm-live-stats-cta {
        flex: 1 1 100%;
    }

    .fm-actions-secondary {
        flex: 1 1 100%;
    }

}


/* ============================================================
   MOBIEL
   ============================================================ */

@media (max-width: 700px) {

    .fm-actions {
        display: block;
        margin-bottom: 20px;
    }


    /* Live Stats krijgt mobiel volle breedte */

    .fm-live-stats-cta {
        width: 100%;
        min-width: 0;

        padding: 13px 14px;

        border-radius: 14px;

        margin-bottom: 9px;
    }


    .fm-live-stats-icon {
        width: 42px;
        height: 42px;

        flex-basis: 42px;

        font-size: 20px;
    }


    .fm-live-stats-content strong {
        font-size: 14px;
    }


    .fm-live-stats-content small {
        font-size: 9px;
    }


    /*
     * De normale acties blijven compacter
     * onder de opvallende Live Stats CTA.
     */

    .fm-actions-secondary {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }


    .fm-actions-secondary .fm-action {
        min-height: 42px;

        padding-left: 7px;
        padding-right: 7px;

        font-size: 11px;
    }

}


/* Zeer kleine telefoons */

@media (max-width: 380px) {

    .fm-live-stats-content small {
        display: none;
    }

    .fm-live-stats-cta {
        padding: 11px 12px;
    }

}