/* =========================
   THEME (clair, lisible)
========================= */
:root {
    --bg: #f6f8ff;
    --card: rgba(255, 255, 255, .85);
    --card2: rgba(255, 255, 255, .95);
    --stroke: rgba(15, 23, 42, .10);

    --text: #0f172a;
    --muted: rgba(15, 23, 42, .65);
    --muted2: rgba(15, 23, 42, .50);

    --brand: #2563eb;
    --brand2: #7c3aed;
    --ok: #16a34a;
    --danger: #ef4444;

    --shadow: 0 18px 50px rgba(2, 6, 23, .12);
    --shadow2: 0 10px 24px rgba(2, 6, 23, .10);
    --radius: 18px;
}

body {
    background:
        radial-gradient(900px 500px at 10% 10%, rgba(37, 99, 235, .25), transparent 60%),
        radial-gradient(800px 450px at 90% 20%, rgba(124, 58, 237, .22), transparent 60%),
        radial-gradient(700px 500px at 50% 100%, rgba(14, 165, 233, .18), transparent 60%),
        linear-gradient(180deg, #f6f8ff 0%, #f8fafc 100%);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
    font-family: 'Inter', system-ui, sans-serif;
    /* Assumed font or default */
    min-height: 100vh;
}

/* GLOBAL BOLD LABELS (User Request) */
label,
.form-label {
    font-weight: bold !important;
}

/* =========================
   TOPBAR (glass)
========================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    /* Boost z-index for Bootstrap overlap */
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .70);
    border-bottom: 1px solid var(--stroke);
}

.topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.brand__logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .14);
    box-shadow: var(--shadow2);
    overflow: hidden;
}

.brand__logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.brand__title {
    font-weight: 900;
    letter-spacing: .2px;
    line-height: 1.1;
    display: block;
}

.brand__subtitle {
    display: block;
    font-size: .9rem;
    color: var(--muted);
    margin-top: 1px;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--text);
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--stroke);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    text-decoration: none;
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow2);
    border-color: rgba(37, 99, 235, .20);
    color: var(--brand);
}

.icon-btn--danger {
    color: #b91c1c;
    /* Keep subtle red base */
}

.icon-btn--danger:hover {
    border-color: rgba(239, 68, 68, .25);
    color: #ef4444;
}

/* =========================
   PAGE LAYOUT
========================= */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 18px 18px;
    min-height: calc(100vh - 180px);
    /* Fill space */
}

/* =========================
   HERO & DASHBOARD COMPONENTS
========================= */
.hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
    align-items: stretch;
    margin-top: 8px;
    margin-bottom: 30px;
}

.hero__title {
    font-size: clamp(1.5rem, 2.4vw, 2.15rem);
    margin: 0;
    font-weight: 950;
    letter-spacing: .2px;
}

.hero__name {
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
    max-width: 56ch;
}

.quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.quick__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--stroke);
    color: rgba(15, 23, 42, .82);
    box-shadow: var(--shadow2);
    font-weight: 700;
    font-size: .9rem;
}

/* Notice Cards */
.notice {
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.notice::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(500px 160px at 20% 0%, rgba(37, 99, 235, .18), transparent 60%);
    opacity: .9;
    pointer-events: none;
}

.notice__left {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.notice__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    box-shadow: 0 0 0 6px rgba(37, 99, 235, .12);
    flex: 0 0 auto;
}

.notice__dot--ok {
    background: linear-gradient(90deg, var(--ok), #22c55e);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .12);
}

.notice__title {
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2px;
}

.notice__desc {
    color: var(--muted);
    font-size: .95rem;
}

.notice__cta {
    border-radius: 999px !important;
    padding: 8px 14px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.badge-soft {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .20);
    color: rgba(15, 23, 42, .85);
    font-weight: 800;
}

/* Grid & Cards */
.grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dash-card {
    position: relative;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow2);
    padding: 16px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    gap: 14px;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dash-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, .22);
}

.dash-card:active {
    transform: translateY(-2px) scale(.99);
}

.dash-card__glow {
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(420px 180px at 20% 0%, rgba(37, 99, 235, .22), transparent 60%),
        radial-gradient(380px 160px at 90% 30%, rgba(124, 58, 237, .14), transparent 60%);
    opacity: .55;
    filter: blur(8px);
    z-index: 0;
    transform: translateX(-10px);
    transition: opacity .25s ease, transform .25s ease;
}

.dash-card:hover .dash-card__glow {
    opacity: .8;
    transform: translateX(0);
}

.dash-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, .10);
    border: 1px solid rgba(37, 99, 235, .16);
    flex: 0 0 auto;
    z-index: 1;
}

.dash-card__icon i {
    font-size: 1.15rem;
    color: rgba(15, 23, 42, .85);
}

.dash-card__body {
    z-index: 1;
    min-width: 0;
}

.dash-card__title {
    font-weight: 950;
    letter-spacing: .2px;
    margin-bottom: 2px;
}

.dash-card__subtitle {
    color: var(--muted);
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-card__meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.pill {
    font-size: .82rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .12);
    background: rgba(15, 23, 42, .05);
    color: rgba(15, 23, 42, .70);
    font-weight: 800;
    white-space: nowrap;
}

.pill--accent {
    background: rgba(37, 99, 235, .12);
    border-color: rgba(37, 99, 235, .22);
    color: rgba(15, 23, 42, .86);
}

.chev {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 23, 42, .10);
    background: rgba(15, 23, 42, .05);
    transition: transform .18s ease;
}

.dash-card:hover .chev {
    transform: translateX(2px);
}

.chev i {
    font-size: .95rem;
    color: rgba(15, 23, 42, .70);
}

/* Animations */
.reveal,
.card-reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: reveal .6s ease forwards;
    animation-delay: var(--d, 0s);
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .card-reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .dash-card,
    .icon-btn,
    .chev,
    .dash-card__glow {
        transition: none;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .dash-card {
        padding: 14px;
    }

    .dash-card__subtitle {
        white-space: normal;
    }
}

/* =========================
   FOOTER
========================= */
.footer {
    margin-top: auto;
    padding: 40px 0 30px;
    text-align: center;
    border-top: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .5) 100%);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer__logo {
    height: 24px;
    width: auto;
    opacity: .4;
    transition: opacity .2s ease;
    mix-blend-mode: multiply;
}

.footer__logo:hover {
    opacity: .8;
}

.footer__text {
    font-size: .85rem;
    color: var(--muted2);
    font-weight: 500;
    margin: 0;
}