html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    background-color: #f8f9fa;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.content {
    padding-top: 2rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-title a {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 600;
}

.card-title a:hover {
    text-decoration: underline;
}

.nav-link {
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.btn-link {
    text-decoration: none;
}

/* Ensure the main container is centered and has consistent width */
main .container {
    max-width: 960px;
}

/* Blazor Server reconnect modal — uses Blazor's built-in class names */
#components-reconnect-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

#components-reconnect-modal .reconnecting-ring {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: blazor-reconnect-spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes blazor-reconnect-spin {
    to { transform: rotate(360deg); }
}

#components-reconnect-modal.components-reconnect-failed .reconnecting-ring,
#components-reconnect-modal.components-reconnect-rejected .reconnecting-ring {
    display: none;
}
