:root {
    --primary: #660033;
    --secondary: #fcc300;
    --light-bg: #f8f9fa;
    --border: #e9ecef;
}

body {
    background-color: var(--light-bg);
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
}

.navbar {
    position: sticky;
    top: 0;
    background: var(--primary);
    /* background: #323232; */
    border-bottom: 3px solid var(--secondary);
    z-index: 999;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 0rem;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.section-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

.card {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--primary);
}

.university-logo {
    width: 48px;
    height: 48px;
    background: var(--light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.header-logo{
    width: 100%;
    height: 48px;
    /* background: var(--light-bg); */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    /* color: var(--primary); */
    font-size: 14px;
}

.header-image{
    width: 100%;
    height: 50px;
    object-fit:cover;
}

/*.sport-icon {*/
/*    width: 32px;*/
/*    height: 32px;*/
/*    background: var(--light-bg);*/
/*    border-radius: 6px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    color: white;*/
/*    font-size: 14px;*/
/*}*/

.medal-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.medal-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.medal-gold { background: #ffd700; }
.medal-silver { background: #c0c0c0; }
.medal-bronze { background: #cd7f32; }

.status-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-ongoing { background: #a12727; color: #f1d4d4; }
.status-scheduled { background: #74c1ee; color: #0c5460; }
.status-ended { background: #36b661; color: #383d41; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.live-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.team-name {
    font-weight: 600;
    color: #2c3e50;
}

.refresh-indicator {
    font-size: 0.875rem;
    color: #6c757d;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.sport-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary);
}

.sport-image {
    width: 50px;
    height: 50px;
    object-fit: fill;
}

/* Fallback styling if image fails to load */
.sport-icon:not(:has(img)) {
    background: var(--primary);
    color: white;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.university-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.medal-count {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.medal-badge {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    padding: 6px 8px;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
}

.medal-gold {
    background: #FFD700;
}

.medal-silver {
    background: #C0C0C0;
}

.medal-bronze {
    background: #CD7F32;
}

.status-indicator {
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    color: #fff;
}

.status-ongoing {
    background: #dc3545;
}

/* red */
.status-scheduled {
    background: #0d6efd;
}

/* blue */
.status-cancelled {
    background: #6c757d;
}

/* gray */
.status-ended {
    background: #198754;
}

/* green */
.loading-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.25);
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}