/* Superspora Theme Overrides */

/* Light Mode Card Hover Effect */
.mud-theme-light .mud-card:hover {
    background-color: #E6F4FA !important;
    transition: background-color 0.3s ease;
}

/* Dark Mode Card Hover Effect */
.mud-theme-dark .mud-card:hover {
    background-color: #253340 !important;
    transition: background-color 0.3s ease;
}

/* Light Mode Button Hover */
.mud-theme-light .mud-button-filled-primary:hover {
    background-color: #005C83 !important;
}

/* Dark Mode Button Hover */
.mud-theme-dark .mud-button-filled-primary:hover {
    background-color: #2490C8 !important;
}

/* Light Mode Sidebar Active Link */
.mud-theme-light .mud-nav-link.active {
    background-color: rgba(42, 168, 224, 0.1) !important;
    color: #2AA8E0 !important;
}

/* Dark Mode Sidebar Active Link */
.mud-theme-dark .mud-nav-link.active {
    background-color: rgba(42, 168, 224, 0.15) !important;
    color: #2AA8E0 !important;
}

/* Light Mode Sidebar Hover */
.mud-theme-light .mud-nav-link:hover {
    background-color: rgba(42, 168, 224, 0.05) !important;
}

/* Dark Mode Sidebar Hover */
.mud-theme-dark .mud-nav-link:hover {
    background-color: rgba(42, 168, 224, 0.1) !important;
}

/* AppBar scroll effect (darker on scroll) */
.mud-theme-light .mud-appbar.scrolled {
    background-color: #005C83 !important;
}

/* Card borders */
.mud-theme-light .mud-card {
    border: 1px solid #E0E6EB;
}

.mud-theme-dark .mud-card {
    border: 1px solid #2E3A46;
}

/* Secondary buttons light mode */
.mud-theme-light .mud-button-outlined-primary {
    background-color: #FFFFFF !important;
    border-color: #2AA8E0 !important;
    color: #2AA8E0 !important;
}

.mud-theme-light .mud-button-outlined-primary:hover {
    background-color: #E6F4FA !important;
}

/* Secondary buttons dark mode */
.mud-theme-dark .mud-button-outlined-primary {
    background-color: transparent !important;
    border-color: #2AA8E0 !important;
    color: #2AA8E0 !important;
}

.mud-theme-dark .mud-button-outlined-primary:hover {
    background-color: rgba(42, 168, 224, 0.1) !important;
}

/* Alert styles */
.mud-theme-light .mud-alert-filled-warning,
.mud-theme-dark .mud-alert-filled-warning {
    background-color: #F44C26 !important;
    color: #FFFFFF !important;
}

.mud-theme-light .mud-alert-filled-info,
.mud-theme-dark .mud-alert-filled-info {
    background-color: #2AA8E0 !important;
    color: #FFFFFF !important;
}

/* Drawer styles */
.mud-theme-light .mud-drawer {
    background-color: #FFFFFF !important;
    border-right: 1px solid #E0E6EB !important;
}

.mud-theme-dark .mud-drawer {
    background-color: #0F141A !important;
    border-right: 1px solid #2E3A46 !important;
}

/* Text colors for drawer */
.mud-theme-light .mud-drawer .mud-nav-link {
    color: #1C1C1C !important;
}

.mud-theme-dark .mud-drawer .mud-nav-link {
    color: #A0A9B4 !important;
}

.mud-theme-dark .mud-drawer .mud-nav-link.active {
    color: #2AA8E0 !important;
}

/* Blazor Reconnection UI */
#components-reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#components-reconnect-modal.components-reconnect-hide {
    display: none;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

.components-reconnect-modal-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.components-reconnect-modal-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
}

.mud-theme-dark .components-reconnect-modal-content {
    background-color: #1C2329;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.components-reconnect-message {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: #1C1C1C;
}

.mud-theme-dark .components-reconnect-message {
    color: #E0E6EB;
}

.components-reconnect-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E0E6EB;
    border-top-color: #2AA8E0;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

.mud-theme-dark .components-reconnect-spinner {
    border-color: #2E3A46;
    border-top-color: #2AA8E0;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

#components-reconnect-modal.components-reconnect-failed .components-reconnect-message::after {
    content: " Failed.";
    color: #F44C26;
}

#components-reconnect-modal.components-reconnect-rejected .components-reconnect-message::after {
    content: " Rejected.";
    color: #F44C26;
}
