/* ===========================================================================
   UroGen IC — shared brand styles
   Used by the login, landing/module directory, and the shared _Layout shell.
   Plain CSS (no Razor), so @keyframes / @media need no escaping here.
   Palette: navy #1e2a38 · blue #4a6c8f · gold #d9a441
   =========================================================================== */

/* Tailwind Preflight is disabled (to protect Bootstrap/DevExtreme on BSF pages),
   so restore the one base rule the brand layouts depend on. border-box is what
   Bootstrap + DevExtreme already assume, so this is safe everywhere. */
*, *::before, *::after { box-sizing: border-box; }

/* Hide scrollbars (matches the New Design templates) */
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

body {
    font-family: 'Manrope', sans-serif;
    background-color: #f0f3f7;
}

.portal-title { font-family: 'Sora', sans-serif; }

/* --- Page background ----------------------------------------------------- */
.page-bg {
    background-color: #f0f3f7;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(74,108,143,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(217,164,65,0.03) 0%, transparent 60%);
}

.watermark-grid {
    background-image:
        linear-gradient(rgba(74,108,143,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,108,143,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- Glass card ---------------------------------------------------------- */
.glass-card {
    background: linear-gradient(160deg, rgba(232,240,248,0.92) 0%, rgba(255,253,235,0.88) 100%);
    border: 2px solid rgba(255,255,255,0.95);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 1px 3px rgba(30,42,56,0.06),
        0 4px 16px rgba(74,108,143,0.07);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}

.glass-card:hover {
    border-color: rgba(74,108,143,0.25);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 2px 8px rgba(30,42,56,0.08),
        0 8px 32px rgba(74,108,143,0.12);
    transform: translateY(-2px);
}

.glass-card:hover .card-accent-bar { background: #d9a441; width: 48px; }

.card-accent-bar {
    height: 3px;
    width: 32px;
    background: #4a6c8f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Misc shared --------------------------------------------------------- */
.divider-line {
    background: linear-gradient(90deg, transparent, rgba(74,108,143,0.15), transparent);
    height: 1px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #d9a441;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(217,164,65,0.25);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.55s cubic-bezier(0.4, 0, 0.2, 1) both; }
.animate-delay-1 { animation-delay: 0.08s; }
.animate-delay-2 { animation-delay: 0.16s; }
.animate-delay-3 { animation-delay: 0.24s; }

/* --- Shell: header ------------------------------------------------------- */
.header-divider {
    background: linear-gradient(90deg, transparent, rgba(74,108,143,0.2), transparent);
    height: 1px;
}

.menu-btn {
    border: 1.5px solid rgba(74,108,143,0.3);
    transition: all 0.2s ease;
    background: transparent;
}
.menu-btn:hover { border-color: #4a6c8f; background: rgba(74,108,143,0.06); }

.badge-pill {
    background: rgba(74,108,143,0.1);
    border: 1px solid rgba(74,108,143,0.2);
    color: #4a6c8f;
    font-family: 'Manrope', sans-serif;
}

/* --- Module directory (bento grid) --------------------------------------- */
.icon-container {
    background: linear-gradient(135deg, rgba(74,108,143,0.1) 0%, rgba(74,108,143,0.05) 100%);
    border: 1px solid rgba(74,108,143,0.15);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .bento-grid { grid-template-columns: 1fr; } }

.svg-icon-wrap svg { display: block; }

.card-hover-arrow {
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s ease;
}
.glass-card:hover .card-hover-arrow { opacity: 1; transform: translateX(0); }

/* A "coming soon" tile is non-interactive and slightly muted */
.module-tile.is-disabled { cursor: default; opacity: 0.72; }
.module-tile.is-disabled:hover { transform: none; }
