/* CSS Custom Properties (Variables) */
:root {
    --sb-orange: #eb8d28;
    --sb-blue-dark: #054161;
}

.nav-link {
    color: var(--sb-blue-dark);
}

/* Responsive page headings (mobile-first) */
.page-title {
    font-size: 1.2rem; /* ~Bootstrap fs-4 */
    line-height: 1.15;
    font-weight: 500;
    margin-top: 3px;
}

@media (min-width: 576px) {
    .page-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }
}

@media (min-width: 992px) {
    .page-title {
        font-size: 2.0rem; /* ~Bootstrap fs-1 */
    }
}

.login-link {
    color: var(--sb-blue-dark) !important;
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    color: var(--sb-orange) !important;
}

.btn-primary {
    background-color: var(--sb-orange) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    border: none !important;
}

.btn-secondary {
    background-color: var(--sb-blue-dark) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    border: none !important;
}

.btn-primary:hover {
    background-color: var(--sb-orange) !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    color: var(--sb-blue-dark) !important;
    font-weight: 600;
    border: 1px solid var(--sb-blue-dark) !important;
}

.btn-outline-primary:hover {
    background-color: var(--sb-blue-dark) !important;
    color: #FFFFFF !important;
}

.small-table-custom {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

/* Custom styles for StatBetting Laravel app */
.table th,
.table thead th,
table thead th {
    background-color: var(--sb-blue-dark) !important;
    color: #fff !important;
    border-color: #ffffff;
    border: none;
}

.sb-card-header {
    background-color: var(--sb-blue-dark) !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    font-weight: 600;
    font-size: 16px;
}

/* Fixtures sidebar headers (Filter / Leagues) */
.sidebar-headers {
    background-color: var(--sb-orange) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 20px !important;
    border-radius: 0 !important;
    letter-spacing: 0.3px;
}

/* Card styling to match fixtures table wrapper */
.card {
    border-radius: 16px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5);
    border: none;
    overflow: hidden;
}

.card-header:first-child {
    border-radius: 16px 16px 0 0;
}

/* Chat header styling */
.chat-header {
    background-color: var(--sb-orange);
    color: #fff;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 56px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.chat-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-header-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4caf50;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
    animation: pulseStatus 2s ease-in-out infinite;
}

@keyframes pulseStatus {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
    }
}

