/* PhishPicks Custom Styles */

/* Enhanced Statistics Page Styles */
.stats-badge {
    text-align: center;
    background: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.rank-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f62fe;
    margin-top: 0.25rem;
}

.personal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.personal-stat-card {
    text-align: center;
}

.personal-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.personal-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Song and Venue Stats */
.song-stat-item, .venue-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.song-stat-item:last-child, .venue-stat-item:last-child {
    border-bottom: none;
}

.song-name, .venue-name {
    font-weight: 500;
    color: #161616;
}

.song-stat, .venue-stat {
    font-size: 0.875rem;
    color: #6f6f6f;
    font-weight: 500;
}

/* Pattern Items */
.pattern-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.pattern-label {
    color: #6f6f6f;
    font-size: 0.875rem;
}

.pattern-value {
    font-weight: 500;
    color: #161616;
}

/* Quick Facts */
.fact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.fact-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.fact-text {
    font-size: 0.875rem;
    color: #161616;
    line-height: 1.4;
}

/* Activity Items */
.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-song {
    font-weight: 500;
    color: #161616;
}

.activity-show {
    font-size: 0.75rem;
    color: #6f6f6f;
}

.activity-result {
    font-size: 1.25rem;
    font-weight: 700;
}

.activity-result.correct {
    color: #24a148;
}

.activity-result.incorrect {
    color: #da1e28;
}

/* Achievement Items */
.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.achievement-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.achievement-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.achievement-name {
    font-weight: 500;
    color: #161616;
}

.achievement-desc {
    font-size: 0.75rem;
    color: #6f6f6f;
}

/* Heatmap */
.heatmap-item {
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #f4f4f4;
    transition: all 0.2s ease;
}

.heatmap-item:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.heatmap-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.heatmap-rank {
    background: #393939;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
}

.heatmap-icon {
    font-size: 1.2rem;
}

.heatmap-song {
    flex: 1;
    font-weight: 600;
    color: #161616;
    font-size: 0.95rem;
}

.heatmap-count {
    font-size: 0.875rem;
    color: #6f6f6f;
    font-weight: 500;
}

.heatmap-bar-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.heatmap-bar {
    flex: 1;
    height: 0.75rem;
    background: #e0e0e0;
    border-radius: 0.375rem;
    overflow: hidden;
    position: relative;
}

.heatmap-fill {
    height: 100%;
    border-radius: 0.375rem;
    transition: width 0.3s ease;
}

