/* Brand palette */
:root {
    --brand-green:   #1E811E; /* widget headings */
    --brand-lime:    #BCF54C; /* CTA buttons */
    --brand-teal:    #3B8686;
    --brand-emerald: #3DAA70;
}

/* Shield picker section labels */
.shield-picker-label {
    width: 100%;
    padding: 0.375rem 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    background: color-mix(in srgb, var(--brand-green) 50%, transparent);
}

.shield-picker-label + div {
    padding: 0.5rem;
    background: color-mix(in srgb, var(--brand-green) 20%, transparent);
}

/* Shield preview: floats below topbar on mobile once scrolled past */
.shield-preview-sentinel {
    height: 0;
}
@media (max-width: 767px) {
    .shield-preview-floating {
        position: fixed;
        top: 4rem; /* fi-topbar height */
        left: 0;
        right: 0;
        z-index: 20;
        background-color: #11150a;
    }
    .shield-preview-spacer {
        height: 10rem; /* shield 8rem + py-4 2rem */
    }
}

/* Points badge */
.points-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 700;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
    background-color: #3DAA70;
    color: #000;
}
.points-badge--mini {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.6rem;
}
.points-badge--maxi {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
}
.gained-points-badge {
    color: #00ff00;
    font-family: "Press Start 2P", cursive;
    font-size: 0.75rem;
    font-weight: 700;
}
.gained-points-badge--zero {
    color: rgb(107 114 128);
}
.my-points {
    display: flex;
    justify-content: center;
}

/* group-time-venue */
.group-time-venue {
    width: 11rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: x-small;
}

/* Widget CTA buttons (shared across all dashboard widgets) */
.widget-cta {
    background: var(--brand-lime);
    color: #1a2800;
    width: fit-content !important;
    display: block;
    margin: 0 auto;
    border-radius: 0.375rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.widget-cta:hover {
    background: #a8dc3c;
    color: #1a2800;
}

/* Highlight selected group winner card (by .selected class) */
.group-winner-card.selected {
    background: rgba(var(--primary-400), 0.25) !important;
    border-color: rgba(var(--primary-400), 1) !important;
    color: #fff !important;
    position: relative;
}

.group-winner-card.selected:before {
    content: '\2605';
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    font-size: 1rem;
    color: #000;
    background: #fff;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.10);
}
/* Smaller flag in group winner cards on mobile */
@media (max-width: 767px) {
    .group-winner-card svg {
        width: 2.25rem !important;
        height: 1.5rem !important;
    }
}

.group-winner-prediction-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}
.group-winner-prediction-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem;
    min-width: 5rem;
}
.group-winner-prediction-group {
    color: rgb(156 163 175);
    font-family: "Press Start 2P", cursive;
    font-size: 1.25rem;
}
.group-winner-prediction-team {
    color: #fff;
    font-family: "Press Start 2P", cursive;
    font-size: 1rem;
    padding: 0.125rem 0.375rem; 
    background-color: #00000044;
}
.group-winner-prediction-card--correct .group-winner-prediction-team {
    background-color: #00FF00;
    color: #000;
}
.group-winner-prediction-card--wrong .group-winner-prediction-team {
    background-color: #FF4444;
}
.group-winner-prediction-flag {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 3.25rem;
    border: 1px solid transparent;
    background: transparent;
}
.group-winner-actual-flag {
    position: absolute;
    right: -0.25rem;
    top: -0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.25rem;
    border: 1px solid transparent;
    background: transparent;
    color: #00000099;
    font-family: "Press Start 2P", cursive;
    font-size: 0.55rem;
    background-color: #ffffff75;
    border-radius: .25rem;
}
.group-winner-prediction-card--correct .group-winner-prediction-flag,
.group-winner-prediction-card--correct .group-winner-actual-flag {
    /*border-color: #22c55e;
    background: rgb(34 197 94 / 0.18);*/
}
.group-winner-prediction-card--wrong .group-winner-prediction-flag,
.group-winner-prediction-card--wrong .group-winner-actual-flag {
    /*border-color: #ef4444;
    background: rgb(239 68 68 / 0.18);*/
}
/* Utility: width min-content */
.w-min-content {
    width: min-content !important;
}
/* --- Knockout matches: 2 per row on mobile, max 4 per row on desktop --- */
.knockout-matches-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.5rem;
}
.knockout-matches-grid > * {
    flex: 0 1 calc((100% - 0.5rem) / 2);
    min-width: 0;
}
@media (min-width: 768px) {
    .knockout-matches-grid {
        gap: 0.75rem;
    }
    .knockout-matches-grid > * {
        flex-basis: calc((100% - 2.25rem) / 4);
        max-width: calc((100% - 2.25rem) / 4);
    }
}

