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

/* Brand wordmark */
.daleel-wordmark {
    font-weight: 700;
    letter-spacing: .2px;
}

/* Ask hero — Google-style search focus */
.daleel-hero {
    text-align: center;
    padding: clamp(1.5rem, 6vh, 5rem) 0 1.5rem;
}

.daleel-hero .daleel-logo {
    font-size: clamp(2.6rem, 7vw, 4rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(90deg, var(--mud-palette-primary), var(--mud-palette-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Streaming progress log */
.daleel-log {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: .8rem;
    max-height: 220px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.daleel-log .log-line {
    opacity: 0;
    animation: log-in .25s ease forwards;
}

@keyframes log-in {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Markdown-ish report body */
.daleel-report {
    line-height: 1.7;
    font-size: 1.02rem;
}

.daleel-report p { margin: 0 0 .9rem; }

/* Cards lift on hover for a polished feel */
.daleel-card {
    transition: transform .15s ease, box-shadow .15s ease;
}
.daleel-card:hover {
    transform: translateY(-2px);
}

/* Blazor framework error toast */
#blazor-error-ui {
    color-scheme: light dark;
    background: #b32121;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1100;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}
.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* SafeImage — external images are blurred until the user reveals them (HaramBlur-style). */
.safe-image-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    min-height: 120px;
    min-width: 120px;
}
.safe-image-blur {
    filter: blur(20px);
    transform: scale(1.1); /* hide the soft blurred edges */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.safe-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.45);
    text-align: center;
    padding: 8px;
}
