@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Enhanced Leaderboard Styles */

:root {
    --primary-dark: #0a1826;
    --primary-blue: #0e253b;
    --accent-blue: #1a3a52;
    --secondary-blue: #2d5478;
    --light-blue: #4a7199;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #8b99ab;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(26, 58, 82, 0.3);
    --mud-default-borderradius: var(--border-radius);
}

* {
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--light-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, .btn-link:hover {
    color: var(--text-primary);
}

.btn-primary {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--secondary-blue) 100%);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 2px solid var(--success);
    outline-offset: 2px;
}

.invalid {
    outline: 2px solid var(--error);
    outline-offset: 2px;
}

.standings-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--primary-blue);
}

.standings-table-team{
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--primary-blue);
}

.validation-message {
    color: var(--error);
}

/* Modern Card Styles */
.modern-card {
    background: linear-gradient(145deg, var(--primary-blue), var(--accent-blue));
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card {
    background: rgba(14, 37, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Modern Button Styles */
.modern-btn {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--secondary-blue) 100%);
    color: var(--text-primary);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--light-blue);
}

/* Score Display Styles */
.score-display {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Team Logo Effects */
.team-logo {
    transition: var(--transition);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.team-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
}

/* Loading Spinner */
.loading-spinner-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4a7199;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

#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;
}

.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."
}

.blob {
    background: black;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
    margin: 10px;
    height: 10px;
    width: 10px;
    transform: scale(1);
    animation: pulse-black 2s infinite;
}

.blob.red {
    background: rgba(255, 82, 82, 1);
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 1);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 82, 82, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
    }
}

.snowflake {
    color: #fff;
    font-size: 0.85em;
    font-family: Arial, serif;
    text-shadow: 0 0 1px #000;
    opacity: 70%;
}

@-webkit-keyframes snowflakes-fall {
    0% {
        top: -10%
    }
    100% {
        top: 100%
    }
}

@-webkit-keyframes snowflakes-shake {
    0% {
        -webkit-transform: translateX(0px);
        transform: translateX(0px)
    }
    50% {
        -webkit-transform: translateX(80px);
        transform: translateX(80px)
    }
    100% {
        -webkit-transform: translateX(0px);
        transform: translateX(0px)
    }
}

@keyframes snowflakes-fall {
    0% {
        top: -10%
    }
    100% {
        top: 100%
    }
}

@keyframes snowflakes-shake {
    0% {
        transform: translateX(0px)
    }
    50% {
        transform: translateX(80px)
    }
    100% {
        transform: translateX(0px)
    }
}

.snowflake {
    position: fixed;
    top: -10%;
    z-index: 9999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    -webkit-animation-name: snowflakes-fall, snowflakes-shake;
    -webkit-animation-duration: 10s, 3s;
    -webkit-animation-timing-function: linear, ease-in-out;
    -webkit-animation-iteration-count: infinite, infinite;
    -webkit-animation-play-state: running, running;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running
}

.snowflake:nth-of-type(0) {
    left: 1%;
    -webkit-animation-delay: 0s, 0s;
    animation-delay: 0s, 0s
}

.snowflake:nth-of-type(1) {
    left: 10%;
    -webkit-animation-delay: 1s, 1s;
    animation-delay: 1s, 1s
}

.snowflake:nth-of-type(2) {
    left: 20%;
    -webkit-animation-delay: 6s, .5s;
    animation-delay: 6s, .5s
}

.snowflake:nth-of-type(3) {
    left: 30%;
    -webkit-animation-delay: 4s, 2s;
    animation-delay: 4s, 2s
}

.snowflake:nth-of-type(4) {
    left: 40%;
    -webkit-animation-delay: 2s, 2s;
    animation-delay: 2s, 2s
}

.snowflake:nth-of-type(5) {
    left: 50%;
    -webkit-animation-delay: 8s, 3s;
    animation-delay: 8s, 3s
}

.snowflake:nth-of-type(6) {
    left: 60%;
    -webkit-animation-delay: 6s, 2s;
    animation-delay: 6s, 2s
}

.snowflake:nth-of-type(7) {
    left: 70%;
    -webkit-animation-delay: 2.5s, 1s;
    animation-delay: 2.5s, 1s
}

.snowflake:nth-of-type(8) {
    left: 80%;
    -webkit-animation-delay: 1s, 0s;
    animation-delay: 1s, 0s
}