.heat-hot .heatmap-fill, .heat-hot-fill {
    background: linear-gradient(90deg, #ff4757, #ff3742);
}

.heat-warm .heatmap-fill, .heat-warm-fill {
    background: linear-gradient(90deg, #ffa502, #ff6348);
}

.heat-cool .heatmap-fill, .heat-cool-fill {
    background: linear-gradient(90deg, #3742fa, #2f3542);
}

.heatmap-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #161616;
    min-width: 3rem;
    text-align: right;
}

/* Surprise Items */
.surprise-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.surprise-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.surprise-song {
    font-weight: 500;
    color: #161616;
}

.surprise-show {
    font-size: 0.75rem;
    color: #6f6f6f;
}

.surprise-stat {
    font-size: 0.875rem;
    color: #da1e28;
    font-weight: 500;
}

/* Rarity and Breakout */
.rarity-section, .breakout-section {
    margin-bottom: 1.5rem;
}

.rarity-section:last-child, .breakout-section:last-child {
    margin-bottom: 0;
}

.rarity-item, .breakout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.rarity-item:last-child, .breakout-item:last-child {
    border-bottom: none;
}

.rarity-song, .breakout-song {
    font-weight: 500;
    color: #161616;
}

.rarity-stat, .breakout-stat {
    font-size: 0.875rem;
    color: #6f6f6f;
}

.breakout-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.breakout-stat {
    text-align: center;
    padding: 1rem;
    background: #f4f4f4;
    border-radius: 0.25rem;
}

.breakout-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f62fe;
    margin-bottom: 0.25rem;
}

.breakout-label {
    font-size: 0.75rem;
    color: #6f6f6f;
    text-transform: uppercase;
}

/* Animation for auto-dismissing notifications */
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Force full width for prediction tables */
.predictions-table .bx--structured-list {
    width: 100% !important;
}

.predictions-table .bx--structured-list-row {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
}

.predictions-table .bx--structured-list-th,
.predictions-table .bx--structured-list-td {
    display: table-cell !important;
    vertical-align: middle !important;
}

.predictions-table .bx--structured-list-th:first-child,
.predictions-table .bx--structured-list-td:first-child {
    width: 25% !important;
    padding-left: 1rem !important;
}

.predictions-table .bx--structured-list-th:nth-child(2),
.predictions-table .bx--structured-list-td:nth-child(2) {
    width: 55% !important;
}

.predictions-table .bx--structured-list-th:last-child,
.predictions-table .bx--structured-list-td:last-child {
    width: 20% !important;
    text-align: center !important;
    padding-right: 1rem !important;
}

/* Responsive stats row layout */
.stats-row {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

/* Tablet and up: 2 columns for stats */
@media (min-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Large desktop: allow stats to expand more */
@media (min-width: 1200px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
        max-width: none;
    }
}

.stats-tile {
    margin-bottom: 0;
}

/* Responsive setlist grid layout */
.setlist-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

/* Tablet and up: 2 columns for sets */
@media (min-width: 768px) {
    .setlist-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Desktop and up: 3 columns for sets */
@media (min-width: 1200px) {
    .setlist-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        max-width: none;
    }
}

/* Large desktop: allow up to 4 columns */
@media (min-width: 1600px) {
    .setlist-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.setlist-column {
    min-width: 0; /* Prevent overflow */
}

/* Setlist table layout */
.setlist-table {
    width: 100%;
}

.setlist-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 1rem;
}

.setlist-row:last-child {
    border-bottom: none;
}

.setlist-number {
    flex: 0 0 2rem;
    text-align: center;
}

.setlist-number .bx--type-label-01 {
    color: #0f62fe;
    font-weight: 600;
}

/* Date picker width constraints */
.bx--text-input[type="date"],

/* Only constrain date picker field wrappers, not all text inputs */
.bx--text-input[type="date"] + .bx--text-input__field-wrapper,
.bx--form-item:has(.bx--text-input[type="date"]) .bx--text-input__field-wrapper {
    max-width: 200px;
    width: auto;
}

/* Carbon date picker specific styling */
cds-date-picker {
    display: inline-block;
    max-width: 200px;
}

.setlist-song {
    flex: 1;
    min-width: 0;
}

.setlist-meta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Compact accordion content */
cds-accordion-item::part(content) {
    padding: 1rem 0 0.5rem 0;
}

/* Login Form Styles - Carbon Design System Pattern */
body:has(.login-container) {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: #f4f4f4;
}

body:has(.login-container) .bx--content {
    background: transparent;
    padding: 0;
    margin: 0;
}

body:has(.login-container) .bx--grid {
    background: transparent;
    padding: 0;
    margin: 0;
    max-width: none;
}

.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    padding: 0;
    margin: 0;
}

.login-form-wrapper {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    min-width: 320px;
    margin: 1rem;
}

.login-header {
    margin-bottom: 1.5rem;
    text-align: left;
}

.login-header h1 {
    margin-bottom: 0.5rem;
}

.login-header p {
    margin: 0;
}

/* Ensure login form inputs have proper width */
.login-form .bx--form-item {
    margin-bottom: 1.5rem;
}

.login-form .bx--text-input__field-wrapper {
    width: 100%;
    max-width: none;
}

.login-form .bx--text-input {
    width: 100%;
}

.login-step {
    width: 100%;
}

.login-back {
    margin-bottom: 1.5rem;
}

.login-back .bx--btn {
    padding-left: 0;
}

.login-user-info {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f4f4f4;
    border-radius: 4px;
}

.login-user-info p {
    margin: 0;
}

.login-user-info p:first-child {
    color: #525252;
    margin-bottom: 0.25rem;
}

.login-help {
    text-align: center;
}

.bx--btn--fluid {
    width: 100%;
}

/* Login form specific spacing */
.login-form .bx--form-item {
    margin-bottom: 1rem;
}

.login-form .bx--form-item:last-child {
    margin-bottom: 0;
    margin-top: 1.5rem;
}

/* Registration form specific spacing - remove gaps */
.login-form .bx--row {
    margin-top: -1rem !important;
    margin-bottom: 1.5rem;
}

.login-form .bx--row .bx--form-item {
    margin-bottom: 0;
}

/* Remove extra spacing from email form item when followed by row */
.login-form .bx--form-item + .bx--row {
    margin-top: 0 !important;
}

/* Reduce spacing on email field in registration form */
.login-form .bx--form-item:first-child {
    margin-bottom: 0.5rem;
}

/* Form validation styles */
.bx--text-input--invalid {
    border-bottom: 2px solid #da1e28;
}

.bx--form-requirement {
    color: #da1e28;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    line-height: 1.33;
}

/* Responsive login form */
@media (max-width: 768px) {
    .login-container {
        padding: 0;
        height: 100vh;
    }
    
    .login-form-wrapper {
        padding: 1.5rem;
        box-shadow: none;
        border-radius: 0;
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .login-header {
        margin-bottom: 1rem;
    }
}

@media (max-height: 600px) {
    .login-form-wrapper {
        padding: 1rem;
        margin: 0.25rem;
    }
    
    .login-header {
        margin-bottom: 0.75rem;
    }
    
    .login-form .bx--form-item {
        margin-bottom: 0.75rem;
    }
    
    .login-form .bx--form-item:last-child {
        margin-top: 1rem;
    }
}

/* Force grid layout for shows section */
.shows-container .bx--row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.shows-container .bx--col-lg-8 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-right: 1rem;
}

.shows-container .bx--col-lg-8:last-child {
    padding-right: 0;
    padding-left: 1rem;
}

/* How to Play Tiles - Flexible layout that shows 4 tiles in a row on large screens */
.how-to-play-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.how-to-play-tile {
    position: relative;
    padding: 1.5rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.how-to-play-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.how-to-play-tile h3 {
    margin-bottom: 0.75rem;
    color: #161616;
    font-weight: 600;
    font-size: 1.125rem;
}

.how-to-play-tile p {
    margin: 0;
    color: #393939;
    line-height: 1.5;
    flex-grow: 1;
}

/* Force 4 tiles in a row on large screens */
@media (min-width: 1312px) {
    .how-to-play-tiles {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 2 tiles per row on medium screens */
@media (min-width: 672px) and (max-width: 1311px) {
    .how-to-play-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Single column on small screens */
@media (max-width: 671px) {
    .how-to-play-tiles {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .how-to-play-tile {
        min-height: 160px;
    }
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 672px) {
    .auth-buttons {
        flex-direction: column;
    }
    
    .auth-buttons .bx--btn {
        width: 100%;
    }
}

/* Show Cards */
.show-card {
    margin-bottom: 1rem;
    cursor: pointer;
    /* cursor: pointer; */
    /* transition: all 0.2s ease-in-out; */
}

/* Index page show cards - compact styling */
.shows-container .show-card {
    padding: 1rem;
    min-height: auto;
    max-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shows-container .show-card .show-info {
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

.shows-container .show-card .show-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    line-height: 1.28;
}

.shows-container .show-card .show-info p {
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
    line-height: 1.33;
}

.shows-container .show-card .show-meta {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.shows-container .show-card .show-meta .bx--tag {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
}

.shows-container .show-card .show-actions {
    justify-content: flex-start;
    gap: 0.375rem;
    margin-top: auto;
}

.shows-container .show-card .show-actions .bx--btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* .show-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

/* General show card elements */
.show-info {
    margin-bottom: 1rem;
}

.show-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.show-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

.show-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

/* Carbon Tags */
.bx--tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    padding: 0 0.5rem;
    margin: 0.125rem 0;
    background-color: #e0e0e0;
    border: 1px solid transparent;
    border-radius: 0.9375rem;
    color: #161616;
    cursor: default;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.34;
    white-space: nowrap;
}

.bx--tag--green {
    background-color: #defbe6;
    color: #24a148;
}

.bx--tag--red {
    background-color: #fdf2f2;
    color: #da1e28;
}

.bx--tag--yellow {
    background-color: #fcf4d6;
    color: #f1c21b;
}

.bx--tag--cyan {
    background-color: #e5f6ff;
    color: #0f62fe;
}

.bx--tag--gray {
    background-color: #f4f4f4;
    color: #525252;
}

.bx--tag--high-contrast {
    background-color: #161616;
    color: #ffffff;
}

/* Shows Section Styling */
.shows-section {
    margin-bottom: 3rem;
}

.shows-section h2 {
    margin-bottom: 1.5rem !important;
    margin-top: 2rem !important;
}

.year-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.current-year {
    margin: 0 1rem;
    font-weight: 600;
}

/* Live Setlist Styles */
.setlist-set {
    margin-bottom: 1.5rem;
}

.setlist-songs {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.setlist-song {
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.song-name {
    font-weight: 500;
}

.setlist-song cds-tag {
    margin-left: 0.25rem;
}

.segue-indicator {
    font-weight: bold;
    color: #0f62fe;
    margin-left: 0.25rem;
}

/* Prediction Styles */
.prediction-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.predictions-list {
    max-height: 300px;
    overflow-y: auto;
}

.prediction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin: 0.25rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prediction-user {
    font-weight: 600;
}

.prediction-song {
    flex-grow: 1;
}

.breakout-indicator {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    background: #8a3ffc;
    color: white;
    border-radius: 12px;
    font-weight: 600;
}

/* Correct Predictions */
.correct-predictions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.correct-prediction {
    padding: 0.5rem;
    margin: 0.5rem 0;
    background: rgba(66, 190, 101, 0.1);
    border: 1px solid rgba(66, 190, 101, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.points {
    color: #42be65;
    font-weight: 600;
    margin-left: auto;
}

/* Song Search */
.prediction-slot .bx--form-item {
    position: relative; /* Make form item relative for absolute positioning of search results */
}

.song-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.song-result {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.song-result:hover {
    background: #f4f4f4;
}

.song-result:last-child {
    border-bottom: none;
}

.song-search-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #393939;
    transition: background-color 0.2s ease;
}

.song-search-item:hover {
    background: #262626;
}

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

.song-search-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.song-search-item-details {
    font-size: 0.875rem;
    color: #a8a8a8;
}

.breakout-pick-section {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(138, 63, 252, 0.1);
    border: 1px solid rgba(138, 63, 252, 0.3);
    border-radius: 4px;
}

/* Leaderboard - Carbon Design System Compliant */
.leaderboard-rank {
    font-weight: 600;
    font-size: 1rem;
    min-width: 2rem;
    text-align: center;
}

.rank-1 {
    color: #ffd700;
    font-weight: 700;
}

.rank-2 {
    color: #c0c0c0;
    font-weight: 700;
}

.rank-3 {
    color: #cd7f32;
    font-weight: 700;
}

/* Leaderboard Avatar */
.leaderboard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.leaderboard-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f62fe;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Enhanced Data Table Styles for Leaderboard */
.bx--data-table-container {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 0;
}

.bx--data-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #ffffff;
}

.bx--data-table thead {
    background: #f4f4f4;
    border-bottom: 1px solid #e0e0e0;
}

.bx--data-table-header {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #161616;
    border-bottom: 1px solid #e0e0e0;
    background: #f4f4f4;
    position: relative;
}

.bx--table-header-label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.29;
    letter-spacing: 0.16px;
    color: #161616;
}

.bx--data-table-row {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.11s cubic-bezier(0.2, 0, 1, 0.9);
}

.bx--data-table-row:hover {
    background-color: #f4f4f4;
}

.bx--data-table--zebra .bx--data-table-row:nth-child(even) {
    background-color: #f8f8f8;
}

.bx--data-table--zebra .bx--data-table-row:nth-child(even):hover {
    background-color: #e5e5e5;
}

.bx--data-table-cell {
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.29;
    color: #161616;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

/* Responsive leaderboard table */
@media (max-width: 672px) {
    .bx--data-table-container {
        font-size: 0.75rem;
    }
    
    .bx--data-table-header,
    .bx--data-table-cell {
        padding: 0.75rem 0.5rem;
    }
    
    .leaderboard-avatar,
    .leaderboard-avatar-placeholder {
        width: 24px;
        height: 24px;
        font-size: 0.625rem;
    }
    
    .bx--table-header-label {
        font-size: 0.75rem;
    }
}

/* Carbon-compliant stat cards */
.stat-card-carbon {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #f4f4f4;
    border-radius: 0;
    border-left: 4px solid #0f62fe;
    margin-bottom: 1rem;
    transition: background-color 0.15s ease;
}

.stat-card-carbon:hover {
    background: #e5f6ff;
}

.stat-number-carbon {
    display: block;
    font-size: 2.25rem;
    font-weight: 600;
    color: #0f62fe;
    margin-bottom: 0.5rem;
    line-height: 1;
    font-family: 'IBM Plex Sans', Arial, sans-serif;
}

.stat-label-carbon {
    display: block;
    font-size: 0.875rem;
    color: #525252;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.29;
}

/* Responsive adjustments for Carbon stats */
@media (max-width: 672px) {
    .stat-card-carbon {
        padding: 1rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-number-carbon {
        font-size: 1.75rem;
    }
    
    .stat-label-carbon {
        font-size: 0.75rem;
    }
}

/* Flash Messages */
.flash-messages-container {
    position: fixed;
    top: 4rem;
    right: 1rem;
    z-index: 10000;
    max-width: 400px;
    width: auto;
    pointer-events: none;
}

.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    min-height: auto;
    max-width: 100%;
    word-wrap: break-word;
    border-left: 4px solid;
}

.flash-message--success {
    border-left-color: #24a148;
    background: #f6fff8;
}

.flash-message--error {
    border-left-color: #da1e28;
    background: #fff1f1;
}

.flash-message--info {
    border-left-color: #0f62fe;
    background: #f4f7ff;
}

.flash-message--warning {
    border-left-color: #f1c21b;
    background: #fffcf4;
}

.flash-message__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.125rem;
}

.flash-message--success .flash-message__icon {
    color: #24a148;
}

.flash-message--error .flash-message__icon {
    color: #da1e28;
}

.flash-message--info .flash-message__icon {
    color: #0f62fe;
}

.flash-message--warning .flash-message__icon {
    color: #f1c21b;
}

.flash-message__content {
    flex: 1;
    min-width: 0;
}

.flash-message__text {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #161616;
    word-wrap: break-word;
}

.flash-message__close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #525252;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.flash-message__close:hover {
    color: #161616;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Auto-hide flash messages */
.flash-message {
    animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-out 4.7s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive adjustments for flash messages */
@media (max-width: 768px) {
    .flash-messages-container {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
    
    .flash-message {
        margin-bottom: 0.5rem;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #a8a8a8;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.small {
    height: 0.75rem;
}

.skeleton-text.large {
    height: 1.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.full {
    width: 100%;
}

.skeleton-input {
    height: 2.5rem;
    margin-bottom: 1rem;
}

.skeleton-slot {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fafafa;
    margin-bottom: 2rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Status Indicators */
.status-enabled {
    color: #42be65;
    font-weight: 600;
}

.status-disabled {
    color: #da1e28;
    font-weight: 600;
}

/* Carbon Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Carbon Notification Z-Index Override */
#notification-container,
cds-toast-notification,
.bx--toast-notification {
    z-index: 10001 !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #a8a8a8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .show-actions {
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
    }
    
    .show-filters {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .prediction-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .correct-prediction {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .points {
        margin-left: 0;
    }
}

/* Show Detail Page Styles */
.show-header {
    border-bottom: 1px solid var(--cds-border-subtle);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.tile-header {
    border-bottom: 1px solid var(--cds-border-subtle);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.tile-header h2 {
    margin: 0;
}

.prediction-summary {
    padding: 1rem;
    background: var(--cds-layer-01);
    border-radius: 4px;
    border-left: 4px solid var(--cds-brand-01);
}

.action-buttons cds-button {
    justify-content: flex-start;
}

.empty-state {
    background: var(--cds-layer-01);
    border-radius: 4px;
    border: 1px dashed var(--cds-border-subtle);
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
}

.empty-state p {
    margin: 0;
}

.setlist-set {
    background: var(--cds-layer-01);
    border-radius: 4px;
    padding: 1rem;
    border-left: 4px solid var(--cds-brand-01);
}

.setlist-set h3 {
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--cds-border-subtle);
}

.setlist-set .song-item:last-child {
    border-bottom: none !important;
}

.correct-prediction-item {
    transition: background-color 0.15s ease;
}

.correct-prediction-item:hover {
    background: var(--cds-layer-02) !important;
}

/* Structured List Enhancements */
cds-structured-list {
    margin: 0;
}

cds-structured-list-row {
    transition: background-color 0.15s ease;
}

cds-structured-list-row:hover {
    background: var(--cds-layer-hover);
}

/* Responsive adjustments for show detail */
@media (max-width: 1056px) {
    .show-header {
        text-align: center;
    }
    
    .action-buttons {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 672px) {
    .show-header h1 {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    .prediction-summary {
        padding: 0.75rem;
    }
    
    .correct-prediction-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .setlist-set {
        padding: 0.75rem;
    }
}

/* Auto-refresh indicator */
.refresh-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #0f62fe;
    font-size: 0.75rem;
}

.refresh-indicator::before {
    content: "●";
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Show status indicators */
.show-status {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}

/* Prediction stats */
.prediction-count {
    color: #a8a8a8;
    font-style: italic;
}

/* Live data indicators */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #42be65;
    font-size: 0.75rem;
    font-weight: 600;
}

.live-indicator::before {
    content: "●";
    color: #fa4d56;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* User Menu Dropdown Styles */
.user-menu-wrapper {
    position: relative;
}

.user-menu-toggle {
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease-in-out;
}

.user-menu-wrapper.active .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Carbon v11 User Menu Panel Styles */
.user-menu-panel {
    position: relative;
}

.user-menu-panel[expanded="false"] .user-menu-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
}

.user-menu-panel[expanded="true"] .user-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.user-menu-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    z-index: 9999;
    transition: all 0.2s ease-in-out;
}

.user-menu-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.user-menu-header-with-avatar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f62fe;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #161616;
}

.user-email {
    font-size: 0.75rem;
    color: #525252;
}

.user-menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.5rem 0;
}

.user-menu-items {
    padding: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #161616;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.15s ease-in-out;
}

.user-menu-item:hover {
    background-color: #f4f4f4;
    color: #161616;
    text-decoration: none;
}

.user-menu-item--danger {
    color: #da1e28;
}

.user-menu-item--danger:hover {
    background-color: #fdf2f2;
    color: #da1e28;
}

.user-menu-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Dark mode styles for user menu */
@media (prefers-color-scheme: dark) {
    .user-menu-dropdown,
    .user-menu-content {
        background: #262626;
        border-color: #525252;
    }
    
    .user-menu-header {
        border-bottom-color: #525252;
    }
    
    .user-name {
        color: #f4f4f4;
    }
    
    .user-email {
        color: #a8a8a8;
    }
    
    .user-menu-divider {
        background: #525252;
    }
    
    .user-menu-item {
        color: #f4f4f4;
    }
    
    .user-menu-item:hover {
        background-color: #393939;
        color: #f4f4f4;
    }
    
    .user-menu-item--danger:hover {
        background-color: #2d1617;
    }
}

/* Carbon v11 Compatibility Styles */
cds-header {
    --cds-header-height: 48px;
}

/* Ensure proper spacing for content below header */
.cds--content {
    margin-top: var(--cds-header-height, 48px);
    padding-top: 0;
}


/* Profile Page Styles */
.profile-header-section {
    margin-bottom: 2rem;
    padding: 2rem 0 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.profile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.profile-title-area {
    flex: 1;
}

.profile-title-area h1 {
    margin-bottom: 0.5rem;
}

.profile-title-area p {
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-actions {
    flex-shrink: 0;
}

.profile-tile {
    margin-bottom: 2rem;
}

/* Avatar Section - Compact Version for Profile */
.avatar-section-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
    transition: border-color 0.2s ease;
}

.user-avatar-large:hover {
    border-color: #0f62fe;
}

.avatar-placeholder-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #0f62fe;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 2rem;
    border: 3px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.avatar-placeholder-large:hover {
    background: #0353e9;
}

.avatar-info-compact {
    width: 100%;
}

.avatar-info-compact p {
    margin: 0 0 1rem 0;
    color: #525252;
}

.avatar-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f4f4f4;
    border-radius: 4px;
    border-left: 4px solid #0f62fe;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 100px;
}

.stat-card:hover {
    background: #e5f6ff;
    transform: translateY(-2px);
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #161616;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #525252;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

/* Community Stats Row - Force horizontal layout */
.community-stats-row {
    display: flex !important;
    flex-wrap: nowrap !important;
}

.community-stats-row cds-column {
    flex: 1 !important;
    min-width: 0 !important;
}

.stat-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

.points-icon {
    filter: sepia(1) saturate(5) hue-rotate(45deg);
}

/* Predictions Header */
.predictions-header {
    margin-bottom: 1.5rem;
}

.predictions-header h3 {
    margin-bottom: 0.5rem;
}

.predictions-header p {
    margin: 0;
}

/* Enhanced Data Table Styles */
.bx--data-table {
    margin-top: 1rem;
}

.bx--data-table-row:hover {
    background-color: #f4f4f4;
}

.points-value {
    font-weight: 600;
    color: #0f62fe;
}

/* Responsive Profile Layout */
@media (max-width: 1056px) {
    .profile-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .profile-actions {
        display: flex;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .profile-header-section {
        padding: 1rem 0;
    }
    
    .avatar-section-compact {
        gap: 0.75rem;
    }
    
    .user-avatar-large,
    .avatar-placeholder-large {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .avatar-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}

/* Avatar Styles */
.avatar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f4f4f4;
    border-radius: 4px;
}

.avatar-preview {
    position: relative;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
    transition: border-color 0.2s ease;
}

.user-avatar:hover {
    border-color: #0f62fe;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #0f62fe;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.5rem;
    border: 3px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.avatar-placeholder:hover {
    background: #0353e9;
}

.avatar-info {
    flex: 1;
}

.avatar-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.avatar-info p {
    margin: 0;
    color: #525252;
    font-size: 0.875rem;
}

/* User Menu Avatar */
.user-menu-header-with-avatar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.user-menu-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f62fe;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Leaderboard Avatar */
.leaderboard-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    margin-right: 0.5rem;
}

.leaderboard-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0f62fe;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.625rem;
    margin-right: 0.5rem;
}

/* Prediction List Avatar */
.prediction-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    margin-right: 0.5rem;
}

.prediction-avatar-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0f62fe;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.5rem;
    margin-right: 0.5rem;
}

/* Avatar Upload Modal */
.avatar-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

.avatar-upload-modal.active {
    opacity: 1;
    visibility: visible;
}

.avatar-upload-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.avatar-upload-modal .modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.avatar-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    background: #f4f4f4;
    transition: all 0.2s ease;
    cursor: pointer;
}

.avatar-upload-area:hover,
.avatar-upload-area.dragover {
    border-color: #0f62fe;
    background: #f4f7ff;
}

.avatar-upload-area.dragover {
    border-style: solid;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: #525252;
}

.avatar-upload-area p {
    margin: 0;
    color: #525252;
}

.avatar-upload-area p:first-of-type {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.avatar-preview-container {
    margin-top: 1.5rem;
    text-align: center;
}

.avatar-preview-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
    margin: 0 auto 1rem;
}

.upload-requirements {
    margin-top: 1rem;
    padding: 1rem;
    background: #f4f7ff;
    border-radius: 4px;
    border-left: 4px solid #0f62fe;
}

.upload-requirements h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f62fe;
}

.upload-requirements ul {
    margin: 0;
    padding-left: 1.25rem;
}

.upload-requirements li {
    font-size: 0.75rem;
    color: #525252;
    margin-bottom: 0.25rem;
}

.upload-error {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff1f1;
    border-radius: 4px;
    border-left: 4px solid #da1e28;
    color: #da1e28;
    font-size: 0.875rem;
}

/* Responsive Avatar Styles */
@media (max-width: 768px) {
    .avatar-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .user-avatar,
    .avatar-placeholder {
        width: 64px;
        height: 64px;
        font-size: 1.25rem;
    }
    
    .avatar-info {
        text-align: center;
    }
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.stat-label {
    font-size: 0.875rem;
    color: #525252;
}

.stat-value {
    font-weight: 600;
    color: #161616;
}

.points-highlight {
    color: #0f62fe;
    font-size: 1.125rem;
}

.points-value {
    font-weight: 600;
    color: #0f62fe;
}

.predictions-table {
    margin-top: 1rem;
}

/* Profile Edit Modal */
.profile-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #525252;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #161616;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* Shows Grid - Dynamic Card Layout */
.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.show-card-container {
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.show-card-container:hover {
    transform: translateY(-2px);
}

.show-card {
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    transition: box-shadow 0.2s ease;
}

.show-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.show-info {
    flex-grow: 1;
}

.show-info h3 {
    margin-bottom: 0.5rem;
    color: var(--cds-text-primary);
}

.show-info p {
    margin-bottom: 0.25rem;
    color: var(--cds-text-secondary);
}

.show-meta {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.show-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cds-border-subtle);
}

.show-actions .bx--btn {
    flex: 1;
    min-width: fit-content;
}

/* Filter buttons */
.show-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.show-filters .bx--btn {
    white-space: nowrap;
}

/* Search container */
.search-container {
    margin-bottom: 1rem;
}

.search-container .bx--label {
    margin-bottom: 0.5rem;
    display: block;
}

.search-container .bx--text-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border: 1px solid #8d8d8d;
    border-radius: 0;
    background-color: #ffffff;
    color: #161616;
    font-family: 'IBM Plex Sans', Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.28;
    transition: outline 70ms cubic-bezier(0.2, 0, 0.38, 0.9);
}

.search-container .bx--text-input:focus {
    outline: 2px solid #0f62fe;
    outline-offset: -2px;
    border-color: #0f62fe;
}

.search-container .bx--text-input::placeholder {
    color: #a8a8a8;
    opacity: 1;
}

/* Year selection */
.year-selection {
    text-align: center;
    padding: 2rem 0;
}

.year-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.year-btn {
    min-width: 60px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--cds-text-secondary);
}

/* Responsive adjustments */
@media (max-width: 672px) {
    .shows-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .show-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .show-filters .bx--btn {
        width: 100%;
    }
    
    .year-buttons {
        justify-content: center;
        gap: 0.25rem;
    }
    
    .year-btn {
        min-width: 50px;
        padding: 0.5rem 0.25rem;
    }
    
    .show-actions {
        flex-direction: column;
    }
    
    .show-actions .bx--btn {
        flex: none;
        width: 100%;
    }
}

@media (min-width: 673px) and (max-width: 1056px) {
    .shows-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .show-filters {
        justify-content: flex-start;
    }
}

@media (min-width: 1057px) {
    .shows-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .show-filters {
        justify-content: flex-start;
    }
}

/* Featured Show Section */
.featured-show-container {
    margin-bottom: 2rem;
}

.featured-show {
    background: linear-gradient(135deg, #0f62fe 0%, #001d6c 100%);
    color: white;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.featured-show:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 98, 254, 0.3);
}

.featured-show-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.featured-show-header h2 {
    color: white;
    margin: 0;
}

.live-indicator {
    background: #fa4d56;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

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

.featured-show-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.show-details h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.show-details p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.prediction-cta {
    text-align: right;
    flex-shrink: 0;
}

.prediction-cta .bx--btn {
    margin-bottom: 0.5rem;
    background: white;
    color: #0f62fe;
    border: 2px solid white;
}

.prediction-cta .bx--btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0f62fe;
}

.prediction-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .featured-show-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .prediction-cta {
        text-align: left;
        width: 100%;
    }
    
    .featured-show {
        padding: 1.5rem;
    }
}

/* Demo Mode Banner */
.demo-mode-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    padding: 0.75rem 0;
    position: sticky;
    top: 48px; /* Height of the Carbon header */
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.demo-banner-icon {
    fill: currentColor;
    flex-shrink: 0;
}

.demo-banner-text {
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
}

.demo-banner-link {
    color: #ffffff;
    text-decoration: underline;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 1rem;
    white-space: nowrap;
}

.demo-banner-link:hover {
    color: #f0f0f0;
    text-decoration: none;
}

/* Adjust main content when demo banner is present */
body:has(.demo-mode-banner) .bx--content {
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .demo-banner-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .demo-banner-link {
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* Prediction Modal Styles */
.song-result:hover {
    background-color: #e5e5e5;
}

.status-enabled {
    color: #198038;
    font-weight: 600;
}

.status-disabled {
    color: #da1e28;
    font-weight: 600;
}

/* Live Dashboard Setlist Styles */
.setlist-container {
    max-height: 400px;
    overflow-y: auto;
}

.setlist-container .setlist-set {
    background: #f8f8f8;
    border-radius: 4px;
    padding: 1rem;
    border-left: 4px solid #0f62fe;
    margin-bottom: 1.5rem;
}

.setlist-container .setlist-set:last-child {
    margin-bottom: 0;
}

.setlist-container .setlist-set h4 {
    margin-bottom: 1rem;
    color: #161616;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.setlist-container .bx--structured-list-row {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.15s ease;
}

.setlist-container .bx--structured-list-row:last-child {
    border-bottom: none;
}

.setlist-container .bx--structured-list-row:hover {
    background-color: #e5f6ff;
}

.setlist-container .bx--structured-list-td {
    padding: 0.75rem 0;
}

/* ============================================================================
   RESPONSIVE DESIGN SYSTEM
   Mobile-first approach with progressive enhancement
   ============================================================================ */

/* Base Mobile Styles (320px+) */
@media (max-width: 672px) {
    /* Header and Navigation */
    .bx--header__name {
        font-size: 1rem;
        /* Removed max-width, overflow, and text-overflow to show full brand name */
        white-space: nowrap;
    }
    
    .bx--header__name--prefix {
        /* Always show "Phish" prefix - removed display: none */
        display: inline;
    }
    
    /* Ensure adequate spacing between hamburger menu and brand name */
    .bx--header__menu-trigger {
        margin-right: 0.5rem;
    }
    
    /* Main content padding adjustment */
    .bx--content {
        padding-left: 0;
        padding-right: 0;
    }
    
    .bx--grid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography scaling */
    .cds--type-productive-heading-05,
    .bx--type-productive-heading-05 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .cds--type-productive-heading-04,
    .bx--type-productive-heading-04 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .cds--type-productive-heading-03,
    .bx--type-productive-heading-03 {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    /* Button improvements */
    .bx--btn,
    cds-button {
        min-height: 44px; /* Touch-friendly size */
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .bx--btn--sm,
    cds-button[size="sm"] {
        min-height: 36px;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Form improvements */
    .bx--form-item {
        margin-bottom: 1.5rem;
    }
    
    .bx--text-input,
    .bx--select-input,
    .bx--text-area {
        min-height: 44px;
        font-size: 1rem;
    }
    
    .bx--label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    /* Table responsiveness */
    .bx--data-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem; /* Extend to edges on mobile */
        padding: 0 1rem;
    }
    
    .bx--data-table {
        min-width: 600px; /* Ensure table doesn't get too cramped */
    }
    
    .bx--data-table td,
    .bx--data-table th {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Leaderboard specific mobile improvements */
    .leaderboard-avatar,
    .leaderboard-avatar-placeholder {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    /* Stack table content on very small screens for critical tables */
    .bx--data-table-container.mobile-stack {
        overflow: visible;
    }
    
    .mobile-stack .bx--data-table,
    .mobile-stack .bx--data-table thead,
    .mobile-stack .bx--data-table tbody,
    .mobile-stack .bx--data-table th,
    .mobile-stack .bx--data-table td,
    .mobile-stack .bx--data-table tr {
        display: block;
    }
    
    .mobile-stack .bx--data-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .mobile-stack .bx--data-table tr {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .mobile-stack .bx--data-table td {
        border: none !important;
        padding: 0.5rem 0;
        position: relative;
        padding-left: 35% !important;
    }
    
    .mobile-stack .bx--data-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 30%;
        padding-right: 0.5rem;
        white-space: nowrap;
        font-weight: 600;
        color: #161616;
    }
    
    /* Carbon 11 mobile-stack styles for cds-table */
    cds-table.mobile-stack,
    .mobile-stack cds-table-head,
    .mobile-stack cds-table-body,
    .mobile-stack cds-table-header-cell,
    .mobile-stack cds-table-cell,
    .mobile-stack cds-table-row,
    .mobile-stack cds-table-header-row {
        display: block;
    }
    
    .mobile-stack cds-table-head cds-table-header-row {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .mobile-stack cds-table-row {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .mobile-stack cds-table-cell {
        border: none !important;
        padding: 0.5rem 0;
        position: relative;
        padding-left: 35% !important;
    }
    
    .mobile-stack cds-table-cell:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 30%;
        padding-right: 0.5rem;
        white-space: nowrap;
        font-weight: 600;
        color: #161616;
    }
    
    /* Card/Tile improvements */
    cds-tile,
    .bx--tile {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    /* Modal improvements */
    .bx--modal-container {
        width: calc(100vw - 2rem);
        max-width: none;
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .bx--modal-header {
        padding: 1rem;
    }
    
    .bx--modal-content {
        padding: 0 1rem 1rem;
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
    }
    
    /* Notification improvements */
    cds-actionable-notification,
    .bx--actionable-notification {
        margin: 0 -1rem 1rem;
    }
    
    /* Grid adjustments */
    .bx--col-lg-16,
    .bx--col-lg-12,
    .bx--col-lg-8,
    .bx--col-lg-6,
    .bx--col-lg-4 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Admin page specific improvements */
    .admin-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .action-buttons cds-button,
    .action-buttons .bx--btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Statistics page improvements */
    .personal-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .personal-stat-number {
        font-size: 1.5rem;
    }
    
    /* User menu improvements */
    .user-menu-dropdown {
        right: 0;
        left: auto;
        width: 280px;
        max-width: calc(100vw - 2rem);
    }
}

/* Small Tablet (672px - 1056px) */
@media (min-width: 672px) and (max-width: 1056px) {
    .bx--header__name--prefix {
        display: inline; /* Show prefix again */
    }
    
    /* Two-column layout for some components */
    .bx--col-lg-8 {
        width: 50%;
    }
    
    .bx--col-lg-6 {
        width: 50%;
    }
    
    .bx--col-lg-4 {
        width: 33.333%;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .action-buttons cds-button,
    .action-buttons .bx--btn {
        flex: 1;
        min-width: 140px;
    }
    
    /* Statistics improvements */
    .personal-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Tablet/Small Desktop (1056px - 1312px) */
@media (min-width: 1056px) and (max-width: 1312px) {
    /* Standard desktop layout starts to apply */
    .bx--col-lg-16 {
        width: 100%;
    }
    
    .bx--col-lg-12 {
        width: 75%;
    }
    
    .bx--col-lg-8 {
        width: 50%;
    }
    
    .bx--col-lg-6 {
        width: 37.5%;
    }
    
    .bx--col-lg-4 {
        width: 25%;
    }
    
    .personal-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (1312px+) */
@media (min-width: 1312px) {
    /* Full desktop experience */
    .bx--content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .admin-header {
        text-align: left;
    }
    
    .personal-stats-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Navigation Responsive Behavior */
@media (max-width: 1056px) {
    /* Hide main navigation on smaller screens */
    .bx--header__nav {
        display: none !important;
    }
    
    /* Show hamburger menu */
    .bx--header__menu-trigger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border: none;
        background: transparent;
        cursor: pointer;
        color: #f4f4f4;
        margin-right: 1rem;
    }
    
    .bx--header__menu-trigger__icon {
        fill: currentColor;
    }
    
    .bx--header__menu-trigger:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .bx--header__menu-trigger:focus {
        outline: 2px solid #0f62fe;
        outline-offset: 2px;
    }
}


/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .bx--btn,
    cds-button,
    .bx--header__menu-item,
    .bx--side-nav__link,
    .user-menu-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Improve hover states for touch */
    .bx--btn:hover,
    cds-button:hover,
    .bx--data-table tr:hover {
        background-color: var(--cds-layer-02);
    }
    
    /* Remove hover animations that don't work on touch */
    * {
        transition-duration: 0.1s;
    }
}

/* Side Navigation Enhancements */
.bx--side-nav {
    position: fixed;
    top: 48px; /* Height of header */
    left: 0;
    width: 256px;
    height: calc(100vh - 48px);
    background-color: #161616 !important; /* Carbon gray 100 - darker */
    z-index: 9000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.38, 0.9);
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.bx--side-nav:not(.bx--side-nav--collapsed) {
    transform: translateX(0);
}

.bx--side-nav__overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(22, 22, 22, 0.6) !important; /* Darker overlay */
    z-index: 8999 !important;
    display: none !important;
    opacity: 0 !important;
    cursor: pointer !important;
    transition: opacity 0.3s ease-in-out !important;
    touch-action: manipulation !important; /* Prevent double-tap zoom */
    -webkit-tap-highlight-color: transparent !important; /* Remove tap highlight */
}

/* Mobile hamburger menu icon styling */
.bx--header__menu-trigger {
    position: relative;
    z-index: 9001;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    touch-action: manipulation; /* Prevent double-tap zoom */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.bx--header__menu-trigger:focus {
    outline: 2px solid #0f62fe !important;
    outline-offset: 2px !important;
}

.bx--header__menu-trigger__icon {
    transition: opacity 0.15s ease-in-out;
}

/* Ensure touch targets are large enough */
@media (max-width: 1056px) {
    .bx--header__menu-trigger {
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px !important;
    }
}
.bx--header__menu-trigger {
    background-color: transparent !important;
    border: none !important;
    color: #f4f4f4 !important;
}

.bx--header__menu-trigger:hover {
    background-color: #525252 !important;
}

.bx--header__menu-trigger svg {
    fill: #f4f4f4 !important;
}

/* Admin gear icon styling */

.bx--header__global {
    display: flex;
    align-items: center;
}

.bx--header__action {
    background-color: transparent;
    border: none;
    color: #f4f4f4;
    transition: background-color 0.11s cubic-bezier(0.2, 0, 0.38, 0.9);
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 8px;
    box-sizing: border-box;
}

.bx--header__action:hover {
    background-color: #525252;
}


.bx--header__action-icon {
    fill: #f4f4f4;
    transition: fill 0.11s cubic-bezier(0.2, 0, 0.38, 0.9);
    display: block;
    margin: 0 auto;
    vertical-align: middle;
}

.bx--header__action:hover .bx--header__action-icon {
    fill: #ffffff;
}

.bx--side-nav__header {
    padding: 1rem;
    border-bottom: 1px solid #393939;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #161616 !important; /* Match the side nav background */
}

.bx--side-nav__header-navigation {
    text-decoration: none;
    color: #f4f4f4;
}

.bx--side-nav__header-name {
    color: #f4f4f4;
    font-size: 1.125rem;
    font-weight: 600;
}

.bx--side-nav__toggle {
    background: transparent;
    border: none;
    color: #f4f4f4;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bx--side-nav__items {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #161616 !important; /* Match the side nav background */
}

.bx--side-nav__item {
    background-color: transparent; /* Clean item background */
}

.bx--side-nav__item:last-child {
    border-bottom: none;
}

.bx--side-nav__item--divider {
    height: 1px;
    background-color: #393939;
    margin: 0.75rem 1.5rem; /* Increased margin for better spacing */
    border: none;
}

.bx--side-nav__link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: #f4f4f4 !important; /* Much brighter white text */
    text-decoration: none !important;
    transition: background-color 0.11s cubic-bezier(0.2, 0, 0.38, 0.9), color 0.11s cubic-bezier(0.2, 0, 0.38, 0.9);
    min-height: 48px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    border: none;
    touch-action: manipulation; /* Prevent double-tap zoom */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
    background: none;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 400;
}

.bx--side-nav__link:hover,
.bx--side-nav__link:focus {
    background-color: #262626 !important; /* Lighter gray on hover */
    color: #ffffff !important; /* Pure white on hover */
    text-decoration: none !important;
    outline: none;
}

.bx--side-nav__link:focus {
    outline: 2px solid #0f62fe; /* Carbon blue focus */
    outline-offset: -2px;
}

.bx--side-nav__link:visited {
    color: #f4f4f4 !important; /* Keep bright for visited links */
}

.bx--side-nav__link-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: #ffffff !important; /* Pure white text */
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    .bx--header__name,
    .cds--type-productive-heading-05,
    .bx--type-productive-heading-05 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Future: Add dark mode styles if needed */
    /* For now, Carbon handles this automatically */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    .bx--header,
    .bx--side-nav,
    .user-menu-wrapper,
    .demo-mode-banner,
    .flash-messages-container {
        display: none !important;
    }
    
    .bx--content {
        padding: 0;
        margin: 0;
    }
    
    .bx--grid {
        padding: 0;
    }
    
    cds-tile,
    .bx--tile {
        border: 1px solid #000;
        break-inside: avoid;
    }
}

/* ==================== 
   WEIGHTED SCORING STYLES
   ==================== */

/* Scoring mode indicators */
.status-weighted {
    color: #8a3ffc;
    font-weight: 600;
}

.status-standard {
    color: #0f62fe;
    font-weight: 600;
}

/* Weighted prediction container */
.weighted-predictions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Individual pick slots for weighted mode */
.pick-slot {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    background: #f4f4f4;
    transition: all 0.2s ease;
}

.pick-slot.filled {
    border-color: #0f62fe;
    background: #f0f7ff;
}

.pick-slot.priority-1 { border-left: 4px solid #da1e28; }
.pick-slot.priority-2 { border-left: 4px solid #fa4d56; }
.pick-slot.priority-3 { border-left: 4px solid #ff832b; }
.pick-slot.priority-4 { border-left: 4px solid #f1c21b; }
.pick-slot.priority-5 { border-left: 4px solid #42be65; }

/* Priority indicator */
.priority-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.priority-label {
    font-weight: 600;
    color: #161616;
}

.priority-points {
    background: #0f62fe;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-1 .priority-points { background: #da1e28; }
.priority-2 .priority-points { background: #fa4d56; }
.priority-3 .priority-points { background: #ff832b; }
.priority-4 .priority-points { background: #f1c21b; color: #161616; }
.priority-5 .priority-points { background: #42be65; }

/* Weighted mode explanation */
.weighted-mode-info {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f5ff 100%);
    border: 1px solid #0f62fe;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.weighted-mode-info h4 {
    color: #0f62fe;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.weighted-mode-info p {
    color: #161616;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Priority strategy tips */
.priority-tips {
    background: #f4f4f4;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.priority-tips h5 {
    color: #161616;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.priority-tips ul {
    margin: 0;
    padding-left: 1rem;
    color: #525252;
    font-size: 0.75rem;
    line-height: 1.4;
}

.priority-tips li {
    margin-bottom: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pick-slot {
        padding: 0.75rem;
    }
    
    .priority-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
