/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-blue: #001f3f;
    --navy-light: #003366;
    --navy-dark: #001a33;
    --accent-blue: #0074D9;
    --light-gray: #f4f4f4;
    --medium-gray: #ddd;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --success: #2ECC40;
    --warning: #FF851B;
    --danger: #FF4136;
    --live-red: #FF0000;
    --score-gradient: linear-gradient(135deg, #001f3f, #0074D9);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

/* Remove underline from all links and buttons */
a, .btn {
    text-decoration: none;
}

/* Header & Navigation */
.header {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
   
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--white);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.section-title {
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title h2 {
    margin: 0;
}

/* Live Matches Section - Enhanced */
.live-matches-section {
    margin-bottom: 3rem;
    position: relative;
}

.live-matches-section .section-title {
    color: var(--live-red);
    border-bottom-color: var(--live-red);
}

.live-badge {
    display: flex;
    align-items: center;
    background: var(--live-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Sports Grid - Improved Layout */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sport-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.sport-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-blue);
}

.sport-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--navy-blue);
}

.sport-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-top: 0.5rem;
}

/* Matches List - Enhanced Layout */
.matches-list {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.match-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--medium-gray);
    transition: background-color 0.3s;
    gap: 1rem;
}

.match-item:hover {
    background-color: rgba(0, 116, 217, 0.05);
}

.match-item:last-child {
    border-bottom: none;
}

.match-sport {
    background: var(--navy-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    min-width: 80px;
}

.match-teams {
    flex-grow: 1;
    padding: 0 1rem;
}

.team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.team:last-child {
    margin-bottom: 0;
}

.team-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
}

.team-vs {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0.5rem;
}

/* Enhanced Live Match Score */
.match-score {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    text-align: center;
    min-width: 140px;
    background: var(--score-gradient);
    padding: 1rem 0.5rem;
    border-radius: 10px;
    margin: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 31, 63, 0.2);
    position: relative;
    overflow: hidden;
}

.match-score::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: score-shine 3s infinite;
}

@keyframes score-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.match-score.live {
    background: linear-gradient(135deg, var(--live-red), #ff4444);
    animation: score-pulse 2s infinite;
}

@keyframes score-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.score-separator {
    opacity: 0.8;
    margin: 0 0.25rem;
}

.match-info {
    text-align: right;
    color: var(--text-light);
    font-size: 0.9rem;
    min-width: 120px;
}

.match-status {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-upcoming {
    background-color: var(--medium-gray);
    color: var(--text-light);
}

.status-live {
    background-color: var(--live-red);
    color: var(--white);
    animation: status-pulse 1.5s infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.status-half_time {
    background-color: var(--warning);
    color: var(--white);
}

.status-finished {
    background-color: var(--danger);
    color: var(--white);
}

/* Standings Table - Improved Layout */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.standings-table th {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
}

.standings-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--medium-gray);
    vertical-align: middle;
}

.standings-table tr:hover {
    background-color: rgba(0, 116, 217, 0.05);
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--navy-blue);
    flex-shrink: 0;
}

.position {
    font-weight: bold;
    color: var(--navy-blue);
    font-size: 1.2rem;
    min-width: 30px;
}

/* Live Stream Section */
.live-stream-section {
    margin: 3rem 0;
}

.stream-container {
    background: var(--navy-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.stream-header {
    background: linear-gradient(90deg, var(--live-red), #ff4444);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: header-pulse 2s infinite;
}

@keyframes header-pulse {
    0%, 100% { background: linear-gradient(90deg, var(--live-red), #ff4444); }
    50% { background: linear-gradient(90deg, #ff4444, var(--live-red)); }
}

.stream-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stream-content {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.stream-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.copyright {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Admin Styles */
.admin-header {

}

.admin-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s;
   
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: var(--navy-blue);
    transform: translateY(-2px);
}

.admin-container {
    max-width: 1400px;
}

.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card h3 {
    color: var(--navy-blue);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.dashboard-card .number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-blue);
    line-height: 1;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy-blue);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(0, 116, 217, 0.1);
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background-color: var(--navy-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 31, 63, 0.2);
}

.btn-success {
    background-color: var(--success);
}

.btn-warning {
    background-color: var(--warning);
}

.btn-danger {
    background-color: var(--danger);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
    vertical-align: middle;
}

.data-table th {
    background-color: var(--navy-blue);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.data-table tr:hover {
    background-color: rgba(0, 116, 217, 0.05);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Login Page */
.login-container {
    max-width: 420px;
    margin: 5rem auto;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-title {
    color: var(--navy-blue);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Live Update Indicator */
.live-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--live-red);
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px var(--live-red);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .match-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    
    .match-score {
        grid-column: 1 / -1;
        margin: 0.5rem 0;
        min-width: auto;
        width: 100%;
    }
    
    .match-info {
        text-align: left;
        grid-column: 2;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        text-align: left;
        padding: 0.5rem 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--navy-blue); /* Add this line */
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        display: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 0.75rem;
        text-align: center;
        width: 100%;
        color: var(--white); /* Ensure text is white */
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .match-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .match-sport {
        justify-self: start;
    }
    
    .match-info {
        text-align: left;
        grid-column: 1;
    }
    
    .match-score {
        font-size: 2rem;
        min-width: auto;
        margin: 0.5rem 0;
    }
    
    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .admin-nav {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .admin-nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .sports-grid {
        grid-template-columns: 1fr;
    }
    
    .match-score {
        font-size: 1.8rem;
        padding: 0.75rem;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .login-container {
        margin: 3rem auto;
        padding: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.25rem;
    }
    
    .dashboard-card .number {
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}