.snowflake:nth-of-type(9) {
    left: 90%;
    -webkit-animation-delay: 3s, 1.5s;
    animation-delay: 3s, 1.5s
}

.mobile-notifications-popover{
    z-index:9999 !important;
    top: 50px !important;
}

.container-mobile > .mud-container {
    padding: 0;
}

.mobile-settings-nav {
    text-align: center;
}

.mobile-settings-nav .mud-nav-link > .mud-nav-link-text {
    text-align: center;
}

.mobile-settings-nav button.mud-nav-link:first-of-type > .mud-nav-link-text {
    font-size: 1.5rem;
    color: #ADA8B6 !important;
    margin-right: 0 !important;
}

.mobile-settings-nav .mud-nav-link > .mud-nav-link-text {
    text-align: center;
    margin-right: 48px;
    color: #ADA8B6;
    font-size: 1.1rem;
}

.mobile-settings-nav .mud-nav-item.mobile-active > .mud-nav-link > .mud-nav-link-text {
    color: #0071c1 !important;
}

.pick-button{
    border-radius:100px;
}

.team-wordmark {
    --stroke-pos: 1px;
    --stroke-neg: -1px;
    --stroke-color: rgb(255, 255, 255);
    filter: drop-shadow(var(--stroke-pos) 0 0 var(--stroke-color))
    drop-shadow(var(--stroke-neg) 0 var(--stroke-color))
    drop-shadow(0 var(--stroke-pos) 0 var(--stroke-color))
    drop-shadow(0 var(--stroke-neg) 0 var(--stroke-color))
    drop-shadow(var(--stroke-pos) var(--stroke-pos) 0 var(--stroke-color))
    drop-shadow(var(--stroke-pos) var(--stroke-neg) 0 var(--stroke-color))
    drop-shadow(var(--stroke-neg) var(--stroke-pos) 0 var(--stroke-color))
    drop-shadow(var(--stroke-neg) var(--stroke-neg) 0 var(--stroke-color));
}

.team-wordmark-small {
    -webkit-filter: drop-shadow(2px 1px 0 white)
    drop-shadow(-1px -1px 0 white);
    filter: drop-shadow(2px 1px 0 white)
    drop-shadow(-1px -1px 0 white);
}

.icon-shadow{
    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}

.hide-section {
    display: none;
}

.show-section {
    display: block;
}

.mobile-settings-view{
    overflow-y:auto;
    overflow-x:hidden;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.mobile-settings-view::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.mobile-settings-view {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.text-error{
    color: #d32f2f;
}

.text-success{
    color: #388e3c;
}

.pickLeagueUserTable{
    min-width: 100%;
}

.paper-rounded {
    border-radius: 50px !important;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: #0e253b;
}

@media (max-width: 768px) { /* Adjust for smaller screens */
    .paper-rounded {
        border-radius: 30px !important; /* Smaller border-radius for smaller screens */
    }
}

@media (max-width: 480px) { /* Further adjustment for extra small screens */
    .paper-rounded {
        border-radius: 15px !important; /* Even smaller border-radius for extra small screens */
    }
}

/* Full-screen loading background */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: #0a1826;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* Rotating pickem logo */
.pickemlogo {
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite;
}

/* Spin animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulse animation for live indicators */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in animation */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* MudBlazor component overrides for professional look */
.mud-drawer {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mud-drawer-content {
    overflow-y: auto;
    overflow-x: hidden;
}

.mud-drawer-content::-webkit-scrollbar {
    width: 6px;
}

.mud-drawer-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.mud-drawer-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.mud-drawer-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mud-appbar {
    transition: all 0.3s ease;
}

.mud-nav-link {
    position: relative;
    overflow: hidden;
}

.mud-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--light-blue);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mud-nav-link-active::before,
.mud-nav-link:hover::before {
    transform: translateX(0);
}

.mud-nav-link-active {
    background: rgba(255, 255, 255, 0.05) !important;
}

.mud-card {
    animation: fadeIn 0.3s ease;
}

.mud-chip {
    transition: all 0.3s ease;
}

.mud-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mud-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mud-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mud-button:active::after {
    width: 300px;
    height: 300px;
}

/* Scrollbar styling for modern look */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Professional focus states */
*:focus-visible {
    outline: 2px solid var(--light-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth transitions for interactive elements */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Modern selection styling */
::selection {
    background: var(--accent-blue);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--accent-blue);
    color: var(--text-primary);
}

.icon-no-hover:hover{
    background-color: unset !important;
    color: unset !important;
}

/* User Pill Styles */
.user-pill-menu {
    padding: 8px 0;
}

.user-pill-button{
    border-color: var(--accent-blue);
    margin: 8px 0;
}

.user-pill-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

.user-pill-menu .mud-menu-popover {
    margin-top: 8px;
}

/* Enhanced Leaderboard and UI Improvements */
.current-user-card {
    position: relative;
    overflow: hidden;
}

.current-user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.8s ease-in-out;
    z-index: 1;
}

.current-user-card:hover::before {
    left: 100%;
}

.team-logo-enhanced {
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-logo-enhanced:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.award-badge {
    transition: all 0.2s ease;
}

.award-badge:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

/* Scrollbar Enhancements */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, rgba(74, 113, 153, 0.6), rgba(45, 84, 120, 0.8));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, rgba(74, 113, 153, 0.8), rgba(45, 84, 120, 1));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.1);
}

