@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* OmniTech Health Brand Typography - Validated for Blazorise 1.8.1 */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    letter-spacing: normal;
}

/* Headers: Bold */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    line-height: 1.4;
}

/* Body: Regular (default) */
body {
    font-weight: 400;
    line-height: 1.5;
}

/* Captions: Light */
small, .small, caption {
    font-weight: 300;
    line-height: 1.6;
}

/* Brand color for links */
a, .btn-link {
    color: #1A2D3B;
}

a:hover, .btn-link:hover {
    color: #3C6E91;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Blazor Reconnection Modal */
#components-reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(26, 45, 59, 0.85);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}

#components-reconnect-modal.components-reconnect-show {
    display: flex !important;
    opacity: 1;
}

#components-reconnect-modal.components-reconnect-hide {
    display: none !important;
    opacity: 0;
}

#components-reconnect-modal.components-reconnect-failed h4 {
    color: #DC3545 !important;
}

#components-reconnect-modal.components-reconnect-failed i::before {
    content: "\f071" !important;
    color: #FFC107 !important;
}

#components-reconnect-modal.components-reconnect-rejected i::before {
    content: "\f057" !important;
    color: #DC3545 !important;
}

/* Blazor Error UI - Professional Banner */
#blazor-error-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 9998;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

#blazor-error-ui .error-content {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
}

#blazor-error-ui .error-icon {
    flex-shrink: 0;
    font-size: 2rem;
    color: #1A2D3B;
}

#blazor-error-ui .error-message {
    flex-grow: 1;
    color: #1A2D3B;
}

#blazor-error-ui .error-message strong {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

#blazor-error-ui .error-message p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.9;
}

#blazor-error-ui .error-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

#blazor-error-ui .btn-reload {
    background: #1A2D3B;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#blazor-error-ui .btn-reload:hover {
    background: #0f1a23;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#blazor-error-ui .btn-dismiss {
    background: rgba(26, 45, 59, 0.1);
    color: #1A2D3B;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.125rem;
}

#blazor-error-ui .btn-dismiss:hover {
    background: rgba(26, 45, 59, 0.2);
}

@media (max-width: 768px) {
    #blazor-error-ui .error-content {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    #blazor-error-ui .error-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .components-reconnect-content {
        padding: 2rem 1.5rem;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }
}


