/* Team Profile Page Styles */
:root {
    --cb-dark: #121212;
    --cb-gray: #f8f9fa;
    --cb-border: #e9ecef;
    --cb-accent: #1d3163;
    --cb-white: #fff;
    /* Example accent color from image */
}

td {
    display: table-cell !important;
}

.dark-blue {
	background: #152347;
}

.match-table-container.p-3 {
    background: #1d3163;
    color: #fff;
}

.match-table-container .text-center {
	color: #fff !important;
}

.cb_team-template-default .content_wrap,
.content_container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.cb_team-template-default .row {
    margin: auto !important;
}

.team-sidebar-card hr {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

.team-header-banner {
    background-color: #152347;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.team-header-banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
    color: #fff;
}

.team-breadcrumbs {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.team-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.team-breadcrumbs .separator {
    margin: 0 10px;
}

.team-intro-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.team-logo-card {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--cb-border);
    border-radius: 4px;
    text-align: center;
}

.team-logo-card img {
    max-width: 100%;
    height: auto;
}

.team-intro-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.team-intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
}

/* Results Section */
.section-title-bar {
    background-color: #1d3163;
    color: #fff;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 700;
    border-top: 3px solid #748bc4;
    margin-bottom: 1px;
}

.match-result-card {
    background: #fff;
    border: 1px solid var(--cb-border);
    padding: 20px;
    margin-bottom: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-date-time {
    text-align: center;
    flex: 1;
}

.match-date {
    font-size: 0.75rem;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.match-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.match-league-venue {
    font-size: 0.75rem;
    color: #888;
}

.match-team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Stats Section */
.team-sidebar-card {
    background: #fff;
    border: 1px solid var(--cb-border);
    padding: 25px;
    margin-bottom: 20px;
}

.sidebar-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.sidebar-value {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

/* Standings Table */
.cb-table-premium {
    width: 100%;
    border-collapse: collapse;
}

.cb-table-premium th {
    background-color: #152347;
    color: #fff;
    padding: 12px;
    font-size: 0.85rem;
    text-align: center;
}

.cb-table-premium th:first-child,
.cb-table-premium td:first-child {
    text-align: left;
    padding-left: 15px;
}

.cb-table-premium td {
    padding: 12px;
    border: 1px solid var(--cb-border);
    text-align: center;
    font-size: 0.9rem;
}

.cb-table-premium .team-entry {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cb-table-premium .team-entry img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cb-table-premium .team-highlight {
    color: var(--cb-accent);
    font-weight: 700;
}

/* Player Table */
.player-link {
    color: var(--cb-accent);
    text-decoration: none;
    font-weight: 500;
}

/* -----------------------------------------------------------
   Stats Section Styles (Dark Blue Theme)
----------------------------------------------------------- */

/* Sidebar Menu */
.cb-stats-menu h6 {
    background-color: #1a2c4e !important;
    /* Dark Blue from Screenshot */
    color: #fff !important;
    border-bottom: 1px solid #2c3e50;
    padding: 15px !important;
}

.cb-stats-menu .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f2f6;
    font-size: 0.95rem;
    padding: 14px 20px;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease-in-out;
}

.cb-stats-menu .list-group-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
    padding-left: 25px;
    /* Slide effect */
}

.cb-stats-menu .list-group-item.active {
    background-color: #0d6efd !important;
    /* Bright Blue from Screenshot */
    border-color: #0d6efd !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
    z-index: 2;
}

.cb-stat-link .cb-icon {
    font-size: 1.1em;
    font-weight: bold;
    opacity: 0.8;
}

/* Stats Table Premium Overrides */
.cb-team-stats-container .cb-table-premium thead th {
    background-color: #1a2c4e !important;
    /* Match Sidebar Header */
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 15px 12px;
    border: none;
}

.cb-team-stats-container .cb-table-premium tbody td {
    padding: 14px 12px;
    vertical-align: middle;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.cb-team-stats-container .cb-table-premium tbody tr:nth-of-type(even) {
    background-color: #fcfcfc;
    /* Zebra striping for readability */
}

.cb-team-stats-container .cb-table-premium tbody tr:hover {
    background-color: #f1f4f9;
}

.cb-team-stats-container .spinner-border {
    width: 2rem;
    height: 2rem;
    color: #0d6efd;
}