/*
 * SunSoftGaming admin theme — light variant of the sunsoftgaming.com brand.
 * Brand tokens: violet #7c3aed / #5b21b6 / #a78bfa, neon cyan #00f5ff, pink #ff2e88, Manrope.
 */
:root {
    --ssg-accent: #7c3aed;
    --ssg-accent-dark: #5b21b6;
    --ssg-accent-light: #a78bfa;
    --ssg-cyan: #00f5ff;
    --ssg-pink: #ff2e88;
    --ssg-ink: #0b0f1a;
    --ssg-bg: #f6f5fb;
    --ssg-border: #ebe9f3;
    --ssg-gradient: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    --ssg-neon: linear-gradient(90deg, #00f5ff 0%, #7c3aed 50%, #ff2e88 100%);
    --ssg-shadow-sm: 0 1px 2px rgba(16, 12, 40, .04), 0 1px 3px rgba(16, 12, 40, .06);
    --ssg-shadow-md: 0 4px 18px -6px rgba(76, 29, 149, .18);
    --ssg-radius-lg: 20px;
    --ssg-radius-md: 14px;
    --ssg-radius-sm: 10px;
}

/* ---------- Base ---------- */
body.fi-body,
.fi-body {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--ssg-bg);
    background-image:
        radial-gradient(900px 400px at 100% -10%, rgba(124, 58, 237, .07), transparent 60%),
        radial-gradient(700px 360px at -10% 110%, rgba(0, 245, 255, .05), transparent 60%);
    background-attachment: fixed;
    color: #1f1d2b;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(124, 58, 237, .18); }

/* ---------- Brand logo ---------- */
.ssg-brand { display: flex; align-items: center; gap: .65rem; height: 100%; }
.ssg-brand-mark { height: 2.25rem; width: 2.25rem; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(124, 58, 237, .35)); }
.ssg-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.ssg-brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ssg-ink); white-space: nowrap; }
.ssg-brand-accent { background: var(--ssg-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ssg-brand-tag { font-size: .65rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8b8799; margin-top: 2px; }

/* ---------- Sidebar ---------- */
.fi-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--ssg-border);
}
.fi-sidebar-header {
    background: #ffffff !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    border-bottom: 1px solid var(--ssg-border);
    position: relative;
}
.fi-sidebar-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--ssg-neon);
    opacity: .55;
}
.fi-sidebar-group-label {
    font-size: .68rem !important;
    font-weight: 700 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9a96a8 !important;
}
.fi-sidebar-item-button {
    border-radius: var(--ssg-radius-sm) !important;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.fi-sidebar-item-button:hover {
    background-color: rgba(124, 58, 237, .06) !important;
}
.fi-sidebar-item-button:hover .fi-sidebar-item-icon,
.fi-sidebar-item-button:hover .fi-sidebar-item-label {
    color: var(--ssg-accent) !important;
}
.fi-sidebar-item-label { font-weight: 600 !important; color: #4a4659; }
.fi-sidebar-item-icon { color: #9a96a8; }

.fi-sidebar-item-active > .fi-sidebar-item-button {
    background: linear-gradient(90deg, rgba(124, 58, 237, .12), rgba(124, 58, 237, .04)) !important;
    position: relative;
}
.fi-sidebar-item-active > .fi-sidebar-item-button::before {
    content: "";
    position: absolute;
    left: -.5rem; top: 20%; bottom: 20%;
    width: 3px;
    border-radius: 3px;
    background: var(--ssg-gradient);
}
.fi-sidebar-item-active .fi-sidebar-item-label,
.fi-sidebar-item-active .fi-sidebar-item-icon {
    color: var(--ssg-accent-dark) !important;
}
.fi-sidebar-item-active .fi-sidebar-item-label { font-weight: 700 !important; }

/* ---------- Topbar ---------- */
.fi-topbar > nav {
    background: rgba(255, 255, 255, .82) !important;
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    border-bottom: 1px solid var(--ssg-border);
}

/* ---------- Page header ---------- */
.fi-header-heading {
    font-weight: 800 !important;
    letter-spacing: -.02em;
    color: var(--ssg-ink);
}
.fi-breadcrumbs a:hover { color: var(--ssg-accent); }

/* ---------- Buttons ---------- */
.fi-btn {
    border-radius: var(--ssg-radius-sm) !important;
    font-weight: 700 !important;
    letter-spacing: .005em;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease !important;
}
.fi-btn:active { transform: translateY(1px); }

.fi-btn.fi-color-primary:not(.fi-btn-outlined) {
    background: var(--ssg-gradient) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .6), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}
.fi-btn.fi-color-primary:not(.fi-btn-outlined):hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(124, 58, 237, .7), inset 0 1px 0 rgba(255, 255, 255, .2) !important;
}
.fi-btn.fi-color-primary:not(.fi-btn-outlined) .fi-btn-icon,
.fi-btn.fi-color-primary:not(.fi-btn-outlined) .fi-btn-label { color: #fff !important; }

.fi-btn.fi-btn-outlined.fi-color-primary {
    border: 1.5px solid rgba(124, 58, 237, .45);
    color: var(--ssg-accent-dark) !important;
}
.fi-btn.fi-btn-outlined.fi-color-primary:hover { background: rgba(124, 58, 237, .06) !important; }

.fi-btn.fi-color-gray {
    background: #fff !important;
    box-shadow: var(--ssg-shadow-sm) !important;
    --tw-ring-color: var(--ssg-border) !important;
}
.fi-btn.fi-color-gray:hover {
    --tw-ring-color: rgba(124, 58, 237, .35) !important;
    color: var(--ssg-accent-dark) !important;
}

.fi-btn.fi-color-danger:not(.fi-btn-outlined) {
    background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
    box-shadow: 0 6px 16px -6px rgba(225, 29, 72, .55) !important;
}

/* Icon buttons and links */
.fi-icon-btn { border-radius: var(--ssg-radius-sm) !important; transition: background-color .15s ease, color .15s ease; }
.fi-icon-btn:hover { background-color: rgba(124, 58, 237, .08) !important; color: var(--ssg-accent) !important; }

.fi-link { font-weight: 600 !important; transition: color .15s ease; }
.fi-link.fi-color-primary,
.fi-link.fi-color-primary .fi-link-icon { color: var(--ssg-accent) !important; }
.fi-link:hover { text-decoration: none !important; }
.fi-link.fi-color-primary:hover,
.fi-link.fi-color-primary:hover .fi-link-icon { color: var(--ssg-accent-dark) !important; }

/* ---------- Cards / sections / widgets ---------- */
.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-fo-tabs,
.fi-in-section,
.fi-wi-chart,
.fi-wi-widget > .fi-section {
    border-radius: var(--ssg-radius-md) !important;
    box-shadow: var(--ssg-shadow-sm) !important;
    --tw-ring-color: var(--ssg-border) !important;
    background: #fff;
}
.fi-section-header-heading { font-weight: 700 !important; color: var(--ssg-ink); }

.fi-wi-stats-overview-stat {
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.fi-wi-stats-overview-stat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--ssg-neon);
    opacity: .8;
}
.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--ssg-shadow-md) !important;
}
.fi-wi-stats-overview-stat-value { font-weight: 800 !important; letter-spacing: -.02em; color: var(--ssg-ink); }
.fi-wi-stats-overview-stat-label { font-weight: 600 !important; }

