:root {
    --dark-bg: #1a1d24;
    --darker-bg: #141619;
    --text-color: #ffffff;
    --border-color: #2a2e35;
    --hover-bg: #2a2e35;
    --success-color: #4CAF50;
    --error-color: #f44336;
}

.logo img {
    max-height: 60px;
    padding: 10px;
    margin-left: 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    flex: 0 0 auto;
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    text-align: center;
}

.nav-menu a {
    display: block;
    padding: 1em;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-menu a:hover {
    color: #ddd;
    background-color: var(--hover-bg);
}

.nav-menu a.active {
    color: var(--text-color);
}

.nav-menu a.active::after {
    transform: scaleX(1);
    background-color: #fff;
}

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 0;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: var(--darker-bg);
    transition: right 0.3s ease;
    z-index: 1000;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
}

.mobile-menu li {
    margin: 20px 0;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .logo img {
        max-height: 40px; /* Smaller size for mobile */
    }
}

.open {
    right: 0;
    display: block;
}

header {
    background-color: #333;
    color: white;
    padding: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1em;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

.content-wrapper {
    flex: 1;
    padding: 20px 30px;
    margin-bottom: 80px;
}

main {
    padding: 2em;
}

footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 100;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px;
}

.content-wrapper {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.fixtures-header {
    margin-bottom: 20px;
}

.fixtures-header h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.competition-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    background: var(--darker-bg);
    border: none;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.tab.active {
    background: #000;
}

.fixtures-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    margin-bottom: 30px;
}

.fixtures-table tr {
    background: var(--darker-bg);
}

.fixtures-table th {
    text-align: left;
    padding: 12px;
    color: #8a8d91;
    font-weight: normal;
    border-bottom: 1px solid var(--border-color);
}

.fixtures-table td {
    padding: 12px;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: normal;
}

.fixtures-table td .team-name {
    font-size: inherit;
}

.competition-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    display: inline-block;
    color: white;
}

.premier-league {
    background: #3D195B !important;
}

.uefa-champions-league {
    background: #000B1C !important;
}

.la-liga {
    background: #ee8707 !important;
}

.serie-a {
    background: #024494 !important;
}

.score {
    font-weight: bold;
}

.bet-won {
    background: var(--success-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

.bet-lost {
    background: var(--error-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Team styling */
.team-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-name span {
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
}

.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Style the month headers */
.content-wrapper h2 {
    font-size: 1.3rem;
    margin: 30px 0 20px 0;
    color: var(--text-color);
}

/* Style the main heading */
.content-wrapper h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Add competition badge styling if needed */
.match-schedule .competition {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    background: var(--darker-bg);
}

/* Update the competition cell in schedule table */
.match-schedule td:first-child {
    width: 200px; /* Set fixed width for competition column */
}

.match-schedule .competition-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    display: inline-block;
}

/* Competition specific colors - reuse from results table */
.premier-league {
    background: #3D195B;
}

.uefa-champions-league {
    background: #000B1C;
}

.la-liga {
    background: #ee8707;
}

.serie-a {
    background: #024494;
}

/* Add these new styles for match-schedule table */
.match-schedule {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    margin-bottom: 80px;
}

.match-schedule tr {
    background: var(--darker-bg);
}

.match-schedule th {
    text-align: left;
    padding: 12px;
    color: #8a8d91;
    font-weight: normal;
    border-bottom: 1px solid var(--border-color);
}

.match-schedule td {
    padding: 12px;
    border: none;
}

/* Competition badge styles for match-schedule */
.match-schedule .competition-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    display: inline-block;
    color: white;
}

/* Remove any conflicting styles */
.match-schedule .competition {
    display: none;
}

/* Keep the competition colors as they are in the original CSS */

/* Style the section headers in index.php */
.content-wrapper h2 {
    font-size: 1.5rem;
    margin: 30px 0 20px 0;
    color: var(--text-color) !important;
}

/* Style the status column */
.fixtures-table td:nth-child(3) {
    color: var(--text-color);
}

/* Style the score column */
.fixtures-table td:nth-child(5) {
    font-weight: bold;
}

/* Style the odds column */
.fixtures-table td:nth-child(7) {
    font-family: monospace;
    color: var(--text-color);
}

/* Style the prediction column */
.fixtures-table td:nth-child(8) {
    color: var(--text-color);
}

/* Premier League Table Styling */
.premier-league-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    margin-bottom: 80px;
}

.premier-league-table tr {
    background: var(--darker-bg);
}

.premier-league-table th {
    text-align: left;
    padding: 12px;
    color: #8a8d91;
    font-weight: normal;
    border-bottom: 1px solid var(--border-color);
}

.premier-league-table td {
    padding: 12px;
    border: none;
}

/* Style specific columns */
.premier-league-table td:first-child {
    font-weight: bold; /* Position number */
    text-align: center;
    width: 50px;
}

.premier-league-table td:nth-child(2) {
    width: 250px; /* Team name column */
}

/* Numbers columns alignment */
.premier-league-table td:nth-child(n+3):nth-child(-n+8) {
    text-align: center;
    font-family: monospace;
}

/* Form column */
.premier-league-table td:last-child {
    font-family: monospace;
    text-align: center;
}

/* Champions League spots */
.premier-league-table tr:nth-child(-n+4) td:first-child {
    color: #00ff87; /* UCL spots color */
}

/* Europa League spot */
.premier-league-table tr:nth-child(5) td:first-child {
    color: #ff8900; /* Europa League spot color */
}

/* Relegation zone */
.premier-league-table tr:nth-child(n+18) td:first-child {
    color: #ff4545; /* Relegation zone color */
}

/* Update Premier League Table Styling for alignment */
.premier-league-table th,
.premier-league-table td {
    padding: 12px;
    border: none;
    text-align: center; /* Center all cells by default */
}

/* Team name column - left align */
.premier-league-table th:nth-child(2),
.premier-league-table td:nth-child(2) {
    text-align: left;
    width: 250px;
}

/* Position column */
.premier-league-table th:first-child,
.premier-league-table td:first-child {
    width: 50px;
    text-align: center;
}

/* All numeric columns (P, W, D, L, GD, Pts) */
.premier-league-table th:nth-child(n+3):nth-child(-n+8),
.premier-league-table td:nth-child(n+3):nth-child(-n+8) {
    width: 60px; /* Fixed width for numeric columns */
    text-align: center;
    font-family: monospace;
}

/* Form column */
.premier-league-table th:last-child,
.premier-league-table td:last-child {
    width: 80px;
    text-align: center;
    font-family: monospace;
}

/* Update team styling to ensure consistent weight and size */
.team-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-name span,
.team-name a {
    font-size: 16px !important;
    color: var(--text-color) !important;
    text-decoration: none;
    white-space: nowrap;
    font-weight: normal !important; /* Force normal weight */
}

.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Ensure consistent styling in table cells */
.fixtures-table td {
    padding: 12px;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: normal; /* Ensure normal weight */
}

