/* Basic Styling for the Sidebar Element */
#nfl-schedule-widget {
    font-family: "jetbrainsMono", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 2px dashed #cdd6f4;
    border-radius: 0;
    width: 100%-2px;
    background-color: #181825;
    overflow: hidden;
    color: #cdd6f4;
    font-size: 14px;
}

/* Header */
#nfl-schedule-widget .nfl-widget-header {
    text-align: center;
    padding: 12px;
    background-color: #11111b;
    border-bottom: 2px dashed #cdd6f4;
}
/* Making header style more specific */
#nfl-schedule-widget .nfl-widget-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: #89b4fa; 
    border: none; /* Override general h3 styles */
    background-color: transparent; /* Override general h3 styles */
}
#nfl-schedule-widget .nfl-widget-header p {
    margin: 4px 0 0;
    font-size: 0.9em;
    color: #bac2de;
    background-color: transparent;
    border: none;
}

/* Navigation Controls */
#nfl-schedule-widget .nfl-nav-controls {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 2px dashed #cdd6f4;
}
/* Updated button style for consistency */
#nfl-schedule-widget .nfl-nav-controls button {
    color: #cdd6f4;
    background-color: #313244;
}

#nfl-schedule-widget .nfl-nav-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Schedule Container */
#nfl-schedule-widget #schedule-container {
    padding: 8px;
    max-height: 400px; /* Optional: limit height and make it scrollable */
    overflow-y: auto;
}

/* Individual Game Item */
#nfl-schedule-widget .game-item {
    padding: 10px 8px;
    border-bottom: 1px solid #313244;
}
#nfl-schedule-widget .game-item:last-child {
    border-bottom: none;
}
#nfl-schedule-widget .game-status {
    font-size: 0.8em;
    color: #a6adc8;
    margin-bottom: 8px;
    text-align: center;
}
#nfl-schedule-widget .team-line {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
/* Making logo style more specific to override general img styles */
#nfl-schedule-widget .team-logo {
    width: 20px !important; 
    height: 20px !important;
    margin-right: 8px;
    object-fit: contain; 
}
#nfl-schedule-widget .team-name {
    flex-grow: 1;
    font-size: 14px; /* Adjusted font size */
}
#nfl-schedule-widget .team-score {
    font-weight: bold;
    width: 25px;
    text-align: right;
}
#nfl-schedule-widget .winner .team-name, 
#nfl-schedule-widget .winner .team-score {
    font-weight: bold;
    color: #a6e3a1; /* Green for winner */
}

/* Loading Spinner */
#nfl-schedule-widget .spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}
#nfl-schedule-widget .spinner {
    border: 4px solid rgba(205, 214, 244, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border-left-color: #89b4fa;
    animation: spin 1s ease infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
#nfl-schedule-widget .error-message {
    padding: 20px;
    text-align: center;
    color: #f38ba8; /* Red for error */
    background-color: #313244;
}