/* Account widget avatar ring */
.fi-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(124, 58, 237, .35); }

/* ---------- Tables ---------- */
.fi-ta-header-cell {
    background: #faf9fd;
}
.fi-ta-header-cell-label {
    font-size: .72rem !important;
    font-weight: 700 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6f6a80 !important;
}
.fi-ta-row { transition: background-color .12s ease; }
.fi-ta-row:hover { background-color: rgba(124, 58, 237, .035) !important; }
.fi-ta-text-item-label { color: #2a2738; }
.fi-ta-search-field .fi-input-wrp { border-radius: var(--ssg-radius-sm) !important; }

/* ---------- Form inputs ---------- */
.fi-input-wrp {
    border-radius: var(--ssg-radius-sm) !important;
    --tw-ring-color: #e2dfec !important;
    transition: box-shadow .15s ease;
    background: #fff !important;
}
.fi-input-wrp:hover { --tw-ring-color: #cfc8e6 !important; }
.fi-input-wrp:focus-within {
    --tw-ring-color: var(--ssg-accent) !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .12), var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width, 0px)) var(--tw-ring-color) !important;
}
.fi-fo-field-wrp-label span { font-weight: 600; color: #3b3749; }
.fi-checkbox-input:checked,
.fi-radio-input:checked { background-color: var(--ssg-accent) !important; }

/* ---------- Badges ---------- */
.fi-badge {
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding-inline: .6rem !important;
}

/* ---------- Tabs ---------- */
.fi-tabs { border-radius: var(--ssg-radius-md) !important; --tw-ring-color: var(--ssg-border) !important; }
.fi-tabs-item { border-radius: var(--ssg-radius-sm) !important; font-weight: 600; }
.fi-tabs-item-active {
    background: rgba(124, 58, 237, .1) !important;
}
.fi-tabs-item-active .fi-tabs-item-label,
.fi-tabs-item-active .fi-tabs-item-icon { color: var(--ssg-accent-dark) !important; }

/* ---------- Pagination (see resources/views/vendor/filament/components/pagination) ---------- */
.ssg-pg {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.25rem;
}
.ssg-pg-left { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.ssg-pg-per-page {
    display: inline-flex;
    align-items: center;
    height: 2.25rem;
    border-radius: var(--ssg-radius-sm);
    background: #fff;
    box-shadow: 0 0 0 1px #e2dfec, var(--ssg-shadow-sm);
    overflow: hidden;
    transition: box-shadow .15s ease;
}
.ssg-pg-per-page:focus-within { box-shadow: 0 0 0 1.5px var(--ssg-accent), 0 0 0 4px rgba(124, 58, 237, .12); }
.ssg-pg-per-page-label {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 .75rem;
    font-size: .8rem;
    font-weight: 600;
    color: #6f6a80;
    background: #faf9fd;
    border-right: 1px solid #ebe9f3;
    white-space: nowrap;
}
.ssg-pg-select {
    height: 100%;
    border: 0 !important;
    box-shadow: none !important;
    background-color: transparent;
    padding: 0 2rem 0 .75rem !important;
    font-size: .875rem;
    font-weight: 700;
    color: var(--ssg-ink);
    cursor: pointer;
}
.ssg-pg-select:focus { outline: none; }
.ssg-pg-overview { font-size: .825rem; font-weight: 500; color: #6f6a80; }

.ssg-pg-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    margin-left: auto !important;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ssg-pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    padding: 0 .65rem;
    border-radius: var(--ssg-radius-sm);
    background: #fff;
    box-shadow: 0 0 0 1px #e2dfec, var(--ssg-shadow-sm);
    font-size: .85rem;
    font-weight: 700;
    color: #3b3749;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ssg-pg-btn:hover:not(:disabled):not(.ssg-pg-active) {
    color: var(--ssg-accent-dark);
    background: rgba(124, 58, 237, .06);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, .4), var(--ssg-shadow-sm);
}
.ssg-pg-btn:active:not(:disabled) { transform: translateY(1px); }
.ssg-pg-btn:focus-visible { outline: none; box-shadow: 0 0 0 1.5px var(--ssg-accent), 0 0 0 4px rgba(124, 58, 237, .18); }
.ssg-pg-btn:disabled { color: #b9b5c6; background: #faf9fd; box-shadow: 0 0 0 1px #efedf5; cursor: not-allowed; }
.ssg-pg-btn-text { padding: 0 .8rem; }
.ssg-pg-active {
    color: #fff;
    background: var(--ssg-gradient);
    box-shadow: 0 6px 14px -6px rgba(124, 58, 237, .65);
    cursor: default;
}
.ssg-pg-icon { width: 1rem; height: 1rem; }
.ssg-pg-ellipsis {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 1.5rem;
    height: 2.25rem;
    padding-bottom: .4rem;
    color: #9a96a8;
    font-weight: 700;
    letter-spacing: .1em;
}

@media (max-width: 640px) {
    .ssg-pg { flex-direction: column; align-items: stretch; }
    .ssg-pg-left { justify-content: space-between; }
    .ssg-pg-links { justify-content: center; margin-left: 0 !important; }
    .ssg-pg-btn-text span { display: none; }
    .ssg-pg-btn-text { padding: 0 .55rem; }
}

/* ---------- Dropdowns / modals / notifications ---------- */
.fi-dropdown-panel {
    border-radius: var(--ssg-radius-md) !important;
    box-shadow: 0 16px 40px -12px rgba(30, 20, 70, .22) !important;
    --tw-ring-color: var(--ssg-border) !important;
    overflow: hidden;
}
.fi-dropdown-list-item { border-radius: 8px !important; transition: background-color .12s ease; }
.fi-dropdown-list-item:hover { background-color: rgba(124, 58, 237, .07) !important; }
.fi-dropdown-list-item:hover .fi-dropdown-list-item-label,
.fi-dropdown-list-item:hover .fi-dropdown-list-item-icon { color: var(--ssg-accent-dark) !important; }

.fi-modal-window { border-radius: var(--ssg-radius-lg) !important; }
.fi-no-notification { border-radius: var(--ssg-radius-md) !important; }

/* ---------- Login / simple pages ---------- */
.fi-simple-layout {
    background:
        radial-gradient(600px 300px at 15% 10%, rgba(0, 245, 255, .14), transparent 60%),
        radial-gradient(700px 360px at 85% 0%, rgba(124, 58, 237, .18), transparent 60%),
        radial-gradient(600px 320px at 70% 100%, rgba(255, 46, 136, .10), transparent 60%),
        var(--ssg-bg);
}
.fi-simple-main {
    border-radius: var(--ssg-radius-lg) !important;
    box-shadow: 0 24px 60px -20px rgba(76, 29, 149, .28) !important;
    --tw-ring-color: rgba(124, 58, 237, .12) !important;
    position: relative;
    overflow: hidden;
}
.fi-simple-main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--ssg-neon);
}
.fi-simple-header .ssg-brand { justify-content: center; }
.fi-simple-header .ssg-brand-mark { height: 2.75rem; width: 2.75rem; }
.fi-simple-header .ssg-brand-name { font-size: 1.3rem; }
.fi-simple-header-heading { font-weight: 800 !important; letter-spacing: -.02em; }

/* ---------- Scrollbar ---------- */
.fi-sidebar-nav::-webkit-scrollbar { width: 6px; }
.fi-sidebar-nav::-webkit-scrollbar-thumb { background: #e2dfec; border-radius: 6px; }
.fi-sidebar-nav::-webkit-scrollbar-thumb:hover { background: var(--ssg-accent-light); }
