/* DynastyDb App CSS - Updated with Apple-inspired design system - VERSION 2.0 */
:root {
    --color-bright-blue: #09c3f5;    /* Bright Blue for primary actions */
    --color-light-blue: #3bcff6;     /* Lighter Blue for secondary actions */
    --color-success-green: #3cc971;  /* Fresh Green for success indicators */
    --color-info-blue: #9de7fb;      /* Light Blue for informational messages */
    --color-warning-orange: #f2994a; /* Bright Orange for warnings */
    --color-danger-red: #eb5757;     /* Vibrant Red for danger alerts */
    --color-near-white: #e6f9fe;     /* Nearly White Blue for light elements */
    --color-dark-blue: #067593;      /* Deep Blue for dark elements */
    --color-darkest-blue: #022731;    /* Darkest Blue for darkest elements */
    --bs-heading-color: var(--bs-secondary);
    --bs-body-bg: #fcfcfc;
    --bs-background: #fcfcfc;
    --bs-card-bg: transparent;
    --bs-secondary: var(--color-warning-orange);
    --bs-success: var(--color-success-green);
    --bs-navbar-nav-link-padding-x: 2rem;
    --bs-primary: var(--color-bright-blue);

    --bs-font-sans-serif: 'Roboto', sans-serif;
    --bs-font-serif: 'Roboto Slab', serif;
}

:root {
    /* Modern Blue, Gray, Orange Color System */
    
    /* Blue Palette */
    --blue-50: #EBF5FF;
    --blue-100: #DBEAFE; 
    --blue-200: #BFDBFE;
    --blue-300: #93C5FD;
    --blue-400: #60A5FA;
    --blue-500: #3B82F6;  /* Primary blue */
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --blue-800: #1E40AF;
    --blue-900: #1E3A8A;
    --blue-highlight: #589FEC;  /* Lighter blue highlight */
    
    /* Gray Palette */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Orange Palette */
    --orange-50: #FFF7ED;
    --orange-100: #FFEDD5;
    --orange-200: #FED7AA;
    --orange-300: #FDBA74;
    --orange-400: #FB923C;
    --orange-500: #F97316;  /* Primary orange */
    --orange-600: #EA580C;
    --orange-700: #C2410C;
    --orange-800: #9A3412;
    --orange-900: #7C2D12;
    
    /* Semantic colors using the palette */
    --bs-primary: var(--blue-600);
    --bs-secondary: var(--gray-600);
    --bs-success: #10B981;
    --bs-danger: #EF4444;
    --bs-warning: var(--orange-500);
    --bs-info: var(--blue-400);
    --bs-light: var(--gray-100);
    --bs-dark: var(--gray-800);
    --bs-muted: var(--gray-500);
    --bs-body-bg: var(--gray-50);
    --bs-body-color: var(--gray-900);
    
    /* Modern surface colors using our palette */
    --surface: #FFFFFF;
    --surface-hover: var(--gray-50);
    --surface-secondary: var(--gray-100);
    
    /* Text hierarchy using our palette */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-500);
    
    /* Modern borders using our palette - Apple-light */
    --border-light: rgba(0, 0, 0, 0.04);
    --border-medium: rgba(0, 0, 0, 0.08);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.06);
    
    /* Modern radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    /* Spacing system */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}




html, body {
    font-family: var(--bs-font-sans-serif);
}

a, .btn-link {
    color: var(--color-dark-blue);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
    &:hover {
        color: var(--color-bright-blue);
    }

}


/*a, .btn-link {*/
/*    color: #006bb7;*/
/*    color: inherit !important; */
/*    text-decoration: none;*/
/*    border-bottom: 2px solid var(--color-dark-blue);*/
/*    transition: color 0.15s ease-in-out;*/
/*    &:hover {*/
/*        color: var(--color-darkest-blue);*/
/*    }*/
/*    */
/*}*/

.btn-primary  {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    

    padding-top: 1.1rem;

}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-font-serif);
}

h1, .fs-1 { font-size: 1.50rem; }
h2, .fs-2 { font-size: 1.25rem; }
h3, .fs-3 { font-size: 1.25rem; }
h4, .fs-4 { font-size: 1.15rem !important; }
h5, .fs-5 { font-size: 1.10rem; }
h6, .fs-6 { font-size: 1.00rem !important; }

h1:focus {
    outline: none;
}
 
.list-group-flush>.list-group-item, .list-group-item.flush { 
    padding-left: 0;
    padding-right: 0;
}
.rz-g > div, .rz-datalist-data > li, div.list-group-item
{
    background-color: rgb(252, 252, 252);
    border: none;
    box-shadow: none;
    padding: 0 0 8px 0;
    margin: 8px 0;
    border-bottom: 1px solid rgb(222,226,230);
    width: 100%;
    &:last-child {
        border-bottom: none;
    }
}

hr {
    border: none;
    border-top: var(--bs-list-group-border-width) solid var(--bs-list-group-border-color);
    border-top: 1px solid #c7cbcf;
    margin: 2rem 0;
    height: 0;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }
    
.icon, i { 
    font-size: 1em !important;
    height: 1em;
    width: 1em;
    max-width: 1em;
    max-height: 1em;
    min-width: 1em;
    min-height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.img-container {
    width: 100%; /* Full width of the parent */
    position: relative; /* Relative positioning for absolute child */
    overflow: hidden;
}

    .img-container .img-cover, .img-container .img-contain {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-position: top center;
        border-radius: 10px;
    }
.img-cover {
    object-fit: cover; /* Ensures the image covers the container */
}

    .img-contain {
    object-fit: contain;
}
.img-round-badge {
    width: 60px; height: 60px; border-radius: 15px; border:  1px solid var(--color-dark-blue);
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    & img { 
        border-radius: 50%;
    }
}
.img-round-badge-inline {
    width: 3rem; height: 3rem; border-radius: 15px; border:  1px solid var(--color-dark-blue);
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    & img {
        border-radius: 50%;
    }
}



.rz-paginator-element { 
    background-color: #f4f8fd;
    border-radius: 50%;
    
    &.rz-state-active  {
        background-color: var(--color-near-white);
        color: var(--color-darkest-blue);
    }
}

/* Auction Comments Styling */
.comments-container {
    max-height: 600px;
    overflow-y: auto;
}

.comment-item {
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(var(--bs-secondary-rgb), 0.05);
    border-left: 3px solid var(--color-bright-blue);
}

.comment-item:hover {
    background-color: rgba(var(--bs-secondary-rgb), 0.1);
}

.comment-header strong {
    color: var(--color-bright-blue);
}

.comment-text {
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-item .dropdown-toggle {
    border: none;
    background: transparent;
    color: var(--bs-secondary);
}

.comment-item .dropdown-toggle:hover {
    background-color: rgba(var(--bs-secondary-rgb), 0.1);
}

.comments-container::-webkit-scrollbar {
    width: 6px;
}

.comments-container::-webkit-scrollbar-track {
    background: rgba(var(--bs-secondary-rgb), 0.1);
    border-radius: 3px;
}

.comments-container::-webkit-scrollbar-thumb {
    background: var(--color-bright-blue);
    border-radius: 3px;
}

.comments-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark-blue);
}

/* Blazor Page Transitions */
.page-container {
    animation: pageEnter 0.3s ease-out;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 2rem;
}

.page-loading-spinner {
    margin-bottom: 1rem;
}

/* Layout Constraints */
.page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    flex-shrink: 0;
    overflow-y: auto;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    overflow-x: hidden;
}

/* Ensure proper spacing from rounded content corner */
article.content {
    border-top-left-radius: 24px !important;
    background-color: #fff !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    min-height: calc(100vh - 60px);
    padding: 1.5rem 2rem;
}

/* Pages that already have container-fluid don't need extra padding */
article.content:has(.container-fluid),
article.content:has(.home-dashboard) {
    padding: 0;
}

/* Special layout for forum pages that need full viewport */
.forums-layout .page {
    max-height: 100vh;
    overflow: hidden;
}

.forums-layout main {
    overflow: hidden;
}

.forums-layout .content {
    overflow-y: auto;
}

