/*
 |--------------------------------------------------------------------------
 | Parsis admin theme
 |--------------------------------------------------------------------------
 | Loaded by the Filament panel through ->font(). It keeps the panel on the
 | same visual language as the public site: Vazirmatn, navy headings, a soft
 | blue canvas and restrained card borders.
 */

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

.fi-body {
    background: #f5f8fb;
}

.fi-topbar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e6eef6;
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.fi-topbar-start .fi-logo {
    margin-inline-start: 0;
}

.fi-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    border-inline-end: 1px solid #e6eef6;
}

.fi-sidebar-header {
    border-bottom: 1px solid #eef4f9;
}

.fi-sidebar-nav {
    padding-block: 1.25rem;
}

.fi-sidebar-group-label {
    color: #8fa3b5;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.055em;
}

.fi-sidebar-item-label {
    font-size: 0.82rem;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: #e9f6fd;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label {
    color: #0678aa;
    font-weight: 700;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon {
    color: #0798d7;
}

.fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:hover {
    background: #f2f9fd;
}

.fi-header-heading {
    color: #0b1e2e;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.fi-header-subheading {
    color: #7990a3;
    font-size: 0.82rem;
}

.fi-section {
    border-color: #e6eef6;
    border-radius: 16px;
    box-shadow: 0 16px 38px -38px rgba(10, 30, 50, 0.45);
}

.fi-section-header-heading {
    color: #122233;
    font-weight: 700;
}

.fi-ta {
    border-radius: 16px;
    border-color: #e6eef6;
}

.fi-ta-header {
    background: #fff;
}

.fi-ta-table thead {
    background: #f8fbfe;
}

.fi-ta-table thead th {
    color: #64798d;
    font-size: 0.72rem;
    font-weight: 700;
}

.fi-ta-row:hover {
    background: #f8fbfe;
}

.fi-ta-cell {
    font-size: 0.8rem;
}

.fi-wi-stats-overview-stat {
    border: 1px solid #e6eef6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 38px -38px rgba(10, 30, 50, 0.4);
}

.fi-wi-stats-overview-stat-label {
    color: #64798d;
    font-size: 0.75rem;
}

.fi-wi-stats-overview-stat-value {
    color: #0b1e2e;
    font-weight: 800;
}

.fi-wi-stats-overview-stat-description {
    color: #8fa3b5;
    font-size: 0.68rem;
}

.fi-wi-chart {
    border-radius: 16px;
    border-color: #e6eef6;
}

.fi-btn {
    border-radius: 10px;
    font-weight: 600;
}

.fi-input,
.fi-select-input,
.fi-textarea,
.fi-fo-rich-editor,
.fi-fo-file-upload {
    border-radius: 10px;
}

.fi-fo-field-wrp-label {
    color: #33475b;
    font-weight: 600;
}

.fi-fo-tabs {
    border-radius: 16px;
}

.fi-tabs-item-btn {
    font-weight: 600;
}

.fi-dropdown-panel {
    border-radius: 14px;
    border-color: #e6eef6;
    box-shadow: 0 24px 50px -30px rgba(10, 30, 50, 0.35);
}

.fi-badge {
    border-radius: 7px;
    font-weight: 600;
}

.fi-user-avatar {
    border-radius: 999px;
}

/* Quick actions widget */
.parsis-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .parsis-quick-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.parsis-quick-actions__intro {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.parsis-quick-actions__mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    border-radius: 0.8rem;
    background: #e9f6fd;
    color: #0798d7;
}

.parsis-quick-actions__mark svg {
    width: 1.25rem;
    height: 1.25rem;
}

.parsis-quick-actions__title {
    color: #0b1e2e;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.5;
}

.parsis-quick-actions__desc {
    margin-top: 0.2rem;
    color: #7990a3;
    font-size: 0.8rem;
    line-height: 1.7;
}

.parsis-quick-actions__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 639px) {
    .parsis-quick-actions__buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .parsis-quick-actions__buttons .fi-btn {
        width: 100%;
        justify-content: center;
    }

    .parsis-quick-actions__buttons .fi-btn:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* Brand mark used by the panel logo view. */
.parsis-admin-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    height: 100%;
}

.parsis-admin-brand__mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(140deg, #0798d7, #2bb8e8);
    box-shadow: 0 10px 22px -12px rgba(7, 152, 215, 0.9);
    flex: none;
}

.parsis-admin-brand__mark svg {
    width: 20px;
    height: 20px;
}

.parsis-admin-brand__dot {
    position: absolute;
    top: -2px;
    inset-inline-end: -2px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #f68036;
}

.parsis-admin-brand__text {
    display: grid;
    line-height: 1.25;
    text-align: start;
}

.parsis-admin-brand__text strong {
    color: #0b1e2e;
    font-size: 0.98rem;
    font-weight: 800;
}

.parsis-admin-brand__text small {
    color: #8fa3b5;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
}

/* Login screen */
.fi-simple-layout {
    background:
        radial-gradient(700px 380px at 8% 0%, rgba(7, 152, 215, 0.1), transparent 68%),
        radial-gradient(620px 340px at 96% 10%, rgba(246, 128, 54, 0.09), transparent 70%),
        #f5f8fb;
}

.fi-simple-main {
    border: 1px solid #e6eef6;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 40px 90px -46px rgba(10, 30, 50, 0.45);
    backdrop-filter: blur(10px);
}

.fi-simple-header-heading {
    color: #0b1e2e;
    font-weight: 800;
}

.fi-simple-header-subheading {
    color: #7990a3;
}

@media (prefers-reduced-motion: reduce) {
    .fi-sidebar-item-btn,
    .fi-btn {
        transition: none;
    }
}
