/* ============================================================
   Fastamsik — FM25 Dashboard & Auth rebrand (2026 look)
   Green & Gold brand system. Loaded LAST → wins the cascade.
   Purely presentational: no markup contracts, no JS, no APIs.
   ============================================================ */

:root {
    --fstk-green-950: #0b2e1c;
    --fstk-green-900: #123f27;
    --fstk-green-800: #15512f;
    --fstk-green-700: #1b5e3a;
    --fstk-green-600: #1e6b42;
    --fstk-green-100: #e7f0ea;
    --fstk-gold: #c9a227;
    --fstk-gold-deep: #a8871f;
    --fstk-gold-soft: #e6d290;
    --fstk-cream: #f6f4ec;
    --fstk-paper: #f7f9f7;
    --fstk-ink: #22302a;
    --fstk-muted: #6b7a72;
    --fstk-line: rgba(27, 94, 58, 0.10);
    --fstk-shadow: 0 1px 2px rgba(18, 63, 39, .05), 0 10px 28px rgba(18, 63, 39, .07);
    --fstk-shadow-hover: 0 2px 4px rgba(18, 63, 39, .06), 0 18px 42px rgba(18, 63, 39, .13);
    --fstk-radius: 1.15rem;
    --fstk-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e6d290' stroke-opacity='0.14' stroke-width='1'%3E%3Cpath d='M28 0L56 28L28 56L0 28Z'/%3E%3Cpath d='M28 14L42 28L28 42L14 28Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============ Page canvas ============ */
body.app-content,
body.blank-page {
    background-color: var(--fstk-paper) !important;
    background-image:
        radial-gradient(1100px 480px at 50% -12%, rgba(27, 94, 58, 0.08), transparent 60%),
        radial-gradient(900px 460px at 100% 108%, rgba(201, 162, 39, 0.07), transparent 58%);
    background-attachment: fixed;
}

/* ============ Cards: soft, rounded, alive ============ */
.app-content .card,
.auth-wrapper .card {
    border: 1px solid var(--fstk-line) !important;
    border-radius: var(--fstk-radius) !important;
    box-shadow: var(--fstk-shadow) !important;
    background: #ffffff;
    transition: box-shadow .28s ease, transform .28s ease, border-color .28s ease;
}
.app-content .card:hover {
    border-color: rgba(201, 162, 39, 0.28);
}
.app-content .card .card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(27, 94, 58, 0.07);
    padding: 1rem 1.25rem;
}
.app-content .card .card-title {
    font-weight: 700 !important;
    letter-spacing: .1px;
}

/* ============ Hero banner (stats header) ============ */
.fstk-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    background: linear-gradient(130deg, var(--fstk-green-950) 0%, var(--fstk-green-800) 52%, #1e6b42 100%) !important;
    border: 1px solid rgba(201, 162, 39, 0.25) !important;
    box-shadow: 0 14px 38px rgba(11, 46, 28, .28) !important;
    color: #fff;
}
.fstk-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--fstk-star);
    background-size: 56px 56px;
    opacity: .55;
    pointer-events: none;
}
.fstk-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    inset-inline-end: -110px;
    top: -140px;
    background: radial-gradient(circle, rgba(201, 162, 39, .35), transparent 65%);
    pointer-events: none;
}
.fstk-hero .card-body {
    position: relative;
    z-index: 1;
}
.fstk-hero h4 {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    margin-bottom: .35rem;
}
.fstk-hero h4 .fstk-hero-wink {
    color: var(--fstk-gold-soft);
}
.fstk-hero .fstk-updated {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(230, 210, 144, 0.35);
    color: #f3ecd2;
    padding: .3rem .85rem;
    border-radius: 2rem;
    font-size: .8rem;
    backdrop-filter: blur(4px);
}
.fstk-hero .fstk-updated i,
.fstk-hero .fstk-updated svg {
    color: var(--fstk-gold-soft);
}