.knockout-matches-grid.knockout-semi-final {
    flex-flow: column;
    width: 100%;
    justify-content: center;
    align-items: center;
}
/* ==========================================================================
   Pajz.in – Global style overrides for Filament panel
   ========================================================================== */

/* --- Page header: remove gap --- */
.fi-main section > .fi-header {
    gap: 0 !important;
}

/* --- Topbar layout --- */
.fi-topbar nav {
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
}
@media (min-width: 768px) {
    .fi-topbar nav {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .fi-topbar nav {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* --- Main content & topbar: constrain width on desktop --- */
@media (min-width: 1024px) {
    .fi-main,
    .fi-topbar nav {
        max-width: 56rem;
    }
}

.fi-topbar-logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.fi-user-menu-link {
    min-width: 2rem;
    justify-content: flex-end;
}

.fi-user-menu-link > span {
    border:none;
}

/* --- Main background --- */
.fi-main {
    background-color: rgb(15 30 35);
}

/* --- Game font utilities --- */
.font-fixture {
    /*font-family: "Press Start 2P", cursive;*/
    font-size: 0.75rem;
    line-height: 1.4;
}
.font-game {
    font-family: "Press Start 2P", cursive;
}
input.font-game {
    transition: background-color 0.3s, color 0.3s;
}

/* --- Compact section padding --- */
.predictions-compact .fi-section-content {
    padding: 0.5rem !important;
}
.predictions-compact .fi-section-content-ctn {
    display: flex;
    justify-content: center;
}
.fixture-grid {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .fixture-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .fi-section.predictions-compact {
        width: 100% !important;
    }
    .fi-section-content.p-6 {
        width: 100% !important;
        padding: 0.5rem !important;
    }
}

/* --- Centered pages (takmicar, my-predictions, group-fixtures): full-width sections on desktop --- */
@media (min-width: 768px) {
    .centered-page .fi-section.predictions-compact {
        width: 100% !important;
    }
    .centered-page .fi-section-content-ctn,
    .centered-page .fi-section-content {
        width: 100% !important;
    }
}
.fi-section-content {
    padding: 1rem !important;
    background-color: #11150a;
}
.fi-section-header {
    padding: 0.5rem 0.75rem !important;
}

/* --- Hide number input spinners --- */
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;
    appearance: textfield;
}

/* --- No border-radius (sharp edges) --- */
button,
.fi-btn,
.fi-icon-btn,
.fi-badge,
input,
select,
textarea,
.fi-section,
.fi-dropdown-panel,
.fi-modal-window,
.rounded-lg,
.rounded-xl,
.rounded-md {
    border-radius: 0 !important;
}

/* --- Hide theme switcher, compact menu items below it (user menu only) --- */
.fi-user-menu .fi-dropdown-list:has(.fi-theme-switcher) {
    display: none !important;
}
.fi-user-menu .fi-dropdown-list:has(.fi-theme-switcher) + .fi-dropdown-list {
    border-top: none !important;
    padding: 0.25rem 0.5rem;
}
.fi-user-menu .fi-dropdown-list:has(.fi-theme-switcher) + .fi-dropdown-list .fi-dropdown-list-item {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* --- Hide default Filament logo (we use topbar.start render hook) --- */
.fi-logo {
    display: none !important;
}

/* --- Profile page: more breathing room on desktop --- */
@media (min-width: 1024px) {
    .fi-page-edit-profile .fi-fo-component-ctn {
        padding: 1.5rem;
    }
}

.fi-fo-component-ctn {
    /*gap: 0!important;*/
}

/* --- Leaderboard table row borders --- */
.leaderboard-table tbody tr {
    border-bottom: 1px solid rgba(var(--gray-700), 1);
}
.leaderboard-table tbody tr:first-child {
    border-top: 1px solid rgba(var(--gray-700), 1);
}

/* --- Leaderboard full name: desktop only --- */
.leaderboard-fullname {
    max-width: 6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 1024px) {
    .leaderboard-fullname {
        max-width: unset;
    }
}

/* --- Group winners grid: 4 cols on md+ --- */
.group-winners-grid {
    display: flex;
    flex-flow: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .group-winners-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* --- Widget section: rounded top corners on card, visible through heading --- */
.fi-section {
    border-radius: 0.75rem 0.75rem 0 0 !important;
    overflow: clip;
}

/* --- Equal-height dashboard widgets on desktop --- */
@media (min-width: 1024px) {
    .fi-wi-widget {
        display: flex;
        flex-direction: column;
    }
    .fi-wi-widget > .fi-section {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .fi-wi-widget > .fi-section > .fi-section-content-ctn {
        flex: 1;
    }
}

/* --- Shared menu styles (user menu + nav menu) --- */

/* Shared panel appearance */
.fi-user-menu .fi-dropdown-panel, .fi-nav-panel {
    background: color-mix(in srgb, var(--brand-green) 55%, #000) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

/* Section dividers */
.fi-user-menu .fi-dropdown-list + .fi-dropdown-list,
.fi-nav-panel .fi-menu-section {
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* Item text & icons */
.fi-user-menu .fi-dropdown-list-item-label,
.fi-nav-panel .fi-dropdown-list-item-label {
    color: #fff !important;
}
.fi-user-menu .fi-dropdown-list-item-icon,
.fi-nav-panel .fi-dropdown-list-item-icon {
    color: rgba(255,255,255,0.65) !important;
}
.fi-user-menu .fi-dropdown-list-item:hover,
.fi-nav-panel .fi-dropdown-list-item:hover {
    background: rgba(0,0,0,0.18) !important;
}

/* Section headings */
.fi-nav-menu-heading,
.fi-user-menu .fi-nav-menu-heading {
    color: rgba(255,255,255,0.55);
}

/* Close button rows */
.fi-user-menu-close-row {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem 0.25rem;
}
.fi-user-menu-close-row button {
    color: rgba(255,255,255,0.65);
}
.fi-user-menu-close-row button:hover {
    color: #fff;
}

/* Nav menu close button */
.fi-nav-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 0.5rem 0.75rem 0.25rem;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
}
.fi-nav-close svg {
    width: 1.25rem;
    height: 1.25rem;
}
.fi-nav-close:hover {
    color: #fff;
}

/* --- Nav menu panel positioning --- */

@media (min-width: 768px) {
    .fi-nav-backdrop { display: none !important; }
}

.fi-nav-menu-heading {
    padding: 0.375rem 0.75rem 0.125rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fi-nav-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 50;
    min-width: 14rem;
}

@media (max-width: 767px) {
    /* Nav panel: full screen below header */
    .fi-nav-panel {
        position: fixed !important;
        top: 4rem !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100dvh - 4rem) !important;
        overflow-y: auto;
        border-radius: 0 !important;
        box-shadow: none !important;
        z-index: 50;
    }

    /* User menu panel: full screen below header */
    .fi-user-menu .fi-dropdown-panel {
        position: fixed !important;
        top: 4rem !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100dvh - 4rem) !important;
        max-height: calc(100dvh - 4rem) !important;
        transform: none !important;
        z-index: 50;
        overflow-y: auto;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    /* Larger tap targets */
    .fi-nav-panel .fi-dropdown-list-item,
    .fi-user-menu .fi-dropdown-list-item {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem;
    }
    .fi-nav-panel .fi-nav-menu-heading,
    .fi-user-menu .fi-nav-menu-heading {
        font-size: 0.65rem;
        padding: 0.75rem 1rem 0.25rem;
    }
}

.fi-section.animate-pulse {
    animation: pajz-pulse 1.5s ease-in-out infinite;
}
@keyframes pajz-pulse {
    0%, 100% { background-color: #11150a; }
    50%      { background-color: #2a3318; }
}

.fixture-prediction-box {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

.prediction-box {
    /*shrink-0 flex flex-col items-center justify-center gap-1 px-3 py-2
    border-r border-gray-200 dark:border-white/10 min-w-[4.5rem]*/
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.25rem;
    /*padding: 0.5rem;*/
}

/* --- Centered page layout: center page heading and content across the panel --- */
.fi-header,
.fi-header-heading {
    text-align: center;
    justify-content: center;
    align-items: center;
}
section.fi-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}
section.fi-page > * {
    max-width: 100%;
}

.centered-page {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

.header-time-venue {
    display: flex;
    flex-flow: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1rem;
    overflow: hidden;
    background-color: rgb(243 244 246);
    border-bottom: 1px solid rgb(229 231 235);
    /* font-fixture utility already applied via CSS — inherits if class is also present */
}
.dark .header-time-venue {
    background-color: rgb(255 255 255 / 0.05);
    border-bottom-color: rgb(255 255 255 / 0.05);
}

.match-info-short {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.158);
    margin-bottom: 0.5rem;
}
.fixtures-only .match-info-short {
    border-bottom: none;
    margin-bottom: 0;
}

.knockout-match {
    /*flex flex-col gap-1*/
    display: flex;
    flex-direction: column;
}

.knockout-match-pair {
/* flex items-start gap-1 px-3 py-2 bg-gray-100 dark:bg-gray-800 */
    display: flex;
    flex-flow: row;
    gap: 0.375rem;
    padding: 0.5rem;
    background-color: rgb(31 41 55);
    justify-content: center;
    align-items: center;
    min-height: 6rem;
}

.knockout-team-slot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.375rem;
    min-width: 0;
    flex: 1 1 0;
}

.knockout-team-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 0.125rem;
    min-height: 3.5rem;
}

.knockout-team-abbr {
    color: #fff;
    font-family: "Press Start 2P", cursive;
    font-size: 0.5rem;
    min-height: 0.75rem;
    text-align: center;
}

.knockout-team-select {
    width: 100%;
    min-width: 0;
    /* text-xs dark:bg-gray-700 dark:border-gray-600 dark:text-gray-200*/
    font-size: 0.75rem;
    background-color: rgb(55 65 81);
    border: 1px solid rgb(55 65 81);
    color: rgb(156 163 175);
    padding: 0.375rem;
}

.knockout-flag-placeholder {
    width: 3rem;
    height: 2.25rem;
    flex-shrink: 0;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(135deg, transparent 46%, rgba(255, 255, 255, 0.18) 47%, rgba(255, 255, 255, 0.18) 53%, transparent 54%),
        linear-gradient(45deg, transparent 46%, rgba(255, 255, 255, 0.18) 47%, rgba(255, 255, 255, 0.18) 53%, transparent 54%),
        rgb(55 65 81 / 0.45);
}

.knockout-match-code {
    font-size: 0.625rem;
    line-height: 1rem;
    color: rgb(156 163 175);
}

.knockout-match-vs {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(156 163 175);
    margin-left: 0.125rem;
    margin-right: 0.125rem;
    flex: 0 0 auto;
    margin-bottom: -2rem;
}
/*text-xs font-bold text-gray-400 mt-3 mx-0.5*/

.scoring-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}
.scoring-dots--tight {
    gap: 3px;
}

.scoring-dot {
    width: 1.75rem; 
    height: 1.75rem; 
    border-radius: 50%; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
}
.scoring-dot--sm {
    width: 1.25rem;
    height: 1.25rem;
}
.scoring-dot--correct {
    background: #00FF00;
    color: #000;
}
.scoring-dot--wrong {
    background: #ef4444;
    color: #fff;
}
.scoring-dot--pending {
    background: #ffffff27;
    color: #ffffff62;
}
.scoring-dot--text {
    font-size: 1rem;
    line-height: 1;
    text-align: center;
}
.scoring-dot--fixture-outcome {
    font-size: 0.7rem;
    font-weight: 700;
}
.scoring-dot--fixture-goals {
    font-size: 0.55rem;
    font-weight: 700;
}

svg.flag-medium {
    width: 4rem;
}

/* --- Fixture detail: hide player full name on mobile --- */
@media (max-width: 767px) {
    .fixture-player-fullname {
        display: none;
    }
}

/* --- Nav prev/next buttons (fixture detail) --- */
.nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem !important;
    border: 1px solid #14b8a6;
    background-color: rgb(13 148 136 / 0.2);
    color: #99f6e4;
    transition: background-color 0.15s;
}
.nav:hover {
    background-color: rgb(13 148 136 / 0.4);
}

.nav-buttons {
    display: flex;
    justify-content: space-around;
}

.fixture-prediction-cell {
    padding: 0.375rem;
}

.podium-strip a:last-child {
    border-bottom: none!important;
}

.status-spot {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    display: flex;
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    justify-content: center;
    align-items: center;
}

.status-spot--complete {
    background-color: #22c55e;
}

.status-spot--partial {
    background-color: #eab308;
    animation: status-spot-blink 1473ms ease-in-out infinite;
}

.status-spot--empty {
    background-color: #ef4444;
    animation: status-spot-blink 370ms ease-in-out infinite;
}

@keyframes status-spot-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

/* --- Knockout pair selection (click-based bracket) --- */
.knockout-pick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: opacity 0.15s;
    min-width: 3rem;
}
.knockout-pick-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.07);
}
.knockout-pick-btn--selected {
    border: 1px solid #bcf54c17;
}
.knockout-pair-check {
    position: absolute;
    bottom: -0.25rem;
    right: -0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background: var(--brand-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
}
.knockout-match-pair--empty {
    justify-content: center;
    min-height: 4rem;
}

.glow {
    filter: drop-shadow(0 0 4px #d5eed542);
}


@media (max-width: 767px) {
    .fi-header-heading {
        flex-flow: column;
    }
}

.fi-page > .gap-y-8 {
    gap: 1rem !important;
}

