@import '../../../../vendor/filament/filament/resources/css/theme.css';

@source '../../../../app/Filament/**/*.php';
@source '../../../../resources/views/filament/**/*.blade.php';
@source '../../../../vendor/filament/**/*.blade.php';

:root {
    color-scheme: light;
    --remote-admin-bg: #f7fbff;
    --remote-admin-ink: #172033;
    --remote-admin-muted: #64748b;
    --remote-admin-line: rgba(148, 163, 184, 0.26);
    --remote-admin-card: rgba(255, 255, 255, 0.92);
}

html,
body,
.fi-body {
    background:
        radial-gradient(circle at 10% 0%, rgba(45, 212, 191, 0.16), transparent 28rem),
        radial-gradient(circle at 92% 4%, rgba(56, 189, 248, 0.13), transparent 30rem),
        linear-gradient(180deg, #f8fdff 0%, #eef8fb 54%, #f9fbff 100%) !important;
    color: var(--remote-admin-ink);
}

.fi-layout,
.fi-main,
.fi-page,
.fi-simple-main {
    background: transparent !important;
}

.fi-sidebar,
.fi-topbar {
    border-color: var(--remote-admin-line) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.fi-logo,
.fi-sidebar-header {
    color: #0f172a !important;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.fi-sidebar-nav-item a,
.fi-sidebar-nav-group-button {
    border-radius: 1rem !important;
    color: #475569 !important;
}

.fi-sidebar-nav-item-active a,
.fi-sidebar-nav-item a:hover,
.fi-sidebar-nav-group-button:hover {
    background: #ccfbf1 !important;
    color: #0f172a !important;
}

.fi-section,
.fi-fo-section,
.fi-ta,
.fi-wi-widget,
.fi-in-entry-wrp,
.fi-modal-window,
.fi-dropdown-panel {
    border: 1px solid var(--remote-admin-line) !important;
    border-radius: 1.25rem !important;
    background: var(--remote-admin-card) !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07) !important;
}

.fi-wi-widget {
    overflow: hidden;
}

.remote-admin-command-widget {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.fi-wi-stats-overview {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.fi-wi-stats-overview .fi-section {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.fi-wi-stats-overview-stat {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.84) !important;
    border-radius: 1.35rem !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.78)),
        radial-gradient(circle at 92% 12%, rgba(20, 184, 166, 0.16), transparent 11rem) !important;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.07) !important;
}

.fi-wi-stats-overview-stat::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.28rem;
    content: "";
    background: linear-gradient(180deg, #14b8a6, #38bdf8);
}

.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-label {
    color: #64748b !important;
    font-weight: 700 !important;
}

.fi-wi-stats-overview-stat .fi-wi-stats-overview-stat-value {
    color: #0f172a !important;
    letter-spacing: -0.025em;
}

.fi-wi-chart .fi-section {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.14), transparent 18rem) !important;
}

.fi-wi-chart-canvas-ctn {
    min-height: 20rem;
}

.fi-wi-chart-filter .fi-select-input {
    min-width: 9rem;
}

.remote-admin-command-center {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.remote-admin-command-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.remote-admin-eyebrow {
    margin: 0 0 0.45rem;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.remote-admin-command-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.remote-admin-command-header p:not(.remote-admin-eyebrow) {
    max-width: 44rem;
    margin: 0.45rem 0 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
}

.remote-admin-live-pill {
    display: inline-flex;
    flex-shrink: 0;
    gap: 0.5rem;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #047857;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.14);
}

.remote-admin-live-pill span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 0.32rem rgba(16, 185, 129, 0.16);
}

.remote-admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.remote-admin-kpi-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    min-height: 8.25rem;
    padding: 1rem;
    border-radius: 1.25rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.07);
    --tw-ring-inset: inset;
    --tw-ring-offset-width: 0;
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 1px var(--tw-ring-color);
    box-shadow: var(--tw-ring-shadow), 0 15px 35px rgba(15, 23, 42, 0.07);
}

.remote-admin-kpi-icon {
    display: grid;
    flex: 0 0 auto;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.remote-admin-kpi-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.remote-admin-kpi-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.remote-admin-kpi-card strong {
    display: block;
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.remote-admin-kpi-card span {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.35;
}

.remote-admin-funnel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.76);
}

.remote-admin-funnel-heading h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.remote-admin-funnel-heading p {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

.remote-admin-funnel-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.remote-admin-funnel-step {
    min-width: 0;
}

.remote-admin-funnel-step-top {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.remote-admin-funnel-step-top span,
.remote-admin-funnel-step small {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 750;
}

.remote-admin-funnel-step-top strong {
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 850;
}

.remote-admin-funnel-bar {
    overflow: hidden;
    height: 0.55rem;
    margin: 0.45rem 0;
    border-radius: 999px;
    background: #e2e8f0;
}

.remote-admin-funnel-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #38bdf8);
}

.fi-ta-header,
.fi-ta-content,
.fi-section-content,
.fi-fo-section-content-ctn {
    background: transparent !important;
}

.fi-ta-row:hover {
    background: rgba(240, 253, 250, 0.8) !important;
}

.fi-btn {
    min-height: 2.75rem !important;
    padding: 0.625rem 1rem !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
}

.fi-btn.fi-color-primary {
    color: #0f172a !important;
}

.fi-btn .fi-btn-label {
    color: inherit !important;
    line-height: 1.25rem !important;
}

.fi-input-wrp,
.fi-select-input,
.fi-textarea,
.fi-tags-input,
.fi-choices {
    border-radius: 1rem !important;
}

.fi-badge {
    border-radius: 999px !important;
    font-weight: 800 !important;
}

.fi-page-header-heading {
    color: #0f172a !important;
    font-weight: 850 !important;
    letter-spacing: -0.03em;
}

.fi-page-header-description,
.fi-ta-text,
.fi-fo-field-wrp-helper-text {
    color: var(--remote-admin-muted) !important;
}

.fi-simple-layout {
    background:
        radial-gradient(circle at 18% 16%, rgba(45, 212, 191, 0.2), transparent 26rem),
        linear-gradient(180deg, #f8fdff 0%, #eef8fb 100%) !important;
}

@media (max-width: 1100px) {
    .remote-admin-kpi-grid,
    .remote-admin-funnel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .remote-admin-command-header {
        flex-direction: column;
    }

    .remote-admin-kpi-grid,
    .remote-admin-funnel-grid {
        grid-template-columns: 1fr;
    }

    .remote-admin-kpi-card {
        min-height: auto;
    }

    .fi-wi-chart-canvas-ctn {
        min-height: 16rem;
    }
}
