html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* STILE PER LA MODALE DI DISCONNESSIONE FISICA (JS) */
#physical-offline-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f5f5f5;
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

/* STILE PER LA DISCONNESSIONE SIGNALR BLAZOR (TOAST NON BLOCCANTE) */
#components-reconnect-modal {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}
#components-reconnect-modal.components-reconnect-show {
    display: block;
}
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: none; /* Auto-reload gestito da JS */
}

.signalr-toast {
    background-color: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
}

.spinner {
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

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

.offline-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    text-align: center;
    max-width: 320px;
}

.offline-icon {
    width: 64px;
    height: 64px;
    fill: #f44336;
    margin-bottom: 1rem;
}

.offline-container h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.offline-container p {
    color: #666;
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
}

.offline-container button {
    background-color: #0284c7;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}

@media (display-mode: standalone) {
    .hide-if-pwa { display: none !important; }
}