/* Enhanced Glass Effect */
.glass-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
    }
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out forwards;
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Enhanced Mobile Menu Items */
.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(4px);
}

/* Performance Chips Enhancement */
.mud-chip {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mud-chip:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* Loading State Enhancements */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.15) 37%, rgba(255, 255, 255, 0.05) 63%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Enhanced Typography */
.mud-typography-h5, .mud-typography-h6 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mud-typography-caption {
    letter-spacing: 0.025em;
}

/* Enhanced Focus States */
.mud-button-root:focus,
.mud-icon-button:focus,
.mud-switch:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    .award-badge:hover {
        transform: scale(1.05);
    }
    
    .team-logo-enhanced:hover {
        transform: scale(1.02);
    }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    .glass-card {
        border-color: rgba(255, 255, 255, 0.08);
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(145deg, rgba(74, 113, 153, 0.8), rgba(45, 84, 120, 1));
    }
}

/* Hide default Blazor error UI */
#blazor-error-ui {
    display: none !important;
}

/* Custom Blazor Reconnection Modal - Hidden by default */
#components-reconnect-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
}

/* Show modal when Blazor adds connection state classes */
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Extra specificity for mobile browsers */
body #components-reconnect-modal:not(.components-reconnect-show):not(.components-reconnect-failed):not(.components-reconnect-rejected) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Mobile-specific fixes */
@media screen and (max-width: 768px) {
    #components-reconnect-modal {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        visibility: hidden !important;
        opacity: 0 !important;
        z-index: 999999 !important;
    }
    
    #components-reconnect-modal.components-reconnect-show,
    #components-reconnect-modal.components-reconnect-failed,
    #components-reconnect-modal.components-reconnect-rejected {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

#components-reconnect-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

#components-reconnect-modal .modal-dialog {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

#components-reconnect-modal .modal-content {
    background: linear-gradient(145deg, rgba(14, 37, 59, 0.95), rgba(26, 58, 82, 0.95));
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    color: var(--text-primary);
    max-width: 400px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#components-reconnect-modal .connection-icon {
    margin-bottom: 16px;
    color: #f59e0b;
}

#components-reconnect-modal h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

#components-reconnect-modal .subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

#components-reconnect-modal .reconnect-attempts > div {
    display: none;
}

/* Show appropriate section based on Blazor's CSS classes */
#components-reconnect-modal.components-reconnect-show .show-section {
    display: block;
}

#components-reconnect-modal.components-reconnect-failed .failed-section {
    display: block;
}

#components-reconnect-modal.components-reconnect-rejected .rejected-section {
    display: block;
}

#components-reconnect-modal .spinner-container {
    margin-bottom: 16px;
}

#components-reconnect-modal .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #4a7199;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

#components-reconnect-modal .refresh-button {
    background: linear-gradient(135deg, #1a3a52 0%, #2d5478 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

#components-reconnect-modal .refresh-button:hover {
    background: linear-gradient(135deg, #2d5478 0%, #4a7199 100%);
    transform: translateY(-1px);
}

#components-reconnect-modal .reconnect-attempts p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Analytics Keyframes */
@keyframes winner-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.5); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}