/* ==========================================================================
   Uygulama açılış ekranı ve Blazor altyapı bildirimleri.
   Görsel dil loomix.css'te; burada yalnızca MudBlazor yüklenmeden önce
   veya çerçeve hata verdiğinde görünen öğeler bulunur.
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #f1f5f9;
    color: #0f172a;
}

/* Açılış ekranı */
#app > .lx-splash {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: linear-gradient(160deg, #0f2744 0%, #0c4a6e 100%);
    color: #fff;
    text-align: center;
    padding: 1.5rem;
}

.lx-splash-brand {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lx-splash-hint {
    font-size: 0.875rem;
    opacity: 0.75;
}

.lx-splash-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #22d3ee;
    border-radius: 50%;
    animation: lx-spin 0.9s linear infinite;
}

@keyframes lx-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .lx-splash-spinner {
        animation-duration: 2s;
    }
}

/* Yükleme hatası bildirimi */
#blazor-error-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    display: none;
    padding: 0.875rem 1.25rem;
    background: #fef3c7;
    color: #713f12;
    border-top: 1px solid #fcd34d;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
    font-size: 0.875rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
}

#blazor-error-ui .reload {
    color: #713f12;
    font-weight: 600;
    text-decoration: underline;
}

.blazor-error-boundary {
    background: #fee2e2;
    color: #7f1d1d;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #fecaca;
}

.blazor-error-boundary::after {
    content: "Bu bölüm yüklenirken bir hata oluştu.";
}
