/*
 * DOGLI panels — the public site's look for both Filament panels (release 2; docs/RELEASE2_BUILDER_GUIDE.md §1).
 * Plain, committed CSS: no Tailwind build, no Vite, no Filament theme (ARCHITECTURE D10). Only Filament's own `fi-*` classes and
 * the `dogli-*` classes of our views are targeted, with Filament's colour variables (--primary-*, --gray-*), which PanelTheme
 * sets from the site palette (cobalt blue #2563eb, Tailwind v3 slate).
 *
 * Source: resources/css/dogli-panels.css, registered with FilamentAsset in AppServiceProvider. `php artisan filament:assets`
 * copies it to public/filament-assets/css/app/dogli-panels.css, which is committed and uploaded as is (the two files are
 * identical; PanelThemeTest checks it). Edit the source, run filament:assets (or copy), commit both.
 */

/* ---------- typography: Cairo (Google Fonts, as on the site) with a local fallback stack ---------- */
html.fi {
    --font-family: Cairo, Tajawal, "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", Arial;
}
.fi-body {
    font-feature-settings: "tnum" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.fi-ta-text, .fi-in-text { overflow-wrap: anywhere; }

/* ---------- page background: the site's clean white with a soft blue glow ---------- */
.fi-body {
    background-color: var(--gray-50);
    background-image:
        radial-gradient(60rem 30rem at 100% -10%, rgba(37, 99, 235, 0.07), transparent 60%),
        radial-gradient(40rem 24rem at 0% 110%, rgba(96, 165, 250, 0.08), transparent 60%);
    background-attachment: fixed;
}

/* ---------- top bar and sidebar ---------- */
.fi-topbar {
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}
.fi-sidebar-header {
    border-bottom: 1px solid var(--gray-200);
}
.fi-sidebar-group-label {
    color: var(--gray-500);
    font-weight: 700;
    letter-spacing: 0;
}
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: var(--primary-50);
    box-shadow: inset -3px 0 0 var(--primary-600);
}
[dir="ltr"] .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    box-shadow: inset 3px 0 0 var(--primary-600);
}
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label {
    color: var(--primary-700);
    font-weight: 700;
}
.fi-logo img { border: 2px solid var(--primary-200); }

/* ---------- cards ---------- */
.fi-section, .fi-wi-stats-overview-stat {
    border-radius: 1rem;
}
.fi-wi-stats-overview-stat {
    border-top: 3px solid var(--primary-500);
}
.fi-wi-stats-overview-stat-value { color: var(--gray-900); }

/* ---------- sign-in / password reset / registration: the conference identity ---------- */
.fi-simple-layout {
    background-color: #ffffff;
    background-image:
        radial-gradient(48rem 28rem at 85% -5%, rgba(37, 99, 235, 0.12), transparent 60%),
        radial-gradient(40rem 26rem at 5% 105%, rgba(96, 165, 250, 0.14), transparent 60%);
}
.fi-simple-main {
    border-radius: 1.25rem;
    border-top: 4px solid var(--primary-600);
    box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(37, 99, 235, 0.08);
}
.fi-simple-header-heading { color: var(--gray-900); }
.dogli-login-identity {
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    text-align: center;
}
.dogli-login-identity__tagline {
    margin: 0;
    color: var(--primary-800);
    font-weight: 700;
    font-size: 0.95rem;
}
.dogli-login-identity__date {
    margin: 0.25rem 0 0;
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* ---------- dashboard: welcome card ---------- */
.dogli-welcome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.dogli-welcome__heading {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
}
.dogli-welcome__conference {
    margin: 0.25rem 0 0;
    font-weight: 700;
    color: var(--primary-700);
}
.dogli-welcome__meta {
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ---------- dashboard: site sections ---------- */
.dogli-site-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.75rem;
}
.dogli-site-section {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
}
.dogli-site-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}
.dogli-site-section__group { font-weight: 700; color: var(--gray-900); }
.dogli-site-section__page {
    font-size: 0.75rem;
    color: var(--primary-600);
    text-decoration: none;
    white-space: nowrap;
}
.dogli-site-section__page:hover { text-decoration: underline; }
.dogli-site-section__models {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--gray-700);
}
.dogli-site-section__models li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.125rem 0;
}
.dogli-site-section__models a { color: var(--primary-700); font-weight: 600; text-decoration: none; }
.dogli-site-section__models a:hover { text-decoration: underline; }
.dogli-site-section__count { color: var(--gray-500); white-space: nowrap; }
.dogli-site-section__status {
    margin: 0 0 0.375rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
    overflow-wrap: anywhere;
}

/* ---------- top bar "view site" ---------- */
.dogli-view-site { white-space: nowrap; }

/*
 * The PREVIEW / LOCAL / break-glass bars (AdminPanelProvider::banners(), PortalPanelProvider::banners()) carry their own inline
 * styles and must stay exactly as they are: they are the only signal that a page runs on the staging DB. Do not restyle them.
 */

/* ---------- expired old /staff link (request page) ---------- */
.dogli-expired-link {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-weight: 700;
    text-align: center;
}