/* Unified Header System - Wrap-around Design */
.top-header-bar {
    height: 60px;
    background: #222C3F;
    /*background: linear-gradient(to right, #222C3F 280px, rgba(34, 44, 63, 0.95) 100%);*/
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    z-index: 1000;
    color: #fff;
    padding: 0 24px;
    align-items: center;
}

/* Adjust body for top bar on mobile */
@media (max-width: 767px) {
    body {
        padding-top: 8px;
    }
    
    .page {
        margin-top: 8px;
    }
}

/* Safari-specific enhancements */
@supports (-webkit-touch-callout: none) {
    .top-header-bar {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Enhanced theme color integration */
@media (prefers-color-scheme: dark) {
    .top-header-bar {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
}

/* Safari Safe Area Support */
:root {
    --app-theme-color: #363d47;
}

@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
    }
}

/* Icon Sizing - More Robust */
.nav-link .icon,
.nav-link i,
.navbar .icon,
.navbar i {
    width: 1.2em !important;
    height: 1.2em !important;
    max-width: 1.2em !important;
    max-height: 1.2em !important;
    min-width: 1.2em !important;
    min-height: 1.2em !important;
    font-size: 1em !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* Button Icons */
.btn .icon,
.btn i {
    width: 1em !important;
    height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    min-width: 1em !important;
    min-height: 1em !important;
    flex-shrink: 0 !important;
}

/* Prevent Layout Shift During Navigation */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Font Awesome Specific Fixes */
.fa, .fab, .fad, .fal, .far, .fas {
    width: 1em !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Blazor Router Loading State */
.page-loading {
    overflow: hidden;
}

.page-loading .page-container {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

/* Enhanced Icon Constraints */
.navbar-brand img {
    max-width: 120px !important;
    height: auto !important;
    transition: none !important;
}

/* Prevent Icon Scaling Issues - Simplified */
.icon, i, .fa, .fab, .fad, .fal, .far, .fas {
    font-size: 1em !important;
    width: 1em !important;
    height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    min-width: 1em !important;
    min-height: 1em !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

/* Modern Calendar Styling */
.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-event {
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    border-radius: 6px;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.calendar-event:hover {
    background: var(--gray-50);
    border-left-color: var(--blue-400);
}

.calendar-event.season-active {
    background: var(--green-50);
    border-left-color: var(--green-500);
}

.calendar-event.season-active:hover {
    background: var(--green-100);
}

.calendar-link {
    color: #1b6ec2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease-in-out;
}

.calendar-link:hover {
    color: #0d5aa7;
    text-decoration: underline;
}

.calendar-text {
    color: #495057;
    font-weight: 600;
}

/* Modern Homepage Styles - Apple-inspired Design */
.home-dashboard {
    background: var(--bs-body-bg);
    min-height: calc(100vh - 120px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Clean cards with modern design - override Bootstrap */
.home-dashboard .card {
    background: var(--surface) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-card) !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
}

.home-dashboard .card:hover {
    box-shadow: var(--shadow-hover) !important;
}

.home-dashboard .card-header {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding: var(--spacing-lg) !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
}

.home-dashboard .card-body {
    padding: 0 !important;
}

.home-dashboard .card-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.home-dashboard .card-title i {
    color: var(--bs-primary);
    margin-right: var(--spacing-sm);
}

/* Header search bar */
.main-header-bar {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    color: white;
}

.main-header-bar .form-control {
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text-primary);
    box-shadow: none;
}

.main-header-bar .form-control:focus {
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    outline: none;
}

.main-header-bar .btn {
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.main-header-bar .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Clean list items */
.clean-list-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    background: var(--surface);
    transition: all 0.15s ease;
    cursor: pointer;
}

.clean-list-item:hover {
    background: var(--surface-hover);
}

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

.clean-list-item.selected {
    background: rgba(0, 122, 255, 0.08);
    border-left: 3px solid var(--bs-primary);
}

/* List groups - force override Bootstrap */
.home-dashboard .list-group-item {
    border: none !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding: var(--spacing-md) var(--spacing-lg) !important;
    background: var(--surface) !important;
    transition: all 0.15s ease !important;
    border-radius: 0 !important;
}

.home-dashboard .list-group-item:hover {
    background: var(--surface-hover) !important;
}

.home-dashboard .list-group-item:last-child {
    border-bottom: none !important;
}

.home-dashboard .list-group-item:first-child {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.home-dashboard .list-group {
    border-radius: 0 !important;
}

/* Player images with clean rounded corners - force override */
.player-image,
img.player-image {
    border-radius: var(--radius-sm) !important;
    object-fit: cover !important;
    border: 1px solid var(--border-light) !important;
}

.player-image-sm,
img.player-image-sm {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
}

.player-image-md,
img.player-image-md {
    width: 48px !important;
    height: 48px !important;
    border-radius: var(--radius-sm) !important;
}

.player-image-lg,
img.player-image-lg {
    width: 64px !important;
    height: 64px !important;
    border-radius: var(--radius) !important;
}

/* Override any rounded-circle classes */
.player-image.rounded-circle,
img.player-image.rounded-circle {
    border-radius: var(--radius-sm) !important;
}

/* Global override for any images that should be square */
img.rounded-circle {
    border-radius: var(--radius-sm) !important;
}

/* Modern buttons - force override Bootstrap */
.btn {
    border-radius: var(--radius-sm) !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    transition: all 0.15s ease !important;
    border: none !important;
}

.btn-primary {
    background: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
    background: #0056D6 !important;
    box-shadow: var(--shadow-hover) !important;
    color: white !important;
    border-color: #0056D6 !important;
}

.btn-link {
    color: var(--bs-primary);
    text-decoration: none;
}

.btn-link:hover {
    color: #0056D6;
    text-decoration: none;
}

/* Modern badges and status */
.badge {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.badge.bg-secondary {
    background: var(--text-tertiary) !important;
    color: white !important;
}

.badge.bg-light {
    background: var(--surface-secondary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-light);
}

.status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(48, 209, 88, 0.1);
    color: var(--bs-success);
}

.status-badge.ending {
    background: rgba(255, 149, 0, 0.1);
    color: var(--bs-warning);
}

.status-badge.closed {
    background: rgba(255, 59, 48, 0.1);
    color: var(--bs-danger);
}

/* Search results dropdown */
.search-results {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1050;
}

.search-result-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.search-result-item:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    text-decoration: none;
}

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

/* Typography updates */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-tertiary) !important;
}

.fw-semibold {
    font-weight: 600;
}

/* Utility classes */
.space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.align-center {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Clean scrollbars */
.overflow-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-auto::-webkit-scrollbar-track {
    background: var(--surface-secondary);
    border-radius: 3px;
}

.overflow-auto::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
}

.overflow-auto::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Force global Bootstrap overrides for clean design - Inspiration-based */
.home-dashboard {
    background: #F2F2F7 !important;
    min-height: calc(100vh - 120px) !important;
}

/* Clean Apple-inspired cards matching inspiration */
.home-dashboard .card,
.container-fluid.home-dashboard .card {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
    margin-bottom: 20px !important;
}

.home-dashboard .card:hover,
.container-fluid.home-dashboard .card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Clean card headers */
.home-dashboard .card-header,
.container-fluid.home-dashboard .card-header {
    background: white !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 14px 18px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    color: #48484a !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
}

/* Clean card bodies */
.home-dashboard .card-body,
.container-fluid.home-dashboard .card-body {
    padding: 0 !important;
    background: white !important;
}

/* Clean card titles */
.home-dashboard .card-title,
.container-fluid.home-dashboard .card-title {
    color: #1d1d1f !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.home-dashboard .card-title i,
.container-fluid.home-dashboard .card-title i {
    color: #8e8e93 !important;
    font-size: 0.85em !important;
    margin-right: 8px !important;
    font-size: 1rem !important;
}

/* Clean list groups - force override */
.home-dashboard .list-group,
.container-fluid.home-dashboard .list-group {
    border-radius: 0 0 14px 14px !important;
}

.home-dashboard .list-group-item,
.container-fluid.home-dashboard .list-group-item {
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    padding: 10px 18px !important;
    background: white !important;
    transition: all 0.15s ease !important;
    border-radius: 0 !important;
}

.home-dashboard .list-group-item:hover,
.container-fluid.home-dashboard .list-group-item:hover {
    background: #fafafa !important;
}

.home-dashboard .list-group-item:last-child,
.container-fluid.home-dashboard .list-group-item:last-child {
    border-bottom: none !important;
    border-bottom-left-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
}

.home-dashboard .list-group-item:first-child,
.container-fluid.home-dashboard .list-group-item:first-child {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

/* Clean custom list items matching inspiration */
.home-dashboard .clean-list-item,
.container-fluid.home-dashboard .clean-list-item {
    padding: 12px 18px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    background: white !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    border-radius: 0 !important;
}

.home-dashboard .clean-list-item:hover,
.container-fluid.home-dashboard .clean-list-item:hover {
    background: #fafafa !important;
}

.home-dashboard .clean-list-item:last-child,
.container-fluid.home-dashboard .clean-list-item:last-child {
    border-bottom: none !important;
}

.home-dashboard .clean-list-item.selected,
.container-fluid.home-dashboard .clean-list-item.selected {
    background: rgba(77, 179, 247, 0.06) !important;
    border-left: 3px solid #4DB3F7 !important;
}

/* Player images - rounded rectangles like inspiration */
.home-dashboard .player-image,
.home-dashboard img.player-image,
.container-fluid.home-dashboard .player-image,
.container-fluid.home-dashboard img.player-image {
    border-radius: 8px !important;
    object-fit: cover !important;
    border: 1px solid #E5E5EA !important;
    transition: all 0.15s ease !important;
}

.home-dashboard .player-image-sm,
.home-dashboard img.player-image-sm,
.container-fluid.home-dashboard .player-image-sm,
.container-fluid.home-dashboard img.player-image-sm {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
}

.home-dashboard .player-image-md,
.home-dashboard img.player-image-md,
.container-fluid.home-dashboard .player-image-md,
.container-fluid.home-dashboard img.player-image-md {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
}

/* Override any circular images to be rounded rectangles */
.home-dashboard img.rounded-circle,
.container-fluid.home-dashboard img.rounded-circle {
    border-radius: 8px !important;
}

/* Status badges like inspiration */
.home-dashboard .badge,
.container-fluid.home-dashboard .badge {
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.home-dashboard .badge.bg-secondary,
.container-fluid.home-dashboard .badge.bg-secondary {
    background: #8E8E93 !important;
    color: white !important;
}

.home-dashboard .badge.bg-light,
.container-fluid.home-dashboard .badge.bg-light {
    background: #F2F2F7 !important;
    color: #6E6E73 !important;
    border: 1px solid #E5E5EA !important;
}

/* Utilities */
.home-dashboard .space-between,
.container-fluid.home-dashboard .space-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Clean buttons */
.home-dashboard .btn,
.container-fluid.home-dashboard .btn {
    border-radius: 8px !important;
    font-weight: 500 !important;
    padding: 10px 16px !important;
    transition: all 0.15s ease !important;
    border: none !important;
}

.home-dashboard .btn-primary,
.container-fluid.home-dashboard .btn-primary {
    background: var(--bs-primary) !important;
    color: white !important;
}

.home-dashboard .btn-primary:hover,
.container-fluid.home-dashboard .btn-primary:hover {
    background: #0056D6 !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3) !important;
    color: white !important;
}

/* CSS cache buster - random comment 98765 */

/* Apple-inspired design - matching inspiration exactly */
.home-dashboard {
    background: #F2F2F7 !important;
    min-height: calc(100vh - 120px) !important;
    padding: 1.5rem !important;
}

/* Typography improvements - cleaner, more subtle like inspiration */
.home-dashboard h1,
.home-dashboard .h2 {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    color: #1D1D1F !important;
    margin-bottom: 0 !important;
}

.home-dashboard .card-title {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #1D1D1F !important;
    margin-bottom: 0 !important;
}

.home-dashboard .card-title i {
    font-size: 0.85rem !important;
    color: var(--bs-primary) !important;
    margin-right: 8px !important;
}

/* Cleaner text throughout */
.home-dashboard small,
.home-dashboard .small {
    font-size: 0.8rem !important;
    color: #8E8E93 !important;
}

.home-dashboard .text-muted {
    color: #8E8E93 !important;
    font-size: 0.85rem !important;
}

/* Better spacing - more compact like inspiration */
.home-dashboard .card-header {
    padding: 16px 20px !important;
}

.home-dashboard .clean-list-item,
.home-dashboard .list-group-item {
    padding: 12px 20px !important;
}

/* Modern Dark Sidebar with Glass Effect */
.sidebar {
    background: linear-gradient(to bottom, #222C3F 6em, #2d3748 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1) !important;
    border-right: none !important;
}

main { background-color: #222C3F; }

/* Main content area with rounded corner */
article,
.content,
main > .content {
    border-top-left-radius: 24px !important;
    background-color: #fff !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

/* ====== GLOBAL CLEAN WHITE/BLUES DESIGN SYSTEM ====== */

/* Global body background - clean light gray */
body {
    background: #F2F2F7 !important;
}

/* Clean design approach - no global white backgrounds, focus on typography and layout */

/* Clean card system for all content areas */
.card {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
    margin-bottom: 1rem !important;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Clean card headers */
.card-header {
    background: white !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 14px 18px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    color: #48484a !important;
}

/* Clean card bodies */
.card-body {
    padding: 0 !important;
    background: white !important;
}

/* Muted icons - not bright blue */
.card-title i {
    color: #8e8e93 !important;
}

/* Clean tables */
.table {
    background: white !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.table th {
    background: #fafafa !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    color: #86868b !important;
    padding: 12px 16px !important;
}

.table td {
    padding: 12px 16px !important;
    font-size: 0.875rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    vertical-align: middle !important;
}

.table tr:hover {
    background: #fafafa !important;
}

/* Clean buttons - Apple style */
.btn-primary {
    background: #007aff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 8px 16px !important;
    color: white !important;
    box-shadow: none !important;
}

.btn-primary:hover {
    background: #0066d6 !important;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25) !important;
}

.btn-outline-primary {
    border: 1px solid #007aff !important;
    color: #007aff !important;
    background: white !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 8px 16px !important;
}

.btn-outline-primary:hover {
    background: #007aff !important;
    color: white !important;
}

.btn-outline-success:hover {
    background: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}

.btn-outline-warning:hover {
    background: #ffc107 !important;
    color: #212529 !important;
    border-color: #ffc107 !important;
}

.btn-outline-info:hover {
    background: #17a2b8 !important;
    color: white !important;
    border-color: #17a2b8 !important;
}

/* Clean secondary buttons with complementary colors */
.btn-secondary {
    background: #F1F1F5 !important;
    border: none !important;
    color: #1D1D1F !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
}

.btn-secondary:hover {
    background: #E5E5EA !important;
}

/* Clean form controls */
.form-control {
    border: 2px solid #F1F1F5 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    background: white !important;
    color: #1D1D1F !important;
}

.form-control:focus {
    border-color: #4DB3F7 !important;
    box-shadow: 0 0 0 3px rgba(77, 179, 247, 0.1) !important;
    outline: none !important;
}

/* Clean badges with complementary colors */
.badge {
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

.badge-primary {
    background: linear-gradient(135deg, #4DB3F7 0%, #2BA5F5 100%) !important;
    color: white !important;
}

.badge-success {
    background: #34C759 !important;
    color: white !important;
}

.badge-warning {
    background: #FF9500 !important;
    color: white !important;
}

.badge-danger {
    background: #FF3B30 !important;
    color: white !important;
}

.badge-secondary {
    background: #F1F1F5 !important;
    color: #1D1D1F !important;
}

/* Clean list groups */
.list-group {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.list-group-item {
    border: none !important;
    border-bottom: 1px solid #F1F1F5 !important;
    padding: 18px 24px !important;
    background: white !important;
    transition: all 0.15s ease !important;
}

.list-group-item:hover {
    background: #F9F9FB !important;
}

.list-group-item:last-child {
    border-bottom: none !important;
}

.list-group-item.active {
    background: rgba(77, 179, 247, 0.06) !important;
    border-left: 3px solid #4DB3F7 !important;
    color: #1D1D1F !important;
}

/* Clean alerts with complementary colors */
.alert {
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 1rem !important;
}

.alert-primary {
    background: rgba(77, 179, 247, 0.1) !important;
    color: #1E5F8B !important;
    border-left: 3px solid #4DB3F7 !important;
}

.alert-success {
    background: rgba(52, 199, 89, 0.1) !important;
    color: #1E5F2A !important;
    border-left: 3px solid #34C759 !important;
}

.alert-warning {
    background: rgba(255, 149, 0, 0.1) !important;
    color: #8B4A00 !important;
    border-left: 3px solid #FF9500 !important;
}

.alert-danger {
    background: rgba(255, 59, 48, 0.1) !important;
    color: #8B1A1A !important;
    border-left: 3px solid #FF3B30 !important;
}

/* Clean modals */
.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.modal-header {
    background: white !important;
    border-bottom: 1px solid #F1F1F5 !important;
    padding: 24px !important;
}

.modal-body {
    padding: 24px !important;
}

.modal-footer {
    background: white !important;
    border-top: 1px solid #F1F1F5 !important;
    padding: 20px 24px !important;
}

/* Clean navigation */
.nav-tabs {
    border-bottom: 1px solid #F1F1F5 !important;
}

.nav-tabs .nav-link {
    border: none !important;
    color: #86868B !important;
    font-weight: 500 !important;
    padding: 12px 20px !important;
}

.nav-tabs .nav-link.active {
    color: #4DB3F7 !important;
    border-bottom: 2px solid #4DB3F7 !important;
    background: white !important;
}

.nav-tabs .nav-link:hover {
    color: #4DB3F7 !important;
}

/* ====== END GLOBAL CLEAN DESIGN SYSTEM ====== */

/* ====== APP-LIKE DASHBOARD LAYOUT ====== */
.app-dashboard {
    height: calc(100vh - 140px);
    padding: 16px;
    background: var(--bs-body-bg);
}

.left-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.main-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.thread-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100vh;
    background: white;
    border-left: 1px solid #e5e7eb;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    z-index: -1;
    display: none;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.thread-panel.show {
    display: flex;
    z-index: 1060;
    transform: translateX(0);
    pointer-events: auto;
}

/* Backdrop for thread panel - only when shown */
.thread-panel.show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
    opacity: 0;
    animation: fadeInBackdrop 0.3s ease-in-out forwards;
}

@keyframes fadeInBackdrop {
    to {
        opacity: 1;
    }
}

/* Dashboard Widgets */
.dashboard-widget {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.2s ease;
}

.dashboard-widget:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.dashboard-widget.compact {
    max-height: 280px;
}

.dashboard-widget.primary {
    border-color: rgba(88, 159, 236, 0.2);
    box-shadow: 0 2px 8px rgba(88, 159, 236, 0.08), 0 4px 20px rgba(88, 159, 236, 0.04);
}

/* Override dashboard component card styling for clean look */
.dashboard-widget .dashboard-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.dashboard-widget .dashboard-card-header {
    padding: 10px 16px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: transparent !important;
}

.dashboard-widget .dashboard-card-title {
    font-weight: 500 !important;
    color: var(--blue-highlight) !important;
    font-size: 1.2rem !important;
    letter-spacing: -0.02em !important;
}

.dashboard-widget .dashboard-icon-wrapper i {
    color: var(--blue-highlight) !important;
    font-size: 1.2rem !important;
}

.dashboard-widget .dashboard-card-action {
    color: var(--blue-highlight) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.dashboard-widget .dashboard-card-body {
    padding: 0 !important;
}

/* Clean list styling for transaction and auction lists */
.dashboard-widget .transaction-list,
.dashboard-widget .auction-list {
    padding: 0;
    margin: 0;
}

.dashboard-widget .transaction-item,
.dashboard-widget .auction-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background-color 0.2s ease;
}

.dashboard-widget .transaction-item:hover,
.dashboard-widget .auction-item:hover {
    background: rgba(88, 159, 236, 0.02);
}

/* Transaction styling - lighter and cleaner */
.dashboard-widget .transaction-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dashboard-widget .transaction-franchise {
    font-weight: 500;
    color: #1a202c;
    text-decoration: none;
}

.dashboard-widget .transaction-franchise:hover {
    color: var(--blue-highlight);
    text-decoration: underline;
}

.dashboard-widget .transaction-action {
    color: #64748b;
    font-weight: 400;
}

.dashboard-widget .transaction-player {
    font-weight: 500;
    color: var(--blue-highlight);
    text-decoration: none;
}

.dashboard-widget .transaction-player:hover {
    text-decoration: underline;
}

.dashboard-widget .transaction-position {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 400;
}

.dashboard-widget .transaction-time {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
    font-weight: 400;
}

.dashboard-widget .transaction-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.dashboard-widget .transaction-avatar {
    flex: 0 0 28px;
    margin-right: 12px;
}

/* Thread List - Slack-like */
.thread-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.thread-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.thread-item:hover {
    background: rgba(88, 159, 236, 0.02);
}

.thread-item.active {
    background: rgba(88, 159, 236, 0.05);
}

.thread-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--blue-highlight);
    border-radius: 0 2px 2px 0;
}

.thread-avatar {
    flex: 0 0 36px;
    margin-right: 14px;
}

.thread-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
}

.thread-content {
    flex: 1;
    min-width: 0;
}

.thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.franchise-name {
    font-weight: 500;
    color: #1a202c;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.thread-time {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.thread-subject {
    font-weight: 500;
    color: #1a202c;
    font-size: 0.96rem;
    margin-bottom: 6px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.thread-preview {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.3;
}

.reply-count {
    color: var(--blue-highlight);
    font-weight: 500;
    font-size: 0.8rem;
}

/* Responsive Design for new grid system */
@media (max-width: 1200px) {
    .thread-panel {
        width: 400px;
    }
}

@media (max-width: 992px) {
    .app-dashboard .col-4,
    .app-dashboard .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .app-dashboard .row {
        flex-direction: column;
    }
    
    .left-sidebar {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
    }
    
    .left-sidebar .dashboard-widget {
        flex: 0 0 300px;
    }
    
    .thread-panel {
        width: 100vw;
    }
}

/* Console Positioning */
.console-container {
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

/* Blazor Error UI - Hidden by default */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ====== END APP-LIKE DASHBOARD LAYOUT ====== */

/* ====== TEAMS PAGE STYLING ====== */
/* Teams Header */
.teams-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.teams-content {
    padding: 1.5rem;
}

/* ====== TRADE CENTER STYLING ====== */
/* Trade Center Header */
.trade-center-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trade-center-content {
    padding: 1.5rem;
    background: var(--bs-body-bg);
    min-height: calc(100vh - 120px);
}

.trade-section {
    height: 100%;
}

.trade-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.trade-card-header {
    background: var(--surface-secondary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
}

.trade-card-body {
    padding: 0.75rem;
}

/* Trade Block Items */
.trade-block-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
}

.trade-block-item:hover {
    background: var(--surface-hover);
}

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

.player-info strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.player-info small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Proposal Items */
/* Navigation Pills Small */
.nav-pills-sm .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: var(--bs-border-radius-sm);
}

/* Negotiation Items */
.negotiation-item, .proposal-item {
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.proposal-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--blue-300);
}

.proposal-item.selected {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--blue-50);
}

.proposal-info strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Trade Assets */
.trade-asset-item {
    padding: 0.5rem 0.75rem;
    background: var(--surface-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.trade-asset-item:last-child {
    margin-bottom: 0;
}

.trade-asset-item strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.trade-asset-item small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.25rem;
}

/* Chat Messages */
.trade-chat-messages {
    background: var(--surface-secondary);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.chat-message:last-child {
    margin-bottom: 0;
}

.chat-message.own-message {
    margin-left: auto;
    text-align: right;
}

.chat-message.other-message {
    margin-right: auto;
    text-align: left;
}

.message-header {
    margin-bottom: 0.25rem;
}

.message-body {
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.own-message .message-body {
    background: var(--blue-500);
    color: white;
}

.other-message .message-body {
    background: white;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .trade-center .col-4,
    .trade-center .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .trade-section {
        margin-bottom: 2rem;
    }
    
    .proposal-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .proposal-actions {
        margin-top: 0.75rem;
        width: 100%;
    }
    
    .chat-message {
        max-width: 95%;
    }
}

/* Status Badges */
.badge.bg-warning {
    background-color: var(--orange-500) !important;
}

.badge.bg-success {
    background-color: var(--bs-success) !important;
}

.badge.bg-danger {
    background-color: var(--bs-danger) !important;
}

.badge.bg-info {
    background-color: var(--blue-400) !important;
}

.badge.bg-secondary {
    background-color: var(--gray-500) !important;
}

/* ====== END TRADE CENTER STYLING ====== */

/* ====== TEAMS PAGE STYLING ====== */
.team-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Team Header */
.team-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.team-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.team-logo {
    flex: 0 0 48px;
}

.team-logo img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-logo-placeholder {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.2rem;
}

.team-details {
    flex: 1;
    min-width: 0;
}

.team-name {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.team-name a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-name a:hover {
    color: var(--blue-highlight);
}

.team-owner {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Team Summary */
.team-summary {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.summary-grid {
    display: grid;
    gap: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.summary-detail {
    font-size: 0.9rem;
    font-weight: 400;
    color: #94a3b8;
}

.summary-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}

.summary-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-highlight), #4a9eff);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Position Breakdown */
.position-breakdown {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.breakdown-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
}

.position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
}

.position-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.position-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.position-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a202c;
}

/* Trade Block */
.trade-block {
    padding: 20px 24px;
    flex: 1;
}

.trade-block-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    display: flex;
    align-items: center;
}

.trade-block-title i {
    color: var(--blue-highlight);
    opacity: 0.8;
}

.trade-block-players {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trade-block-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: background-color 0.2s ease;
}

.trade-block-player:hover {
    background: rgba(88, 159, 236, 0.04);
}

.player-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-position {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a202c;
}

.player-salary {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-highlight);
}

.trade-block-more {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    padding: 8px;
}

.trade-block-empty {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    flex: 1;
}

.trade-block-empty-text {
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
    display: flex;
    align-items: center;
}

.trade-block-empty-text i {
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-card {
        margin-bottom: 16px;
    }
    
    .team-header,
    .team-summary,
    .position-breakdown,
    .trade-block {
        padding: 16px 20px;
    }
    
    .position-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .summary-grid {
        gap: 12px;
    }
}

/* ====== END TEAMS PAGE STYLING ====== */

/* Logo styling - orange accent */
.sidebar .navbar-brand {
    /* Icon styling restored */
}

/* Navigation Links */
.sidebar .nav-link {
    color: #e0e0e0 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    margin: 2px 12px !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.sidebar .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.sidebar .nav-link.active {
    color: var(--blue-highlight) !important;
    background: none !important;
    font-weight: 600 !important;
}

.sidebar .nav-link i {
    font-size: 0.85rem !important;
    margin-right: 12px !important;
    width: 18px !important;
    text-align: center !important;
    opacity: 0.9 !important;
}

.sidebar .nav-link.active i {
    opacity: 1 !important;
}

/* Glass-like search styling */
.main-header-bar {
    background: linear-gradient(to right, #222C3F 280px, rgba(34, 44, 63, 0.95) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: none !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 2rem !important;
    position: relative !important;
    z-index: 1000 !important;
    color: white !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}

.main-header-bar::before {
    content: '';
    position: absolute;
    left: 280px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, rgba(88, 159, 236, 0.3) 30%, rgba(88, 159, 236, 0.6) 50%, rgba(88, 159, 236, 0.3) 70%, transparent 100%);
}

.main-header-bar .form-control {
    border: none !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    color: white !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.main-header-bar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.main-header-bar .form-control:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
    color: white !important;
}

.main-header-bar .btn {
    border: none !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    color: white !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 16px !important;
    transition: all 0.15s ease !important;
}

.main-header-bar .btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

/* ============================================================================
   ROSTER MANAGEMENT STYLES
   ============================================================================ */

/* Modern Roster Grid Styling */
.modern-roster-grid {
    border: none !important;
}

.modern-roster-grid .rz-datatable {
    border: none !important;
    box-shadow: none !important;
}

.modern-roster-grid .rz-datatable-header {
    background: var(--gray-100) !important;
    border: none !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px !important;
    color: var(--gray-600) !important;
}

.modern-roster-grid .rz-datatable-data {
    border: none !important;
}

.modern-roster-grid .rz-datatable-data td {
    border: none !important;
    border-bottom: 1px solid var(--gray-200) !important;
    padding: 1rem 0.75rem !important;
    vertical-align: middle !important;
}

.modern-roster-grid .rz-datatable-data tr:hover {
    background-color: var(--gray-50) !important;
    transition: background-color 0.2s ease-in-out;
}

.modern-roster-grid .rz-datatable-data tr:last-child td {
    border-bottom: none !important;
}

/* Player Row Styling */
.modern-roster-grid .player-row {
    transition: all 0.2s ease-in-out;
}

.modern-roster-grid .player-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Player Image Styling */
.modern-roster-grid .player-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--gray-200);
    transition: border-color 0.2s ease-in-out;
}

.modern-roster-grid .player-image:hover {
    border-color: var(--bs-primary);
}

/* Badge Styling */
.modern-roster-grid .status-badges .rz-badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Action Button Styling */
.modern-roster-grid .action-buttons {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.modern-roster-grid .action-buttons .rz-button {
    min-width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Styling */
.modern-roster-grid .rz-datatable-footer {
    background: var(--gray-100) !important;
    border: none !important;
    border-top: 2px solid var(--gray-300) !important;
    font-weight: 600 !important;
    padding: 1rem 0.75rem !important;
}

/* Team Stats Cards */
.team-stats-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.team-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-stats-number {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Loading States */
.roster-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-direction: column;
}

.roster-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Enhanced Card Styling */
.roster-card {
    border: none;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease-in-out;
}

.roster-card:hover {
    box-shadow: var(--shadow-hover);
}

.roster-card .card-header {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-bottom: 1px solid var(--gray-300);
}

/* Position Groups */
.position-group-header {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1rem;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-franchise {
    background: rgba(16, 185, 129, 0.1);
    color: rgba(16, 185, 129, 0.8);
}

.status-taxi {
    background: var(--orange-100);
    color: var(--orange-700);
}

.status-ir {
    background: rgba(239, 68, 68, 0.1);
    color: rgba(239, 68, 68, 0.8);
}

.status-rfa {
    background: rgba(239, 68, 68, 0.1);
    color: rgba(239, 68, 68, 0.8);
}

.status-orc {
    background: var(--blue-100);
    color: var(--blue-700);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .home-dashboard .card-header {
        padding: var(--spacing-md);
    }
    
    .home-dashboard .card-title {
        font-size: 1rem;
    }
    
    .main-header-bar {
        padding: var(--spacing-md);
    }
    
    .clean-list-item,
    .home-dashboard .list-group-item {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .modern-roster-grid .rz-datatable-data td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.9rem;
    }
    
    .modern-roster-grid .player-image {
        width: 40px;
        height: 40px;
    }
    
    .modern-roster-grid .action-buttons .rz-button {
        min-width: 28px;
        height: 28px;
    }
}

/* ============================================================================
   BREADCRUMB & BRANDING STYLES
   ============================================================================ */

/* Orange accent for branding and breadcrumbs */
.breadcrumb,
.breadcrumb-item {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--gray-400);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--orange-600) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.15s ease !important;
}

.breadcrumb-item a:hover {
    color: var(--orange-700) !important;
}

.breadcrumb-item.active {
    color: var(--gray-600) !important;
    font-weight: 500 !important;
}

/* Enhanced branding */
.brand-accent {
    color: var(--blue-highlight) !important;
}

.sidebar .navbar-brand {
    transition: all 0.3s ease !important;
    /* Removed image filters for natural colors */
}

.sidebar .navbar-brand:hover {
    /* Removed image filters for natural colors */
}

/* Page titles with accent */
.page-title,
h1.brand-accent,
h2.brand-accent {
    color: var(--orange-600) !important;
    font-weight: 600 !important;
}

/* Dashboard header improvements */
.home-dashboard h1,
.home-dashboard .h2 {
    color: var(--orange-600) !important;
    font-weight: 700 !important;
}

/* Homepage orange accent text */
.home-dashboard .card-title {
    color: var(--text-primary) !important;
}

.home-dashboard .card-title i {
    color: var(--orange-500) !important;
}


/* Accent buttons */
.btn-accent {
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--orange-600) 0%, var(--orange-700) 100%) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4) !important;
    color: white !important;
}

/* Update sidebar theme color in CSS vars */
:root {
    --sidebar-primary: #363d47;
    --sidebar-secondary: #2d3748;
}

/* ============================================================================
   SIDEBAR DROPDOWN NAVIGATION STYLES
   ============================================================================ */

/* Dropdown toggles */
.sidebar .nav-link.dropdown-toggle {
    position: relative;
    padding-right: 2.5rem !important;
    color: #e0e0e0 !important;
}

.sidebar .nav-link.dropdown-toggle::after {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f105"; /* fa-chevron-right */
    transition: transform 0.2s ease;
    color: #e0e0e0;
    opacity: 0.8;
}

.sidebar .nav-link.dropdown-toggle:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.sidebar .nav-link.dropdown-toggle:hover::after {
    color: white;
    opacity: 1;
}

.sidebar .nav-link.dropdown-toggle[aria-expanded="true"] {
    color: white !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.sidebar .nav-link.dropdown-toggle[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(90deg);
    color: white;
    opacity: 1;
}

/* Dropdown content */
.nav-dropdown-content {
    padding: 0.5rem 0;
    margin-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}

/* Sub navigation links */
.sidebar .nav-link-sub {
    font-size: 0.85rem !important;
    color: #e0e0e0 !important;
    padding: 8px 16px !important;
    margin: 1px 0 !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.sidebar .nav-link-sub:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
}

.sidebar .nav-link-sub.active {
    background: none !important;
    color: var(--blue-highlight) !important;
    font-weight: 600 !important;
}

.sidebar .nav-link-sub i {
    font-size: 0.75rem !important;
    margin-right: 10px !important;
    width: 16px !important;
    text-align: center !important;
    opacity: 0.9 !important;
}

.sidebar .nav-link-sub.active i {
    opacity: 1 !important;
}

/* Navigation divider */
.nav-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
    opacity: 0.5;
}

/* Seasonal feature badges */
.sidebar .seasonal-feature {
    position: relative;
}

.sidebar .seasonal-feature .badge {
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.sidebar .seasonal-feature .badge.bg-warning {
    background: var(--orange-500) !important;
    color: white !important;
}

.sidebar .seasonal-feature .badge.bg-success {
    background: var(--bs-success) !important;
    color: white !important;
}

/* Smooth collapse animations */
.collapse {
    transition: height 0.2s ease-in-out !important;
}

/* Mobile responsiveness for dropdowns */
@media (max-width: 768px) {
    .nav-dropdown-content {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .sidebar .nav-link-sub {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }
}

/* ============================================================================
   MOBILE NAVBAR TOGGLE STYLES
   ============================================================================ */

/* Hide the checkbox but make it functional */
.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.navbar-toggler::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 2px;
    background: white;
    box-shadow: 0 6px 0 white, 0 -6px 0 white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler:checked {
    background: var(--orange-500);
    border-color: var(--orange-600);
}

.navbar-toggler:checked::before {
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 0 white, 0 0 0 white;
}

/* Hide nav by default on mobile */
.nav-scrollable {
    display: none;
    transition: all 0.3s ease;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop - always show navigation */
@media (min-width: 769px) {
    .navbar-toggler {
        display: none;
    }
    
    .nav-scrollable {
        display: block !important;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* ============================================================================
   HEADER ORANGE ACCENT INTEGRATION
   ============================================================================ */

/* Add orange accent to header elements */
.main-header-bar {
    background: linear-gradient(to right, #222C3F 280px, rgba(34, 44, 63, 0.95) 100%) !important;
    position: relative !important;
}

/* Orange accent for search focus */
.main-header-bar .form-control:focus,
.top-header-bar .form-control:focus {
    border-color: var(--orange-500) !important;
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25) !important;
}

/* Orange accent for buttons */
.main-header-bar .btn-primary,
.top-header-bar .btn-primary {
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%) !important;
    color: white !important;
    border: none !important;
}

.main-header-bar .btn-primary:hover,
.top-header-bar .btn-primary:hover {
    background: linear-gradient(135deg, var(--orange-600) 0%, var(--orange-700) 100%) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4) !important;
}

/* Orange accent in top header bar */
.top-header-bar {
    background: linear-gradient(to right, #222C3F 280px, rgba(34, 44, 63, 0.95) 100%) !important;
    position: relative !important;
}

/* Brand logo styling */
.brand {
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
}

.brand-logo {
    color: #4DB3F7 !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    text-transform: uppercase !important;
}

.brand-logo:hover {
    color: #4DB3F7 !important;
    opacity: 0.8 !important;
}

/* Glass-like search form in header */
.top-header-bar .ms-auto {
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
}

.top-header-bar .input-group {
    min-width: 300px !important;
    max-width: 400px !important;
}

.top-header-bar .form-control {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px 0 0 8px !important;
    color: white !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    height: 44px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.15s ease !important;
    border-right: none !important;
}

.top-header-bar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
}

.top-header-bar .form-control:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: var(--orange-500) !important;
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
    color: white !important;
}

.top-header-bar .btn-accent {
    background: rgba(249, 115, 22, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    color: white !important;
    padding: 12px 16px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
}

.top-header-bar .btn-accent:hover {
    background: rgba(249, 115, 22, 0.9) !important;
    color: white !important;
    box-shadow: none !important;
}

/* Subtle carved-in header search */
.header-search-input {
    background: rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    height: 32px !important;
    min-width: 240px !important;
    max-width: 300px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

.header-search-input:focus {
    background: rgba(0, 0, 0, 0.2) !important;
    color: white !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

/* =========================================
   SOPHISTICATED DASHBOARD COMPONENTS
   ========================================= */

/* Dashboard Card System */
.dashboard-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 1.5rem;
}

.dashboard-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    border-color: var(--gray-300);
}

.dashboard-card-compact {
    max-height: 280px;
}

.dashboard-card-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.dashboard-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    letter-spacing: -0.025em;
}

.dashboard-icon-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dashboard-card-action {
    font-size: 0.8125rem;
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.dashboard-card-action:hover {
    color: var(--blue-700);
    text-decoration: none;
}

.dashboard-card-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Loading and Empty States */
.dashboard-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem;
}

.dashboard-loading .spinner-border {
    color: var(--blue-500);
    width: 2rem;
    height: 2rem;
}

.dashboard-notice {
    background: var(--blue-50);
    color: var(--blue-700);
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--blue-400);
    margin: 1rem 1.5rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.875rem;
}

.dashboard-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    color: var(--gray-500);
}

.dashboard-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.dashboard-empty-text {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Discussion Component Styles */
.discussion-list {
    padding: 0;
}

.discussion-item {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

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

.discussion-item:hover {
    background: var(--gray-50);
}

.discussion-item.selected {
    background: var(--blue-50);
    border-left: 3px solid var(--blue-500);
}

.discussion-item.selected .discussion-title {
    color: var(--blue-700);
}

.discussion-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 0.875rem;
    border: 2px solid var(--gray-200);
}

.discussion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discussion-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-300) 0%, var(--gray-400) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.discussion-content {
    flex: 1;
    min-width: 0;
}

.discussion-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.discussion-author {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
}

.discussion-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discussion-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.discussion-count {
    background: var(--blue-100);
    color: var(--blue-700);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    min-width: 1.25rem;
    text-align: center;
}

.discussion-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.discussion-summary {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Auction Component Styles */
.auction-list {
    padding: 0;
}

.auction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.15s ease;
}

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

.auction-item:hover {
    background: var(--gray-50);
}

.auction-player {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.auction-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 1rem;
    position: relative;
    border: 2px solid var(--gray-200);
    flex-shrink: 0;
}

.auction-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.auction-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--orange-500);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    border: 2px solid white;
}

.auction-info {
    flex: 1;
    min-width: 0;
}

.auction-player-name {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.auction-position {
    background: var(--gray-700);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.auction-name-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
}

.auction-name-link:hover {
    color: var(--blue-600);
    text-decoration: none;
}

.auction-team {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

.auction-timing {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-500);
    font-size: 0.75rem;
    font-weight: 500;
}

.auction-timing i {
    font-size: 0.6875rem;
}

.auction-bid {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.auction-bid-info {
    text-align: right;
}

.auction-bid-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-600);
    line-height: 1.2;
}

.auction-bid-term {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.auction-bidder img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

.auction-no-bids {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

.auction-extras {
    padding: 0.75rem 1.5rem 0;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.auction-picks,
.auction-comment {
    color: var(--gray-600);
    font-size: 0.75rem;
}

.auction-comment {
    font-style: italic;
}

/* Transaction Component Styles */
.transaction-list {
    padding: 0;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.15s ease;
}

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

.transaction-item:hover {
    background: var(--gray-50);
}

.transaction-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 0.875rem;
    border: 2px solid var(--gray-200);
    flex-shrink: 0;
}

.transaction-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transaction-content {
    flex: 1;
    min-width: 0;
}

.transaction-summary {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.transaction-position {
    background: var(--gray-600);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.3125rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Compact transaction styles */
.transaction-item-compact {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.15s ease;
}
.transaction-item-compact:last-child {
    border-bottom: none;
}
.transaction-item-compact:hover {
    background: var(--gray-50);
}
.transaction-avatar-small {
    width: 2em !important;
    height: 2em !important;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 0.75rem;
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}
.transaction-avatar-small img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.transaction-content-two-line {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    font-size: 0.75rem;
    line-height: 1.2;
    min-width: 0;
    flex: 1;
}

.transaction-top-line,
.transaction-bottom-line {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
}
.transaction-franchise-compact {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.transaction-franchise-compact:hover {
    text-decoration: underline;
}
.transaction-action-compact {
    color: var(--gray-600);
    white-space: nowrap;
}
.transaction-player-compact {
    font-weight: 500;
    color: var(--gray-900);
    text-decoration: none;
    white-space: nowrap;
}
.transaction-player-compact:hover {
    text-decoration: underline;
}
.transaction-position-compact {
    background: var(--gray-600);
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.0625rem 0.25rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}
.transaction-time-compact {
    color: var(--gray-500);
    font-size: 0.6875rem;
    margin-left: auto;
    white-space: nowrap;
}

/* ===== UNIFIED TOPIC LIST ITEM STYLES ===== */
.topic-list-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background-color 0.15s ease;
    position: relative;
}

.topic-list-item:hover {
    background-color: var(--gray-50);
}

.topic-list-item.selected {
    background-color: rgba(13, 110, 253, 0.1);
    border-left: 3px solid var(--primary);
}

.topic-main-content {
    flex: 1;
    min-width: 0;
}

.topic-subject {
    display: flex;
    align-items: center;
    margin-bottom: 0.375rem;
}

.topic-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-900);
    margin-right: 0.5rem;
}

.topic-description {
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: normal;
}

.topic-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.topic-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-600), var(--gray-700));
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
}

.auction-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
}

.author-name {
    font-weight: 500;
    color: var(--gray-800);
}

.topic-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-500);
}

.reply-count {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
}

.last-activity {
    font-size: 0.75rem;
}

.topic-actions {
    margin-left: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.topic-list-item:hover .topic-actions {
    opacity: 1;
}

.topic-list-item .topic-direct-link {
    background: none;
    border: none;
    color: var(--gray-500);
    padding: 0.25rem 0.375rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.topic-list-item .topic-direct-link:hover {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

/* ===== SLACK-STYLE MESSAGE COMPOSER ===== */
.message-composer {
    background: #fff;
    border-top: 1px solid #e1e5e9;
    padding: 1rem;
}

.message-input-container {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 0.5rem;
    transition: border-color 0.15s ease;
}

.message-input-container:focus-within {
    border-color: #0d6efd;
    background: #fff;
}

.message-input {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0.375rem 0;
    min-height: 20px;
    max-height: 120px;
    overflow-y: auto;
    outline: none;
    font-family: inherit;
}

.message-input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #0d6efd;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.8rem;
}

.btn-send:hover:not(.disabled) {
    background: #0b5ed7;
    transform: scale(1.05);
}

.btn-send.disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.message-composer-hint {
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

.message-composer-hint kbd {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
}

.transaction-player {
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
}

.transaction-player:hover {
    color: var(--blue-600);
    text-decoration: none;
}

.transaction-action {
    color: var(--gray-600);
}

.transaction-franchise {
    font-weight: 600;
    color: var(--blue-600);
    text-decoration: none;
}

.transaction-franchise:hover {
    color: var(--blue-700);
    text-decoration: none;
}

.transaction-time {
    font-size: 0.6875rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* =========================================
   GLOBAL UI IMPROVEMENTS - TIGHTER & CLEANER
   ========================================= */

/* Cleaner, tighter badges */
.badge {
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Remove excessive padding from Bootstrap cards */
.card {
    border: 1px solid var(--gray-200) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    background: var(--gray-50) !important;
    border-bottom: 1px solid var(--gray-200) !important;
    padding: 1rem 1.25rem !important;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem !important;
}

/* Tighter list group items */
.list-group-item {
    padding: 0.75rem 1rem !important;
    border-color: var(--gray-200) !important;
}

/* Clean button styling */
.btn-sm {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.8125rem !important;
    border-radius: 6px !important;
}

/* Refined alerts */
.alert {
    padding: 0.875rem 1rem !important;
    border-radius: 8px !important;
    border: none !important;
    font-size: 0.875rem !important;
}

/* Header Navigation Styling */
.header-nav-item {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none !important;
    background: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

.header-nav-item:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.header-nav-item:focus {
    color: white !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}

/* Header dropdown styling */
.top-header-bar .dropdown-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    margin-top: 8px !important;
    padding: 8px !important;
    min-width: 200px !important;
}

.top-header-bar .dropdown-item {
    color: var(--text-primary) !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.top-header-bar .dropdown-item:hover {
    background: var(--blue-600) !important;
    color: white !important;
}

.top-header-bar .dropdown-item i {
    width: 16px !important;
    text-align: center !important;
    opacity: 0.8 !important;
}

.top-header-bar .dropdown-item:hover i {
    opacity: 1 !important;
}

.top-header-bar .dropdown-divider {
    border-color: rgba(0, 0, 0, 0.1) !important;
    margin: 4px 0 !important;
}

/* ============================================================================
   AUCTIONS PAGE STYLING
   ============================================================================ */
.auctions-page {
    padding: 0;
}

.auctions-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.auctions-page .auctions-content {
    padding: 1.5rem;
}

/* Ensure proper spacing for auction sections */
.auctions-page .mb-5 {
    margin-bottom: 3rem !important;
}

/* Admin header styling - matches auctions header */
.admin-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Player page header styling - matches auctions/admin pattern */
.player-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.player-content {
    padding: 1.5rem;
}

.admin-page .admin-content {
    padding: 1.5rem;
}

/* ============================================================================
   AUCTION DETAILS PAGE STYLING
   ============================================================================ */
.auction-details-page {
    padding: 1.5rem;
    background: #f8f9fa;
    min-height: calc(100vh - 60px);
}

.auction-details-page .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.auction-details-page .card-header {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem;
}

.auction-details-page .bid-history-container {
    max-height: 500px;
    overflow-y: auto;
}

/* Bid History Table Layout */
.auction-details-page .bid-history-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.auction-details-page .bid-table-header {
    display: table-row;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.auction-details-page .bid-table-header > div {
    display: table-cell;
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.auction-details-page .bid-table-row {
    display: table-row;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.auction-details-page .bid-table-row:hover {
    background-color: #f8f9fa;
}

.auction-details-page .bid-table-row > div {
    display: table-cell;
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

/* Column widths */
.auction-details-page .bid-col-rank { width: 80px; text-align: center; }
.auction-details-page .bid-col-franchise { width: 25%; }
.auction-details-page .bid-col-total { width: 120px; text-align: right; }
.auction-details-page .bid-col-salary { width: 100px; text-align: right; }
.auction-details-page .bid-col-years { width: 60px; text-align: center; }
.auction-details-page .bid-col-time { width: auto; }

/* Franchise logo */
.auction-details-page .franchise-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

/* Winning bid styling */
.auction-details-page .bid-winning {
    background: linear-gradient(90deg, #d4edda 0%, #ffffff 100%);
    border-left: 4px solid #28a745;
}

/* Quick bid row styling */
.auction-details-page .quick-bid-row {
    background: #f8f9fa;
    border-left: 4px dashed #dee2e6;
}

.auction-details-page .quick-bid-row:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border-left-color: #2196f3;
}

/* Small badges */
.auction-details-page .badge-xs {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
}

.auction-details-page .row .card.h-100 {
    transition: box-shadow 0.2s ease;
}

.auction-details-page .row .card.h-100:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.auction-details-page .quick-bid-btn {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
    transition: all 0.2s ease;
}

.auction-details-page .quick-bid-btn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}

.auction-details-page .quick-bid-item .text-primary {
    color: #1976d2 !important;
}

.auction-details-page .quick-bid-item .badge.bg-primary {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%) !important;
    box-shadow: 0 1px 3px rgba(33, 150, 243, 0.3);
}

/* ============================================================================
   HEADER PLAYER SEARCH STYLING
   ============================================================================ */
.search-results {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.search-result-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.15s ease;
}

.search-result-item:hover {
    background: rgba(59, 130, 246, 0.08);
    text-decoration: none;
    color: inherit;
}

.search-result-item:last-of-type {
    border-bottom: none;
}

.search-result-item .player-image-sm {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

.search-result-item .text-primary {
    font-weight: 600;
    font-size: 0.9rem;
}

.search-result-item .text-muted {
    font-size: 0.8rem;
    font-weight: 500;
}

.search-result-item .text-info {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue-600) !important;
}

.search-result-item .text-success {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green-600) !important;
}

.search-result-more {
    display: block;
    padding: 12px 16px;
    text-align: center;
    color: var(--blue-600);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.15s ease;
}

.search-result-more:hover {
    background: rgba(59, 130, 246, 0.08);
    text-decoration: none;
    color: var(--blue-700);
}

/* Enhanced search input styling */
.header-search-input:focus {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 
                inset 0 2px 8px rgba(0, 0, 0, 0.2), 
                0 0 0 1px rgba(255, 255, 255, 0.15) !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .search-results {
        width: 300px !important;
        right: -50px !important;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }
    
    .search-result-item .player-image-sm {
        width: 36px;
        height: 36px;
    }
}
/* End Header Player Search Styling */

/* ============================================================================
   DYNASTY ROSTER MANAGEMENT STYLES
   ============================================================================ */

/* Dynasty Roster Grid */
.dynasty-roster-grid {
    border: none !important;
}

.dynasty-roster-grid .rz-datatable {
    border: none !important;
    box-shadow: none !important;
}

.dynasty-roster-grid .rz-datatable-header {
    background: var(--gray-100) !important;
    border: none !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px !important;
    color: var(--gray-600) !important;
}

.dynasty-roster-grid .rz-datatable-data {
    border: none !important;
}

.dynasty-roster-grid .rz-datatable-data td {
    border: none !important;
    border-bottom: 1px solid var(--gray-200) !important;
    padding: 0.875rem 0.75rem !important;
    vertical-align: middle !important;
}

.dynasty-roster-grid .rz-datatable-data tr:hover {
    background-color: var(--gray-50) !important;
    transition: background-color 0.2s ease-in-out;
}

/* Taxi Squad Row Styling */
.dynasty-roster-grid .taxi-squad-row {
    background-color: #fff8e6 !important;
    border-left: 3px solid var(--orange-400) !important;
}

.dynasty-roster-grid .taxi-squad-row:hover {
    background-color: #fff4d6 !important;
}

/* Player Name Cell */
.dynasty-roster-grid .player-name-cell {
    min-width: 200px;
}

/* Status Badges - Compact */
.status-badges-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.status-badge.status-taxi {
    background: linear-gradient(135deg, var(--orange-100) 0%, var(--orange-200) 100%);
    color: var(--orange-800);
    border: 1px solid var(--orange-300);
}

.status-badge.status-franchise {
    background: linear-gradient(135deg, var(--green-100) 0%, var(--green-200) 100%);
    color: var(--green-800);
    border: 1px solid var(--green-300);
}

.status-badge.status-orc {
    background: linear-gradient(135deg, var(--blue-100) 0%, var(--blue-200) 100%);
    color: var(--blue-800);
    border: 1px solid var(--blue-300);
}

.status-badge.status-ir {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-badge.status-rfa {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Dynasty Actions */
.dynasty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    justify-content: flex-start;
    align-items: center;
}

.dynasty-actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    min-width: auto;
    height: auto;
    line-height: 1.2;
}

.dynasty-actions .btn i {
    font-size: 0.6875rem;
    margin-right: 0.25rem;
}

.dynasty-actions .btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
}

/* Enhanced Trade Block Dialog */
.trade-block-dialog .form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.trade-block-dialog .form-control,
.trade-block-dialog .form-select {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.15s ease;
}

.trade-block-dialog .form-control:focus,
.trade-block-dialog .form-select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.trade-block-preferences {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.trade-block-preferences h6 {
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.preference-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preference-chip {
    background: white;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.preference-chip:hover {
    border-color: var(--blue-400);
    background: var(--blue-50);
}

.preference-chip.selected {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: white;
}

/* Dynasty Dashboard Summary */
.dynasty-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.dynasty-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dynasty-summary-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.dynasty-summary-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Position Header Rows */
.dynasty-roster-grid .position-header-row {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%) !important;
    border: none !important;
    border-bottom: 2px solid var(--blue-800) !important;
}

.dynasty-roster-grid .position-header-row td {
    padding: 0.75rem 1rem !important;
    border: none !important;
    border-bottom: none !important;
}

.dynasty-roster-grid .position-header-row:hover {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%) !important;
}

.position-header-text {
    color: white !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.9rem !important;
}

/* Sort Mode Toggle */
.form-check-input:checked {
    background-color: var(--blue-600) !important;
    border-color: var(--blue-600) !important;
}

.form-check-input:focus {
    border-color: var(--blue-400) !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
}

/* Footer Styling */
.dynasty-roster-grid .rz-datatable-footer {
    background: var(--gray-100) !important;
    border: none !important;
    border-top: 2px solid var(--gray-300) !important;
    font-weight: 600 !important;
    padding: 1rem 0.75rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dynasty-actions {
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
    }
    
    .dynasty-actions .btn {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.375rem;
        text-align: center;
    }
    
    .status-badges-compact {
        flex-direction: column;
        gap: 0.125rem;
    }
    
    .status-badge {
        font-size: 0.5625rem;
        padding: 0.0625rem 0.25rem;
    }
    
    .dynasty-roster-grid .rz-datatable-data td {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.8125rem;
    }
}

/* YouTube-style loading progress bar */
.page-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
    overflow: hidden;
}

.page-loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
        var(--blue-500) 0%,
        var(--blue-400) 50%,
        var(--blue-600) 100%);
    animation: loading-bar 1.5s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    transform-origin: left;
}

@keyframes loading-bar {
    0% {
        transform: translateX(-100%) scaleX(0.5);
    }
    50% {
        transform: translateX(0%) scaleX(0.8);
    }
    100% {
        transform: translateX(100%) scaleX(0.5);
    }
}

