:root { --iq-navy: #122B4A; --iq-orange: #E66B27; --iq-light: #f8f9fa; }
body { background-color: #f0f2f5; font-family: 'Roboto', sans-serif; overflow-x: hidden; font-size: 0.85rem; }

/* Persistent Appbar */
.iq-appbar {
    background: var(--iq-navy);
    height: 45px; /* Reduced from 60px */
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Sidebar Styling */
.sidebar {
    width: 200px; /* Reduced from 250px */
    height: calc(100vh - 45px);
    position: fixed;
    top: 45px;
    left: 0;
    background: white;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    transition: 0.3s;
}

/* Main Content Area */
.main-content {
    margin-left: 200px; /* Matched sidebar width */
    padding-top: 55px; /* Reduced space for appbar */
    min-height: 100vh;
}

/* Date Picker Scrollbar (Appbar) */
.date-picker {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    gap: 10px; /* Reduced gap */
}
.date-item { color: #fff; opacity: 0.7; cursor: pointer; text-decoration: none; font-size: 0.8rem; }
.date-item.active { opacity: 1; border-bottom: 2px solid var(--iq-orange); font-weight: bold; }

/* Fixture Card */
.fixture-card {
    background: #fff;
    border-radius: 8px; /* Slightly smaller radius */
    border: none;
    margin-bottom: 8px; /* Reduced margin */
    transition: 0.2s;
}
.fixture-card:hover { transform: scale(1.01); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.ai-badge { background: #e8f0fe; color: #1a73e8; font-weight: bold; font-size: 0.65rem; border-radius: 3px; padding: 1px 6px; }

@media (max-width: 992px) {
    .sidebar { left: -200px; }
    .main-content { margin-left: 0; }
}
/* Essential layout styles that must be present for the Sidebar/Appbar to work */
:root { --iq-navy: #122B4A; --iq-orange: #E66B27; }
body { background-color: #f0f2f5; font-family: 'Roboto', sans-serif; }

.iq-appbar { background: var(--iq-navy); height: 45px; z-index: 1030; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }

.sidebar { width: 200px; height: calc(100vh - 45px); position: fixed; top: 45px; left: 0; background: white; border-right: 1px solid #dee2e6; overflow-y: auto; z-index: 1000; }

.main-content { margin-left: 200px; padding-top: 55px; min-height: 100vh; transition: 0.3s; }

/* Date Picker Appbar Styling */
.date-picker { display: flex; overflow-x: auto; white-space: nowrap; scrollbar-width: none; gap: 12px; }
.date-picker::-webkit-scrollbar { display: none; }
.date-item { color: rgba(255,255,255,0.7); cursor: pointer; text-decoration: none; font-size: 0.75rem; padding-bottom: 3px; }
.date-item.active { color: #fff; border-bottom: 2px solid var(--iq-orange); font-weight: bold; }

/* Horizontal Sports Selector */
.sport-btn-card { cursor: pointer; transition: 0.2s; min-width: 180px; } /* Reduced from 240px */
.sport-btn-card:hover { transform: translateY(-2px); }
.sport-btn-card.active .card-body { border: 2px solid var(--iq-orange) !important; background-color: #fff9f5 !important; }

/* Fixture Cards */
.fixture-card { border-radius: 8px; transition: 0.2s; margin-bottom: 8px; }
.fixture-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; }
.ai-badge { background: #e8f0fe; color: #1a73e8; font-weight: bold; font-size: 0.65rem; border-radius: 3px; padding: 3px 8px; display: inline-block; }

@media (max-width: 992px) {
    .sidebar { left: -200px; }
    .main-content { margin-left: 0; }
}
/* Update the main-content and container settings to stop the "squeezing" */

.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.main-content {
    margin-left: 200px; /* Matches the sidebar width */
    padding-top: 55px;
    padding-left: 10px !important; /* Minimal padding to prevent touching edges */
    padding-right: 10px !important; /* Minimal padding to prevent touching edges */
    width: calc(100% - 200px); /* Ensures it occupies exactly the remaining space */
    transition: 0.3s;
}

/* Ensure the cards within the main content use 100% of the available width */
.sport-btn-card {
    flex: 0 0 auto;
    width: 160px; /* Fixed width for the horizontal scroll items */
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Remove default Bootstrap gutter padding from the row in main-content */
.main-content .row {
    --bs-gutter-x: 0.5rem;
}

.date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none; /* Hides scrollbar on Firefox */
    padding: 2px;
}

.date-picker::-webkit-scrollbar { display: none; } /* Hides scrollbar on Chrome/Safari */

.date-item {
    cursor: pointer;
    min-width: 45px;
    padding: 4px 8px;
    border-radius: 10px;
    text-align: center;
    /* This color works on dark navbars; for light navbars, use 'inherit' or a CSS variable */
    color: white;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

/* Adaptive Hover & Active States */
.date-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.date-item.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.calendar-icon {
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
}

.date-day {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.date-num {
    font-size: 1rem;
    line-height: 1;
}

.date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.date-picker::-webkit-scrollbar { display: none; }

.date-item {
    cursor: pointer;
    min-width: 45px;
    padding: 5px;
    border-radius: 8px;
    text-align: center;
    /* This uses the default text color of your theme */
    color: inherit;
    transition: all 0.2s;
    border: 1px solid transparent;
}

/* Hover effect: Uses a slight tint of the current text color */
.date-item:hover {
    background: rgba(128, 128, 128, 0.1);
}

/* Active State: Uses your brand Red or a solid highlight */
.date-item.active {
    background: #ff0000; /* SportIQ Red */
    color: #fff !important; /* Keep text white only when background is red */
    font-weight: bold;
}

.calendar-icon {
    /* Adjusts color automatically to match your icons/text */
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 12px;
    opacity: 0.8;
}

.date-day { font-size: 0.65rem; text-transform: uppercase; opacity: 0.7; }
.date-num { font-size: 1rem; font-weight: 600; }
.date-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.date-picker::-webkit-scrollbar { display: none; }

.date-item {
    cursor: pointer;
    min-width: 45px;
    padding: 6px;
    border-radius: 10px;
    text-align: center;
    color: inherit; /* Takes black in light theme, white in dark theme */
    transition: 0.2s;
}

.date-item:hover { background: rgba(128, 128, 128, 0.15); }

.date-item.active {
    background: #ff0000; /* SportIQ Red */
    color: #fff !important;
    font-weight: bold;
}

.calendar-icon {
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    margin-right: 10px;
    padding: 5px;
}
.date-day { font-size: 0.65rem; opacity: 0.8; }
.date-num { font-size: 1.1rem; line-height: 1; }