/* ============ Stat cards ============ */
.fstk-stat {
    cursor: default;
    height: 100%;
}
.fstk-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--fstk-shadow-hover) !important;
}
.fstk-stat .fstk-stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--fstk-ink);
    line-height: 1.15;
    margin-bottom: .15rem;
}
.fstk-stat .fstk-stat-label {
    color: var(--fstk-muted);
    font-size: .82rem;
    font-weight: 500;
}
.fstk-chip {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(18, 63, 39, .18);
    transition: transform .28s ease;
}
.fstk-stat:hover .fstk-chip {
    transform: scale(1.08) rotate(-3deg);
}
.fstk-chip svg,
.fstk-chip i {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 2.2 !important;
}
.fstk-chip-primary   { background: linear-gradient(135deg, #1b5e3a, #2f8557); }
.fstk-chip-info      { background: linear-gradient(135deg, #0e7490, #22a5b7); }
.fstk-chip-warning   { background: linear-gradient(135deg, #c9a227, #e0b33f); box-shadow: 0 8px 18px rgba(201, 162, 39, .28) !important; }
.fstk-chip-success   { background: linear-gradient(135deg, #15803d, #34a860); }
.fstk-chip-danger    { background: linear-gradient(135deg, #b42334, #dc5c62); }
.fstk-chip-violet    { background: linear-gradient(135deg, #5b4a9e, #7e68c4); }
.fstk-chip-slate     { background: linear-gradient(135deg, #475569, #64748b); }

/* ============ Sidebar: brand green ============ */
.main-menu {
    background: linear-gradient(180deg, #0b2e1c 0%, #123f27 46%, #103a24 100%) !important;
    border-inline-end: none !important;
    box-shadow: none !important;
}
.main-menu .navbar-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(230, 210, 144, 0.12);
}
.main-menu .navbar-header .brand-logo img,
.main-menu .navbar-header .brand-text {
    filter: brightness(1.15);
}
.main-menu .brand-text,
.main-menu .brand-logo h1 {
    color: #f3ecd2 !important;
}
.main-menu .navigation {
    background: transparent !important;
}
.main-menu .navigation .nav-item a.nav-link,
.main-menu .navigation .menu-item {
    color: #cfe0d5 !important;
    border-radius: .8rem;
    margin-inline: .6rem;
    padding: .62rem .85rem !important;
    transition: background .22s ease, color .22s ease, padding .2s ease;
}
.main-menu .navigation .nav-item a.nav-link:hover {
    background: rgba(230, 210, 144, 0.10) !important;
    color: #ffffff !important;
}
.main-menu .navigation .nav-item a.nav-link .menu-sub-label,
.main-menu .navigation .nav-item a .menu-item-text {
    color: inherit !important;
}
.main-menu .navigation .nav-item .menu-title {
    color: rgba(230, 210, 144, 0.65) !important;
    font-size: .72rem !important;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin: 1rem .9rem .4rem;
}
.main-menu .navigation .nav-item a.nav-link.active,
.main-menu .navigation .nav-item.active > a.nav-link,
.main-menu .navigation .nav-item.active > a {
    background: linear-gradient(120deg, rgba(201, 162, 39, 0.92), rgba(230, 210, 144, 0.85)) !important;
    color: #10281a !important;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(201, 162, 39, .30);
}
.main-menu .navigation .nav-item a.nav-link.active svg,
.main-menu .navigation .nav-item a.nav-link.active i,
.main-menu .navigation .nav-item.active > a svg,
.main-menu .navigation .nav-item.active > a i {
    color: #10281a !important;
    stroke: #10281a !important;
}
.main-menu .navigation .nav-item a.nav-link svg,
.main-menu .navigation .nav-item a.nav-link i {
    color: #9fc3ab !important;
    stroke: #9fc3ab !important;
}
.main-menu .navigation .nav-item a.nav-link.active ~ .menu-content a,
.main-menu .menu-content a {
    color: #cfe0d5 !important;
}
.main-menu .ps__rail-y,
.main-menu .ps__thumb-y {
    width: 4px !important;
}
.main-menu .ps__thumb-y {
    background: rgba(230, 210, 144, 0.45) !important;
}
/* Menu badges (counts) */
.main-menu .navigation .badge {
    background: rgba(230, 210, 144, 0.9) !important;
    color: #10281a !important;
    font-weight: 700;
}

/* Collapsed (menu-collapsed) brand: keep deep green */
body.menu-collapsed .main-menu {
    background: linear-gradient(180deg, #0b2e1c 0%, #123f27 100%) !important;
}

/* ============ Navbar: floating glass ============ */
.header-navbar.navbar-floating {
    padding-inline-start: 0 !important;
}
.header-navbar.navbar .navbar-container {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(27, 94, 58, 0.08);
    border-radius: 1.1rem;
    box-shadow: 0 6px 22px rgba(18, 63, 39, .08) !important;
}
.header-navbar .nav-link {
    border-radius: .7rem;
}
.header-navbar .dropdown-language .selected-language {
    font-weight: 600;
}

/* ============ Tables ============ */
.app-content .table {
    margin-bottom: 0;
}
.app-content .table th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--fstk-green-700) !important;
    font-weight: 700;
    border-bottom: 1px solid var(--fstk-line);
    background: rgba(27, 94, 58, 0.035);
    padding: .8rem 1rem !important;
}
.app-content .table td {
    border-color: rgba(27, 94, 58, 0.07);
    padding: .75rem 1rem !important;
    vertical-align: middle;
}
.app-content .table tbody tr {
    transition: background .2s ease;
}
.app-content .table tbody tr:hover {
    background: rgba(27, 94, 58, 0.045);
}

/* ============ Badges ============ */
.app-content .badge.bg-light-primary {
    background: rgba(27, 94, 58, 0.10) !important;
    color: var(--fstk-green-700) !important;
    border: 1px solid rgba(27, 94, 58, 0.15);
    border-radius: 2rem;
    padding: .35rem .8rem;
    font-weight: 600;
}

/* ============ Footer ============ */
.fstk-footer {
    background: transparent !important;
    box-shadow: none !important;
    padding: 1rem 1.4rem;
}
.fstk-footer .fstk-footer-brand {
    color: var(--fstk-green-700);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .2px;
    padding-bottom: 1px;
    border-bottom: 2px solid var(--fstk-gold);
}
.fstk-footer .fstk-footer-brand:hover {
    color: var(--fstk-gold-deep);
}

/* ============ Buttons & misc ============ */
.app-content .btn-primary,
.auth-wrapper .btn-primary {
    background: linear-gradient(120deg, var(--fstk-green-700), var(--fstk-green-600)) !important;
    border-color: var(--fstk-green-700) !important;
    border-radius: .85rem;
    box-shadow: 0 8px 18px rgba(27, 94, 58, .25);
}
.app-content .btn-primary:hover,
.auth-wrapper .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(27, 94, 58, .32);
}
.btn-scroll-top,
.btn.scroll-top {
    background: var(--fstk-gold) !important;
    border-color: var(--fstk-gold) !important;
}

/* ============ Charts cards ============ */
.app-content .card canvas {
    padding: .5rem;
}

/* ============ Content overview tiles ============ */
.app-content .border.rounded.p-1 {
    border: 1px solid var(--fstk-line) !important;
    border-radius: .9rem !important;
    padding: .8rem !important;
    background: rgba(27, 94, 58, 0.03);
    transition: background .22s ease;
}
.app-content .border.rounded.p-1:hover {
    background: rgba(201, 162, 39, 0.08);
}

/* ============ Dark layout guard ============ */
.dark-layout body,
body.dark-layout {
    background-color: #0e1a13 !important;
}
.dark-layout .app-content .card,
.dark-layout .header-navbar.navbar .navbar-container {
    background: #14261c !important;
    border-color: rgba(230, 210, 144, 0.12) !important;
}
.dark-layout .fstk-stat .fstk-stat-value {
    color: #e8efe9;
}
.dark-layout .app-content .table th {
    background: rgba(230, 210, 144, 0.06);
    color: var(--fstk-gold-soft) !important;
}

/* ============ Reciters showcase (auth pages) ============ */
.fstk-auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
    max-width: 430px;
}
@media (min-width: 992px) {
    .fstk-auth-grid {
        grid-template-columns: minmax(360px, 430px) minmax(320px, 1fr);
        max-width: 980px;
        align-items: center;
    }
}
.fstk-auth-grid .auth-inner-col {
    min-width: 0;
}
.fstk-reciters {
    display: none;
}
@media (min-width: 992px) {
    .fstk-reciters {
        display: block;
    }
}
.fstk-reciters-panel {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(246, 244, 236, 0.88));
    border: 1px solid rgba(27, 94, 58, 0.10);
    border-radius: 1.4rem;
    box-shadow: var(--fstk-shadow);
    padding: 1.4rem 1.2rem;
    position: relative;
    overflow: hidden;
}
.fstk-reciters-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--fstk-star);
    background-size: 56px 56px;
    opacity: .35;
    pointer-events: none;
}
.fstk-reciters-panel .fstk-rc-head {
    position: relative;
    text-align: center;
    margin-bottom: 1rem;
}
.fstk-reciters-panel .fstk-rc-head h5 {
    font-weight: 800;
    color: var(--fstk-green-800);
    margin-bottom: .2rem;
    font-size: 1.15rem;
}
.fstk-reciters-panel .fstk-rc-head p {
    color: var(--fstk-muted);
    font-size: .82rem;
    margin-bottom: 0;
}
.fstk-rc-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}
.fstk-rc {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(27, 94, 58, 0.08);
    border-radius: 1.1rem;
    padding: .85rem .5rem .7rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    animation: fstk-pop .5s ease backwards;
}
.fstk-rc:nth-child(1) { animation-delay: .05s; }
.fstk-rc:nth-child(2) { animation-delay: .1s; }
.fstk-rc:nth-child(3) { animation-delay: .15s; }
.fstk-rc:nth-child(4) { animation-delay: .2s; }
.fstk-rc:nth-child(5) { animation-delay: .25s; }
.fstk-rc:nth-child(6) { animation-delay: .3s; }
.fstk-rc:nth-child(7) { animation-delay: .35s; }
.fstk-rc:nth-child(8) { animation-delay: .4s; }
@keyframes fstk-pop {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to   { opacity: 1; transform: none; }
}
.fstk-rc:hover {
    transform: translateY(-3px);
    box-shadow: var(--fstk-shadow-hover);
    border-color: rgba(201, 162, 39, 0.4);
}
.fstk-rc-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--fstk-gold);
    box-shadow: 0 6px 16px rgba(18, 63, 39, .18);
    background: #fff;
}
.fstk-rc-name {
    font-weight: 700;
    color: var(--fstk-ink);
    font-size: .86rem;
    margin-top: .5rem;
    line-height: 1.3;
}
.fstk-rc-sub {
    font-size: .7rem;
    color: var(--fstk-muted);
}
/* Mobile: horizontal strip under the card */
.fstk-rc-strip {
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    padding: .8rem .2rem .4rem;
    scrollbar-width: thin;
}
.fstk-rc-strip .fstk-rc {
    flex: 0 0 auto;
    width: 108px;
    animation: none;
}
@media (max-width: 991.98px) {
    .fstk-rc-strip { display: flex; }
    .fstk-reciters { display: none; }
}
@media (min-width: 992px) {
    .fstk-rc-strip { display: none; }
}

/* Auth inner becomes a 2-col grid on desktop (card + showcase) */
.auth-wrapper.auth-basic .auth-inner.fstk-auth-inner {
    max-width: 1000px;
    width: 100%;
}
.fstk-auth-inner .fstk-reciters {
    display: none;
}
@media (min-width: 992px) {
    .auth-wrapper.auth-basic .auth-inner.fstk-auth-inner {
        display: grid;
        grid-template-columns: minmax(360px, 430px) minmax(320px, 1fr);
        gap: 1.5rem;
        align-items: center;
    }
    .fstk-auth-inner .fstk-reciters {
        display: block;
    }
    .fstk-auth-inner .brand-auth-footer {
        grid-column: 1 / -1;
    }
    .fstk-rc-strip,
    .fstk-rc-strip-label {
        display: none !important;
    }
}
@media (max-width: 991.98px) {
    .fstk-reciters {
        display: none !important;
    }
}
