@font-face {
    font-family: 'Effra';
    src: url('/fonts/Effra_Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/*@font-face {
    font-family: 'BwGradual';
    src: url('/fonts/BwGradual-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.bw-gradual {
    font-family: 'BwGradual' !important;
}*/

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    font-family: 'Effra', sans-serif;
}

@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;
}

body {
    margin-bottom: 60px;
    font-family: 'Effra', sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/*-------------------------------------------------------------*/
/* NAVBAR */
/*-------------------------------------------------------------*/

.navbar-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.modern-navbar {
    background-color: #000;
    min-height: 72px;
    box-shadow: 0 3px 15px rgba(0,0,0,.12);
}

    .modern-navbar .container-fluid {
        display: flex;
        align-items: center;
    }

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .navbar-center .navbar-nav {
        margin: 0;
    }

.brand-logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: #222 !important;
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.brand-icon {
    font-size: 1.6rem;
}

.modern-link {
    color: #F9A31A !important;
    padding: 10px 18px !important;
    transition: color .25s ease;
    position: relative;
    font-weight: 600;
    font-size: 1.25rem;
}

    .modern-link:hover {
        color: white !important;
    }

    .modern-link.active {
        color: white !important;
    }

.team-badge {
    background-color: white;
    color: black;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    max-height: 41px;
}

.logout-btn {
    background: #F9A31A;
    color: #222;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    max-height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}

    .logout-btn:hover {
        transform: translateY(-3px);
        background: #f7b23a;
        color: #111;
        box-shadow: 0 10px 25px rgba(0,0,0,.18);
    }

    .logout-btn:active {
        transform: translateY(0px) scale(0.98);
    }

    .logout-btn::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -60%;
        width: 40%;
        height: 200%;
        background: rgba(255,255,255,.35);
        transform: rotate(25deg);
        transition: all .6s ease;
    }

    .logout-btn:hover::after {
        left: 120%;
    }

.navbar-toggler:focus {
    box-shadow: none;
}

/*-------------------------------------------------------------*/
/* CARDS & TABLES */
/*-------------------------------------------------------------*/

.card-header-wc {
    background-color: #000 !important;
    color: #fff !important;
    font-weight: 700;
    border-bottom: none;
}

    .card-header-wc h5 {
        color: #fff !important;
        margin: 0;
    }

.table-header-wc th {
    background-color: #000 !important;
    color: #fff !important;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    border: none !important;
}

    .table-header-wc th:first-child {
        border-top-left-radius: 5px;
    }

    .table-header-wc th:last-child {
        border-top-right-radius: 5px;
    }

.table {
    border-radius: 5px;
}

    .table tbody tr:last-child td {
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }

.alert-wc {
    background-color: rgba(249, 163, 26, 0.25);
    border: 1px solid rgba(249, 163, 26, 0.5);
    color: #222;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/*-------------------------------------------------------------*/
/* LOGIN */
/*-------------------------------------------------------------*/

.login-page {
    display: flex;
    flex-direction: row;
    width: 100vw; /* full viewport width */
    min-height: 100vh;
    margin-left: calc(-50vw + 50%); /* breaks out of any centered container */
    position: relative;
    left: 0;
}

.login-left {
    flex: 0 0 30%;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.login-right {
    flex: 0 0 70%;

    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
    border: 1px solid rgba(249, 163, 26, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 380px;
}

    .login-card h2 {
        margin: 0;
        font-size: 32px;
        font-weight: 800;
        color: #111;
    }

    .login-card p {
        margin: 0;
        color: #666;
        font-size: 15px;
        line-height: 1.6;
    }

    .login-card button {
        margin-top: auto;
        height: 56px;
        border: none;
        border-radius: 999px;
        background: #F9A31A;
        color: #222;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(0,0,0,.15);
        transition: all .25s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

        .login-card button:hover {
            background: #f7b23a;
            color: #111;
            transform: translateY(-3px);
            box-shadow: 0 12px 28px rgba(0,0,0,.2);
        }

        .login-card button:active {
            transform: scale(0.98);
        }
    .login-card .login-text {
        color: black;
        font-size: 58px;
        margin-bottom: 0;
    }

    .login-card .login-text-small {
        color: black;
        font-size: 32px;
    }

.leaderboard-scroll {
    max-height: calc(100vh - 160px); /* adjust 160px to match your header/padding */
    overflow-y: auto;
    overflow-x: hidden;
}

    /* Keep the header sticky so it doesn't scroll away */
    .leaderboard-scroll thead th {
        position: sticky;
        top: 0;
        z-index: 1;
    }

/*-------------------------------------------------------------*/
/* BUTTONS */
/*-------------------------------------------------------------*/

.btn-wc {
    background-color: #F9A31A;
    color: #222;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    margin-top: 20px;
    min-width: 169px;
    min-height: 60px;
}

    .btn-wc:hover {
        background-color: #f7b23a;
        color: #111;
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0,0,0,.2);
    }

    .btn-wc:active {
        transform: scale(0.98);
    }

/*-------------------------------------------------------------*/
/* BADGES */
/*-------------------------------------------------------------*/

.points-badge {
    display: inline-block;
    background: #F9A31A;
    color: #222;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    min-width: 44px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/*-------------------------------------------------------------*/
/* RESPONSIVE */
/*-------------------------------------------------------------*/

@media (max-width: 991px) {
    .login-page {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        flex: unset;
        width: 100%;
    }

    .login-left {
        padding: 2.5rem 1.5rem;
        min-height: auto;
    }

    .login-card {
        max-width: 100%;
        margin-bottom: 0;
    }

    .login-right {
        padding: 1.5rem;
    }

    .modern-link {
        text-align: center;
        padding: 14px !important;
    }

    .team-badge,
    .logout-btn {
        width: 100%;
        text-align: center;
    }
}