.status-text {
    font-size: 12px;
    opacity: 0.9;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.table > tbody > tr.success > td {
    background-color: #dff0d8;
}

.table > tbody > tr.danger > td {
    background-color: #f2dede;
}

.table > tbody > tr.active > td {
    background-color: #f5f5f5;
}

.team_logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.top_banner {
    background-image: var(--top-banner-image, url('../images/banners/top_banner.png'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 30px 20px;
    margin-bottom: 20px;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top_banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.top_banner .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.top_banner_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.top_banner_teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.top_banner_team {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top_banner_team.home_team {
    flex-direction: row;
}

.top_banner_team.away_team {
    flex-direction: row;
}

.team_jersey {
    width: 70px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.team_jersey svg {
    width: 100%;
    height: 100%;
}

.team_name {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    text-align: center;
    white-space: nowrap;
}

.top_banner_vs {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    margin: 0 10px;
}

.top_banner_datetime {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.match_date {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.match_time_separator {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.match_time {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sb-orange);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.top_banner_competition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.competition_flag {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-right: 6px;
}

.competition_name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    display: inline-block;
}

.top_banner h3 {
    margin: 10px 0;
    font-weight: bold;
    color: white;
}

.top_banner img {
    width: auto;
    height: 120px;
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top_banner {
        padding: 20px 15px;
        min-height: 180px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .top_banner_teams {
        gap: 15px;
    }

    .team_jersey {
        width: 55px;
        height: 70px;
    }

    .team_name {
        font-size: 1.2rem;
        white-space: normal;
        max-width: 44vw;
        overflow-wrap: anywhere;
        white-space: nowrap;
    }

    .top_banner_vs {
        font-size: 1.1rem;
        margin: 0 8px;
    }

    .top_banner_team {
        gap: 8px;
    }

    .competition_name {
        font-size: 0.85rem;
    }

    .match_date,
    .match_time {
        font-size: 0.9rem;
    }
}

.advert-alert {
    background-color: var(--sb-orange);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.advert-alert a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .top_banner {
        padding: 15px 10px;
        min-height: 160px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .top_banner_content {
        gap: 12px;
    }

    .top_banner_teams {
        gap: 10px;
        flex-wrap: wrap;
    }

    .team_jersey {
        width: 45px;
        height: 55px;
    }

    .team_name {
        font-size: 1rem;
        white-space: normal;
        max-width: 48vw;
        overflow-wrap: anywhere;
        white-space: nowrap;
    }

    .top_banner_vs {
        font-size: 0.95rem;
        letter-spacing: 1px;
        margin: 0 5px;
        width: 100%;
        order: 3;
    }

    .top_banner_team {
        gap: 6px;
        flex: 1;
        min-width: 45%;
    }

    .top_banner_team.home_team {
        flex-direction: column;
    }
    
    .top_banner_team.away_team {
        flex-direction: column;
    }

    .match_date,
    .match_time {
        font-size: 0.85rem;
    }
}

/* Responsive table helper for dense stats tables (mobile/iPad scrolling) */
.stats-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
    /* Lets wide tables scroll inside Bootstrap flex columns (default min-width: auto blocks shrink) */
    min-width: 0;
}

/* Fixtures table wrapper - prevent horizontal scrolling */
.fixtures-table-wrapper {
    overflow-x: hidden !important;
    max-width: 100%;
    width: 100%;
    border-radius: 16px;
    background-color: #00008b;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.fixtures-table-wrapper.table-responsive {
    overflow-x: hidden !important;
}

.fixtures-table-wrapper table {
    table-layout: auto;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
}

/* Navy date / league section headers — home fixtures + ESPN fixtures (shared) */
.fixtures-table-wrapper .fixtures-section-header-cell {
    padding: 16px 20px !important;
    font-size: 16px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* table-striped odd-row grey must not tint navy header rows */
.fixtures-table-wrapper table.table-striped > tbody > tr.fixtures-section-header-row {
    background-color: transparent !important;
}

.fixtures-table-wrapper table.table-striped > tbody > tr.fixtures-section-header-row > td {
    background-color: #054161 !important;
}

/* Mobile odds “divider” row — consistent vertical rhythm inside fixtures tables */
.fixtures-table-wrapper table.table-compact tbody tr.mobile-odds-row td {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Explicit zebra striping per fixture (not nth-of-type — avoids hidden mobile rows + per-league tbody resets) */
.fixtures-table-wrapper table.fixtures-table-zebra tbody tr.row-accent td {
    transition: background-color 0.2s ease;
    background-color: #fff !important;
}

.fixtures-table-wrapper table.fixtures-table-zebra tbody tr.row-accent.fixtures-row-stripe td {
    background-color: #f9f9f9 !important;
}

.fixtures-table-wrapper table.fixtures-table-zebra tbody tr.mobile-odds-row td {
    background-color: #fff !important;
}

.fixtures-table-wrapper table.fixtures-table-zebra tbody tr.mobile-odds-row.fixtures-row-stripe td {
    background-color: #f9f9f9 !important;
}

/* Hover state for normal fixture rows */
.fixtures-table-wrapper table.fixtures-table-zebra tbody tr.row-accent.clickable-row:hover td {
    background-color: #f0f7fa !important;
}

.fixtures-table-wrapper table.fixtures-table-zebra tbody tr.mobile-odds-row.clickable-row:hover td {
    background-color: #f0f7fa !important;
}

/* Add padding to table cells for better spacing - ONLY normal fixture rows with row-accent class */
.fixtures-table-wrapper table.table-compact tbody tr.row-accent.clickable-row td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Mobile odds row styling */
.mobile-odds-row {
    border-bottom: 2px solid #042d47;
}

.mobile-odds-row td {
    padding: 8px 15px !important;
}

/* Compact layout when odds/stats cols are hidden (Bootstrap lg and below = max-width 991.98px) */
@media (max-width: 991.98px) {
    .fixtures-table-wrapper {
        overflow-x: hidden;
    }

    .fixtures-table-wrapper table {
        font-size: 0.9rem;
    }

    /* Reduce padding when fixture row is condensed */
    .fixtures-table-wrapper table.table-compact tbody tr.row-accent.clickable-row td {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .fixtures-table-wrapper .competition-name-cell,
    .fixtures-table-wrapper .team-name-cell {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
}

/* ESPN fixtures sidebar: mini month calendar */
.fixtures-date-calendar {
    background-color: #fff;
    --sb-cal-selected-bg: var(--sb-blue-dark);
    --sb-cal-selected-fg: #fff;
}

.fixtures-cal-dow .col {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    padding: 2px 0;
}

.fixtures-cal-week .fixtures-cal-day {
    min-height: 1.75rem;
    line-height: 1.2;
    font-size: 0.8rem;
    font-weight: 500;
}

.fixtures-cal-day--empty {
    min-height: 1.75rem;
}

a.fixtures-cal-day:hover {
    background-color: rgba(5, 65, 97, 0.08);
    color: var(--sb-blue-dark) !important;
}

.fixtures-cal-day--today:not(.fixtures-cal-day--selected) {
    box-shadow: inset 0 0 0 2px var(--sb-orange);
}

.fixtures-cal-day--selected {
    background-color: var(--sb-cal-selected-bg) !important;
    color: var(--sb-cal-selected-fg) !important;
    font-weight: 700;
}

.fixtures-cal-day--selected:hover {
    background-color: var(--sb-cal-selected-bg) !important;
    color: var(--sb-cal-selected-fg) !important;
    filter: brightness(1.08);
}

/* Full-width hero banner */
.hero-banner-full {
    width: 100%;
}

.hero-banner-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5);
}

.bet365_yellow {
    color: #fedf1b;
}

.betting_row {
    background-color: #017b5b !important;
    color: white;
    text-align: center;
    font-size: 11px;
}

.betting_row a {
    color: white;
}

.td_betodds {
    text-align: center;
}

.td_SBI {
    text-align: center;
    font-weight: bold;
}

.td_score {
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
}

.no_padding {
    padding-left: 0;
    padding-right: 0;
}

.dont_wrap {
    white-space: nowrap;
}

.head_to_head {
    margin-top: 10px;
}

.head_to_head > tbody > tr > td {
    vertical-align: middle;
}

.head_to_head .fixture_td_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 35px;
}

.head_to_head .fixture_td_badge svg {
    width: 30px;
    height: 35px;
}

.books_table > thead > tr > th,
.books_table > tbody > tr > th,
.books_table > tfoot > tr > th,
.books_table > thead > tr > td,
.books_table > tbody > tr > td,
.books_table > tfoot > tr > td {
    padding: 8px;
}

/* Sidebar layout */
.sb-sidebar {
    width: 260px;
    background-color: #0b1e2a; /* dark blue/teal to match brand */
    color: #ffffff;
    position: relative;
    height: auto;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sb-brand {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sb-nav .nav {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.sb-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cfe6f3;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.sb-nav-link:hover,
.sb-nav-link:focus {
    background-color: rgba(255,255,255,0.06);
    color: #ffffff;
    border-left-color: var(--sb-orange); /* brand accent */
}

.sb-icon {
    width: 1.25rem;
    display: inline-flex;
    justify-content: center;
}

.sb-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Right feedbar */
.sb-feedbar {
    width: 320px;
    background-color: #0b1e2a;
    color: #ffffff;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.sb-feedbar-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sb-feedbar-content {
    overflow: auto;
}

/* Compact tables for dense data */
.table-compact th,
.table-compact td {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.table-compact {
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .sb-sidebar {
        display: none !important; /* rely on top nav for small screens */
    }
}

@media (max-width: 991.98px) {
    .sb-feedbar {
        display: none !important;
    }
}

/* Lighten overall page background slightly and keep center content bright */
body.bg-light {
    background-color: rgb(0, 0, 0,0.1) !important;
    overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
}

/* Prevent horizontal overflow on html element */
html {
    overflow-x: hidden;
    max-width: 100%;
}

/* Centered content wrapper for Option A */
.center-wrap {
    width: 1320px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    /* background-color: #ffffff;
    border-radius: 0 0 0 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    overflow-x: hidden; */
}

/* Remove container-fluid padding on responsive screens when inside center-wrap to avoid double padding */
/* Keep padding on desktop (normal size) */
@media (max-width: 991.98px) {
    .center-wrap > .container-fluid,
    .center-wrap .container-fluid {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    /* Also remove center-wrap padding on responsive for more width */
    .center-wrap {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* Reusable container class for consistent page width */
.content-container {
    width: 1320px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Main Navigation */
.sb-main-nav {
    background-color: #000000 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    max-width: 100%;
    overflow-x: visible; /* Changed to allow dropdown to overflow */
}

.sb-main-nav .container-fluid {
    max-width: 100%;
    overflow-x: visible; /* Changed to allow dropdown to overflow */
}

.sb-main-nav.sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sb-main-nav .navbar-brand {
    margin-top: 0;
    transition: transform 0.2s ease;
}

.sb-main-nav .navbar-brand:hover {
    transform: scale(1.05);
}

.sb-main-nav .nav-link {
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    margin: 0 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.sb-main-nav .nav-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
    font-weight: 300;
}

.sb-main-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.sb-main-nav .nav-link.active {
    font-weight: 600;
}

.sb-main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--sb-orange);
    border-radius: 2px;
}


.sb-main-nav .user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.75rem !important;
    border-radius: 10px;
    transition: all 0.2s ease;
    border-color: #00ce05;
}

.sb-main-nav .user-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sb-main-nav .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sb-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff;
}

.sb-main-nav .user-name {
    font-size: 0.9rem;
}

.sb-main-nav .btn-nav-link {
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sb-main-nav .btn-nav-link-primary {
    background-color: var(--sb-orange);
    color: #FFFFFF !important;
    font-weight: 600;
}

.sb-main-nav .btn-nav-link-primary:hover {
    background-color: var(--sb-orange);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--sb-orange), 0.3);
}

/* Dropdown Menu Fixes */
.sb-main-nav .dropdown {
    position: relative; /* Bootstrap dropdown needs relative parent for absolute positioning */
}

.sb-main-nav .sb-dropdown {
    position: absolute !important;
    z-index: 1050 !important; /* Higher than navbar z-index (1030) */
    margin-top: 0.5rem;
    background-color: #000000;
    color: #ffffff;
    border-radius: 0px 0px 10px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    min-width: 180px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.sb-main-nav .sb-dropdown .dropdown-item {
    padding: 0.75rem 1.25rem;
    color: #ffffff;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sb-main-nav .sb-dropdown .dropdown-item:hover,
.sb-main-nav .sb-dropdown .dropdown-item:focus {
    background-color: #ffffff;
    color: #000000;
}

.sb-main-nav .sb-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(255, 255, 255, 0.1);
}

.sb-main-nav .sb-dropdown button.dropdown-item {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

/* Header sub-navigation */
.sb-subnav {
    background-color: var(--sb-blue-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.sb-subnav-container {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.sb-subnav.sticky {
    position: sticky;
    top: 64px; /* Height of main nav */
    z-index: 1029;
}

.sb-subnav-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.sb-subnav .nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.sb-subnav .subnav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
}

.sb-subnav .subnav-link:hover,
.sb-subnav .subnav-link:focus {
    background-color: rgba(255,255,255,0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.sb-subnav .subnav-link.active {
    font-weight: 600;
}

.sb-subnav .subnav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background-color: var(--sb-orange);
    border-radius: 2px;
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .sb-main-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    /* Fix the flex container layout on mobile */
    .sb-main-nav #navbarContent > .d-flex {
        flex-direction: column !important;
        align-items: stretch !important;
        margin-left: 0 !important; /* Remove ms-auto on mobile */
        width: 100%;
    }
    
    /* Hide separator on mobile */
    .sb-main-nav .nav-separator {
        display: none;
    }
    
    /* Make navbar-nav full width on mobile */
    .sb-main-nav .navbar-nav {
        width: 100%;
        flex-direction: column;
    }
    
    /* Ensure dropdown container is full width on mobile */
    .sb-main-nav .dropdown {
        position: relative;
        width: 100%;
        margin-left: 0 !important; /* Remove ms-3 on mobile */
        margin-top: 0.5rem;
    }
    
    /* Dropdown responsive fixes */
    .sb-main-nav .sb-dropdown {
        right: 0 !important;
        left: 0 !important; /* Full width on mobile */
        margin-top: 0.5rem;
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }
    
    .sb-main-nav .user-menu-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .sb-main-nav .user-name {
        flex: 1;
        text-align: left;
    }
    
    /* Make subnav horizontally scrollable on mobile */
    .sb-subnav-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.3) transparent;
    }
    
    .sb-subnav-container::-webkit-scrollbar {
        height: 4px;
    }
    
    .sb-subnav-container::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .sb-subnav-container::-webkit-scrollbar-thumb {
        background-color: rgba(255,255,255,0.3);
        border-radius: 2px;
    }
    
    .sb-subnav-container::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255,255,255,0.5);
    }
    
    .sb-subnav .nav {
        flex-wrap: nowrap;
        min-width: max-content;
        padding-bottom: 4px;
    }
    
    .sb-subnav .subnav-link {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .sb-subnav.sticky {
        top: auto;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Hero utility strip */
.hero-strip {
    background: linear-gradient(180deg, rgba(5,65,97,0.08), rgba(5,65,97,0.02));
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.hero-banner {
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    min-height: 140px;
    position: relative;
}

.kpi-tile {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 6px 8px;
}

.kpi-label {
    color: #667788;
    font-size: 0.8rem;
}

.kpi-value {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Enhanced KPI Tile Styles */
.kpi-tile-enhanced {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--sb-blue-dark);
    box-shadow: 0 2px 8px rgba(5, 65, 97, 0.15);
}

.kpi-label-enhanced {
    color: var(--sb-blue-dark);
    font-weight: 900;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.kpi-stats-container {
    font-size: 0.85em;
    padding-top: 2px;
}

.kpi-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.kpi-stats-table thead th {
    padding: 0 4px 4px 4px;
    border-bottom: 2px solid var(--sb-blue-dark);
    text-align: center;
    font-weight: bold;
    color: var(--sb-blue-dark) !important;
    background-color: transparent !important;
    font-size: 0.85em;
}

.kpi-stats-table thead th:first-child {
    text-align: right;
    padding-right: 8px;
}

.kpi-stats-table tbody td {
    padding: 2px 4px;
    text-align: center;
    font-weight: 600;
}

.kpi-stats-table tbody td:first-child {
    padding-right: 8px;
    color: #495057;
}

.kpi-stats-table tbody td:first-child .kpi-jersey-icon {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.75em;
    color: #6c757d;
}

.kpi-stats-table tbody tr:last-child td {
    padding-bottom: 0;
}

.kpi-stats-separator {
    color: #adb5bd;
    padding: 0 2px;
}

.kpi-stats-separator-header {
    color: var(--sb-blue-dark);
    padding: 0 2px;
}

/* Quick filters */
.quick-filters {
    padding: 6px 0;
}

.filter-pill {
    display: inline-block;
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--sb-blue-dark);
    border-radius: 999px;
    font-size: 0.9rem;
    margin-right: 8px;
}

.filter-pill.active {
    background: var(--sb-blue-dark);
    color: #ffffff;
    border-color: var(--sb-blue-dark);
}

/* Table enhancements */
.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--sb-blue-dark) !important;
    color: #fff !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.table-hover tbody tr:hover {
    background-color: rgba(5,65,97,0.06);
}

.row-accent:hover {
    box-shadow: inset 3px 0 0 var(--sb-orange);
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.clickable-row:hover {
    background-color: rgba(5, 65, 97, 0.05) !important;
}

.table-density-comfortable .table-compact th,
.table-density-comfortable .table-compact td {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

/* League chips and team icons */
.league-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef4f8;
    color: var(--sb-blue-dark);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.team-ico {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dde7ee;
    display: inline-block;
}

/* Prevent text wrapping for competition and team names */
.competition-name-cell,
.team-name-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Inline sparkline */
.sparkline {
    width: 60px;
    height: 18px;
}

/* Form table indicators */
.form-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    vertical-align: middle;
}

.form-indicator.form-win {
    background-color: #00ce05; /* Green for win */
}

.form-indicator.form-draw {
    background-color: #d2d2d2; /* Grey for draw */
}

.form-indicator.form-loss {
    background-color: #ce0000; /* Red for loss */
}

.form-indicator.form-empty {
    background-color: transparent;
    border: 1px solid #e0e0e0;
}

/* Corners page specific styles */
.corners-season-select {
    max-width: 200px;
}

.corners-empty-icon {
    opacity: 0.3;
    display: inline-block;
}

.corners-kpi-tile {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.corners-table-row td {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.corners-table-row td:first-child {
    width: 52px;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.corners-table-row td.separator {
    width: 1px;
}

/* Stats page table styles - smaller font for dense data tables */
.stats-page-table tbody td,
.stats-page-table tbody td span,
.stats-page-table tbody td div {
    font-size: 0.9rem !important;
}

.stats-page-table thead th {
    font-size: inherit !important; /* Keep headers at default size */
}

/* Stats page table styles - smaller font for dense data tables */
.stats-page-bets-table {
    border: 1px solid #000;
}

.stats-page-bets-table tbody td,
.stats-page-bets-table tbody td span,
.stats-page-bets-table tbody td div {
    font-size: 0.9rem !important;
}

.stats-page-bets-table thead th {
    font-size: inherit !important; /* Keep headers at default size */
}

/* Mobile card layout styles for bet-table */
.bet-card-mobile {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bet-card-mobile.success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.bet-card-mobile.danger {
    background-color: #f2dede;
    border-color: #ebccd1;
}

.bet-card-mobile.active {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.bet-text-mobile {
    font-size: 0.9rem;
    line-height: 1.4;
}

.bet-odds-mobile {
    font-size: 0.9rem;
}

.bet-sbi-mobile {
    font-size: 0.9rem;
    text-align: right;
}

@media (max-width: 575.98px) {
    .bet-card-mobile .card-body {
        padding: 12px;
    }
    
    .bet-text-mobile {
        font-size: 0.85rem;
    }
    
    .bet-odds-mobile,
    .bet-sbi-mobile {
        font-size: 0.85rem;
    }
    
    .bet-card-mobile .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
    
    .bet-sbi-mobile {
        text-align: left;
    }
}

/* Combined head-to-head and stats-page-table styles for event match tables */
.h2h-stats-table {
    margin-top: 10px;
    border: 1px solid #000;
    width: 100%;
}

/* Four-column ESPN tables: fixed % widths so stacked tables share the same column grid */
.h2h-stats-table.h2h-stats-table-cols-4 {
    table-layout: fixed;
}

.h2h-stats-table.h2h-stats-table-cols-4 col.h2h-col-season {
    width: 13%;
}

.h2h-stats-table.h2h-stats-table-cols-4 col.h2h-col-home {
    width: 31%;
}

.h2h-stats-table.h2h-stats-table-cols-4 col.h2h-col-score {
    width: 18%;
}

.h2h-stats-table.h2h-stats-table-cols-4 col.h2h-col-away {
    width: 38%;
}

/*
 * mode=bookings: wider middle column (card / booking counts). Tune % here — must sum to 100%.
 * Default grid above: 13 / 31 / 18 / 38
 */
.h2h-stats-table.h2h-stats-table-cols-4--bookings col.h2h-col-season {
    width: 11%;
}

.h2h-stats-table.h2h-stats-table-cols-4--bookings col.h2h-col-home {
    width: 26%;
}

.h2h-stats-table.h2h-stats-table-cols-4--bookings col.h2h-col-score {
    width: 28%;
}

.h2h-stats-table.h2h-stats-table-cols-4--bookings col.h2h-col-away {
    width: 35%;
}

.h2h-stats-table > tbody > tr > td {
    vertical-align: middle;
    white-space: nowrap;
}

/* Dense horizontal padding — small gaps between columns only */
.h2h-stats-table.table-sm > :not(caption) > * > * {
    padding-left: 0.1875rem !important;
    padding-right: 0.1875rem !important;
}

.h2h-stats-table.table-sm > tbody > tr > td:first-child {
    padding-left: 0.35rem !important;
}

.h2h-stats-table.table-sm > tbody > tr > td:last-child {
    padding-right: 0.35rem !important;
}

.h2h-stats-table.table-sm thead > tr > th {
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
}

.h2h-stats-table.table-sm tbody > tr > td.match-score {
    padding: 0.2rem 0.5rem !important;
}

.h2h-stats-table .fixture_td_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 28px;
    flex-shrink: 0;
}

.h2h-stats-table .fixture_td_badge svg {
    width: 25px;
    height: 25px;
}

.h2h-stats-table .home-team-name .d-flex.gap-2,
.h2h-stats-table .away-team-name .d-flex.gap-2 {
    gap: 0.25rem !important;
    flex-wrap: nowrap;
}

.h2h-stats-table tbody td,
.h2h-stats-table tbody td span,
.h2h-stats-table tbody td div {
    font-size: 0.9rem !important;
}

.h2h-stats-table thead th {
    font-size: inherit !important; /* Keep headers at default size */
}

.h2h-stats-table tbody > tr > td.season-name {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-stats-table tbody > tr > td.season-name .competition_flag {
    margin-right: 3px;
    vertical-align: middle;
}

.h2h-stats-table tbody > tr > td.home-team-name {
    text-align: right;
}

.h2h-stats-table tbody > tr > td.home-team-name > div {
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
}

.h2h-stats-table tbody > tr > td.home-team-name > div > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-stats-table tbody > tr > td.match-score {
    text-align: center;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-stats-table tbody > tr > td.match-score a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bookings: show full score cell content; scroll inside cell if still wider than column */
.h2h-stats-table.h2h-stats-table-cols-4--bookings tbody > tr > td.match-score {
    overflow-x: auto;
    overflow-y: hidden;
    text-overflow: unset;
}

.h2h-stats-table.h2h-stats-table-cols-4--bookings tbody > tr > td.match-score a {
    display: inline-block;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
}

.h2h-stats-table tbody > tr > td.away-team-name {
    text-align: left;
}

.h2h-stats-table tbody > tr > td.away-team-name > div {
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
}

.h2h-stats-table tbody > tr > td.away-team-name > div > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .h2h-stats-table tbody td,
    .h2h-stats-table tbody td span,
    .h2h-stats-table tbody td div {
        font-size: 0.85rem !important;
    }

    /* On very small screens, prefer wrapping over ellipsis truncation */
    .h2h-stats-table > tbody > tr > td {
        white-space: normal;
    }

    .h2h-stats-table tbody > tr > td.season-name,
    .h2h-stats-table tbody > tr > td.home-team-name > div > span:first-child,
    .h2h-stats-table tbody > tr > td.away-team-name > div > span:last-child,
    .h2h-stats-table tbody > tr > td.match-score,
    .h2h-stats-table tbody > tr > td.match-score a {
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .h2h-stats-table .home-team-name .d-flex.gap-2,
    .h2h-stats-table .away-team-name .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    .h2h-stats-table .fixture_td_badge {
        width: 20px;
        height: 22px;
    }

    .h2h-stats-table .fixture_td_badge svg {
        width: 20px;
        height: 20px;
    }

    .h2h-stats-table .home-team-name .d-flex.gap-2,
    .h2h-stats-table .away-team-name .d-flex.gap-2 {
        gap: 0.2rem !important;
    }
}

/* Footer Styles */
.bs-docs-footer {
    padding-top: 60px;
    padding-bottom: 30px;
    margin-top: 0px;
    color: #dbdbdb;
    background-color: #000;
}

/* Footer columns container - using flexbox for better layout */
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 30px;
    margin-bottom: 50px;
}

.footer-column {
    flex: 1 1 250px;
    min-width: 150px;
}

.footer-heading {
    color: var(--sb-orange);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 149, 45, 0.3);
    padding-bottom: 8px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-links li {
    padding-bottom: 8px;
    transition: transform 0.2s ease;
}

.footer-links li:hover {
    transform: translateX(3px);
}

.bs-docs-footer a {
    color: #dbdbdb;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 2px 0;
}

.bs-docs-footer a:hover {
    color: var(--sb-orange);
    text-decoration: none;
    transform: translateX(2px);
}

/* Footer bottom section with logos */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 20px;
    text-align: center;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-logo {
    height: 45px;
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: grayscale(0%);
}

.footer-logo:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
    filter: grayscale(0%);
}

.footer-version {
    color: #999;
    font-size: 0.875rem;
    font-weight: normal;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Legacy support for old span-based layout */
.bs-docs-footer span {
    float: left;
    width: 190px;
}

.footer_icon {
    width: 20px;
    height: auto;
    margin-top: -9px;
    margin-right: 6px;
    vertical-align: middle;
}

.flag_icon {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

/* Odds badges styling */
.odds-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    flex-direction: row;
}

.odds-container .btn {
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0;
}

.odds-badge-plain {
    display: inline-block;
    background-color: transparent;
    color: #000000;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: normal;
    font-size: 12px;
    min-width: 45px;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.odds-badge {
    display: inline-block;
    background-color: transparent;
    color: #017b5b;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: normal;
    font-size: 12px;
    min-width: 45px;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.odds-badge-lowest {
    background-color: #017b5b;
    color: #fedf1b;
}

.odds-badge-lowest:hover {
    background-color: #015a44;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

a.odds-badge {
    text-decoration: none;
}

a.odds-badge:hover {
    color: #fedf1b;
    text-decoration: none;
}

@media (max-width: 991.98px) {

    .odds-badge-plain {
        font-size: 12px;
        padding: 3px 8px;
        min-width: 35px;
    }

    .odds-badge {
        font-size: 12px;
        padding: 3px 8px;
        min-width: 35px;
    }

    .odds-container {
        gap: 4px;
        flex-wrap: wrap;
    }
}

/* Stats button styling */
.btn-stats {
    color: #042d47;
    border: 1px solid #042d47;
}

.btn-stats:hover {
    background-color: #042d47;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-decoration: none;
}

.btn-stats:focus {
    background-color: #042d47;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(5, 65, 97, 0.25);
}

/* Clear floats for footer container */
.bs-docs-footer .container::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive footer */
@media (max-width: 991.98px) {
    .bs-docs-footer {
        padding-top: 40px;
        padding-bottom: 25px;
    }
    
    .footer-columns {
        gap: 30px 20px;
        margin-bottom: 40px;
    }
    
    .footer-column {
        flex: 1 1 calc(50% - 20px);
        min-width: 140px;
    }
    
    .footer-logos {
        gap: 15px;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    /* Legacy support */
    .bs-docs-footer span {
        width: 100%;
        float: none;
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .footer-column {
        flex: 1 1 100%;
    }
    
    .footer-logos {
        gap: 12px;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .footer-heading {
        font-size: 0.9rem;
    }
}

/* Extra small button - smaller than btn-sm */
.btn-xs {
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    line-height: 1.4;
    border-radius: 0.2rem;
}

/* Free bet button styling - match odds-badge green color */
.btn-outline-primary.free_bet1 {
    color: #017b5b;
    border-color: #017b5b;
}

.btn-outline-primary.free_bet1:hover {
    color: #fedf1b;
    background-color: #017b5b;
    border-color: #017b5b;
    
}

.btn-outline-primary.free_bet1:focus,
.btn-outline-primary.free_bet1:active {
    color: #fff;
    background-color: #015a44;
    border-color: #015a44;
    box-shadow: 0 0 0 0.2rem rgba(1, 123, 91, 0.25);
}

/* Card badge styles for yellow and red cards */
.card-badge {
    display: inline-block;
    min-width: 20px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: bold;
    font-size: 11px;
    color: white;
    border-radius: 3px;
    padding: 0 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.card-badge-yellow {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: 1px solid #DAA520;
}

.card-badge-red {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    border: 1px solid #8B0000;
}

.sbi-tooltip {
    color: white;
    text-align: center;
}

/* Collapsible section styles */
.collapsible-header-bar {
    background-color: var(--sb-blue-dark);
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 0;
}

.collapsible-header-bar strong {
    color: white;
    font-size: 1.1em;
}

.collapsible-header-bar .bi-chevron-down {
    transition: transform 0.3s ease;
    display: inline-block;
    color: white;
}

.collapsible-header-bar[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.bookings-section-collapsible,
.corners-section-collapsible,
.btts-section-collapsible {
    margin-top: 20px;
}

/* Chat widget styles - embedded seamless design */
.chat-widget {
    height: 800px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-bottom: 1rem;
}

.chat-content {
    flex: 1;
    overflow-y: auto;
    background-color: #f8f9fa;
    background-image: linear-gradient(135deg, rgba(5, 65, 97, 0.03) 0%, rgba(5, 65, 97, 0.08) 100%);
    display: flex;
    flex-direction: column;
}

.chat-message-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px 8px;
    overflow-y: auto;
    min-height: 0;
}

.chat-buttons-container {
    padding: 12px 8px 8px 8px;
    border-top: 1px solid rgba(5, 65, 97, 0.1);
    background-color: #fff;
    flex-shrink: 0;
}

.chat-input-container {
    padding: 12px 8px 8px 8px;
    border-top: 1px solid rgba(5, 65, 97, 0.1);
    background-color: #fff;
    flex-shrink: 0;
}

.chat-input-form {
    margin-bottom: 0;
}

.chat-input-form .input-group {
    display: flex;
    gap: 8px;
}

.chat-input-form .form-control {
    flex: 1;
    border: 1px solid rgba(5, 65, 97, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}

.chat-input-form .form-control:focus {
    border-color: var(--sb-blue-dark);
    outline: none;
    box-shadow: 0 0 0 2px rgba(5, 65, 97, 0.1);
}

.chat-input-form .btn {
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.chat-input-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-messages-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    padding-bottom: 8px;
}

/* Chat message wrapper */
.chat-message-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: messageEnter 0.4s ease-out forwards;
}

.chat-message-wrapper.message-right {
    flex-direction: row;
    justify-content: flex-end;
}

.chat-message-wrapper.message-enter {
    animation: messageEnter 0.4s ease-out forwards;
}

@keyframes messageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat avatar */
.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    background-color: var(--sb-blue-dark);
}

/* Chat message content */
.chat-message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: calc(100% - 50px);
}

.chat-message-wrapper.message-right .chat-message-content {
    align-items: flex-end;
}

.chat-message-name {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 2px;
    text-align: left;
}

.chat-message-wrapper.message-right .chat-message-name {
    text-align: right;
}

/* Chat message bubble */
.chat-message-bubble {
    background-color: #f1f1f1;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 14px;
    color: #333;
    position: relative;
    border: 1px solid #d0d0d0;
}

/* Markdown formatting within chat bubbles */
.chat-message-bubble p {
    margin: 0 0 8px 0;
}

.chat-message-bubble p:last-child {
    margin-bottom: 0;
}

.chat-message-bubble strong,
.chat-message-bubble b {
    font-weight: 600;
    color: #054161;
}

.chat-message-bubble em,
.chat-message-bubble i {
    font-style: italic;
}

.chat-message-bubble ul,
.chat-message-bubble ol {
    margin: 8px 0;
    padding-left: 20px;
}

.chat-message-bubble li {
    margin: 4px 0;
}

.chat-message-bubble h1,
.chat-message-bubble h2,
.chat-message-bubble h3,
.chat-message-bubble h4,
.chat-message-bubble h5,
.chat-message-bubble h6 {
    margin: 12px 0 8px 0;
    font-weight: 600;
    color: #054161;
}

.chat-message-bubble h1 { font-size: 1.5em; }
.chat-message-bubble h2 { font-size: 1.3em; }
.chat-message-bubble h3 { font-size: 1.1em; }
.chat-message-bubble h4,
.chat-message-bubble h5,
.chat-message-bubble h6 { font-size: 1em; }

.chat-message-bubble code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.chat-message-bubble pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 8px 0;
}

.chat-message-bubble pre code {
    background: none;
    padding: 0;
}

.chat-message-bubble hr {
    border: none;
    border-top: 1px solid #d0d0d0;
    margin: 12px 0;
}

.chat-message-bubble blockquote {
    border-left: 3px solid #054161;
    padding-left: 12px;
    margin: 8px 0;
    color: #666;
}

.chat-message-bubble::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f1f1f1;
    box-shadow: -1px 0 0 0 #d0d0d0;
}

.chat-message-bubble.bubble-right {
    background-color: #e3f2fd;
    color: #333;
    border: 1px solid #90caf9;
}

.chat-message-bubble.bubble-right::before {
    left: auto;
    right: -9px;
    border-right: none;
    border-left: 8px solid #e3f2fd;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    box-shadow: 1px 0 0 0 #90caf9;
}

/* System message bubble */
.chat-message-bubble.bubble-system {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #d0d0d0;
}

.chat-message-bubble.bubble-system::before {
    border-right-color: #f1f1f1;
    box-shadow: -1px 0 0 0 #d0d0d0;
}

/* Typing indicator */
.typing-indicator-wrapper {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

.typing-bubble {
    background-color: #f1f1f1;
    padding: 10px 14px;
    border-radius: 12px;
    width: 50px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-message-wrapper.message-right .typing-bubble {
    background-color: #e3f2fd;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #999;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.btn-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

/* Register page feature styles */
.register-features-title {
    color: var(--sb-blue-dark);
    font-weight: 700;
}

.register-feature-heading {
    color: var(--sb-blue-dark);
    font-weight: 600;
}

.register-feature-icon {
    width: 40px;
    height: 40px;
    background-color: var(--sb-blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-feature-icon.highlight {
    background-color: var(--sb-orange);
}

/* Register page section headers - matching fixtures table date headers */
.register-section-header {
    background-color: var(--sb-blue-dark) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 20px !important;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
    margin: 0;
}

/* Register page KPI value styling */
.register-kpi-value {
    color: var(--sb-blue-dark);
}

.register-kpi-value-small {
    font-size: 0.9rem;
}
