/*
 * Santhi Yogashram admin theme, loaded after Filament's CSS (which sits in cascade layers, so these
 * unlayered rules win). Same visual language as the Stripe-style sign-in screens: white surfaces on
 * a cool grey canvas, navy text, blurple accents.
 */
:root {
    --sy-canvas: #f6f8fb;
    --sy-surface: #ffffff;
    --sy-line: #e3e8ef;
    --sy-line-soft: #edf1f6;
    --sy-ink: #0a2540;
    --sy-text: #425466;
    --sy-muted: #6b7c93;
    --sy-accent: #635bff;
    --sy-accent-2: #7a73ff;
    --sy-accent-soft: #f1f0ff;
    --sy-cyan: #80e9ff;
    --sy-radius: 14px;
    --sy-radius-sm: 10px;
    --sy-shadow: 0 1px 1px rgba(10, 37, 64, .03), 0 2px 6px -1px rgba(10, 37, 64, .06);
    --sy-shadow-lift: 0 2px 4px rgba(10, 37, 64, .04), 0 14px 32px -12px rgba(10, 37, 64, .18);
    --sy-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Canvas and type */
.fi-body {
    background: var(--sy-canvas);
    color: var(--sy-text);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11", "ss01";
}

::selection { background: rgba(99, 91, 255, .18); }

/* Top bar */
.fi-topbar-ctn { box-shadow: none; }
.fi-topbar {
    min-height: 64px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--sy-line);
    box-shadow: none;
}
.fi-topbar .fi-logo { height: 2.1rem !important; }
.fi-global-search-field .fi-input-wrp {
    background: var(--sy-canvas);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--sy-line);
    min-width: 18rem;
}
.fi-user-menu-trigger .fi-avatar {
    background: linear-gradient(135deg, var(--sy-accent), var(--sy-accent-2));
    color: #fff;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--sy-line);
}

/* Sidebar */
.fi-sidebar.fi-main-sidebar {
    background: var(--sy-surface);
    border-inline-end: 1px solid var(--sy-line);
}
.fi-sidebar-header-ctn { display: none; }
.fi-body-has-topbar .fi-sidebar-header-ctn { display: none; }
.fi-sidebar-nav { padding: 1.25rem .9rem 2rem; row-gap: 1.4rem; scrollbar-width: thin; }
.fi-sidebar-nav-groups { row-gap: 1.35rem; }
.fi-sidebar-group-btn { padding: 0 .65rem .35rem; }
.fi-sidebar-group-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #8792a2;
}
.fi-sidebar-group-collapse-btn { color: #a3acb9; }
.fi-sidebar-group-items { row-gap: 2px; }
.fi-sidebar-item-btn {
    position: relative;
    padding: .5rem .7rem;
    border-radius: var(--sy-radius-sm);
    background: transparent;
    transition: background-color .2s ease, color .2s ease;
}
.fi-sidebar-item-btn:hover,
.fi-sidebar-item-btn:focus-visible { background: #f4f6fa; }
.fi-sidebar-item-btn > .fi-icon { color: #8792a2; transition: color .2s ease, transform .3s var(--sy-ease); }
.fi-sidebar-item-btn:hover > .fi-icon { color: var(--sy-ink); transform: translateX(1px); }
.fi-sidebar-item-label { font-size: 14px; font-weight: 500; color: #3c4257; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--sy-accent-soft); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before {
    content: "";
    position: absolute;
    inset-inline-start: -.9rem;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--sy-accent);
}
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label { color: var(--sy-accent); font-weight: 600; }
.fi-sidebar-item-badge-ctn .fi-badge {
    border-radius: 999px;
    background: var(--sy-accent);
    color: #fff;
    box-shadow: none;
    font-weight: 600;
}

/* Page header */
.fi-main { padding-top: .75rem; }
.fi-header { gap: .35rem 1rem; }
.fi-header-heading {
    font-size: 1.85rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--sy-ink);
}
.fi-header-subheading { font-size: 15px; color: var(--sy-muted); max-width: 60ch; }
.fi-breadcrumbs-item-label { font-size: 13px; color: var(--sy-muted); }

/* Surfaces: sections, tables, widgets */
.fi-section:not(.fi-section-not-contained):not(.fi-aside),
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-wi-chart .fi-section,
.fi-fo-repeater-item,
.fi-fo-builder-item {
    border-radius: var(--sy-radius);
    box-shadow: 0 0 0 1px var(--sy-line), var(--sy-shadow);
}
.fi-section-header-heading { font-size: 15px; font-weight: 600; color: var(--sy-ink); letter-spacing: -.005em; }
.fi-section-header-description { font-size: 13.5px; }
.fi-section > .fi-section-header > .fi-icon { color: var(--sy-accent); }
.fi-section.fi-compact > .fi-section-header { padding-block: .85rem; }
.fi-section.fi-collapsible > .fi-section-header { transition: background-color .2s ease; border-radius: var(--sy-radius); }
.fi-section.fi-collapsible > .fi-section-header:hover { background: #fafbfd; }
.fi-fo-repeater-item-header, .fi-fo-builder-item-header { padding-block: .7rem; }
.fi-fo-repeater-item-header-label, .fi-fo-builder-item-header-label { font-weight: 600; color: var(--sy-ink); }

/* Tabs */
.fi-sc-tabs.fi-contained, .fi-tabs.fi-contained {
    border-radius: var(--sy-radius);
}
.fi-tabs { gap: .25rem; }
.fi-tabs-item {
    border-radius: 999px;
    padding: .45rem .85rem;
    transition: background-color .2s ease, color .2s ease;
}
.fi-tabs-item-label { font-weight: 500; color: var(--sy-text); }
.fi-tabs-item:hover { background: #f4f6fa; }
.fi-tabs-item.fi-active { background: var(--sy-accent-soft); }
.fi-tabs-item.fi-active .fi-tabs-item-label, .fi-tabs-item.fi-active > .fi-icon { color: var(--sy-accent); }

/* Tables */
.fi-ta-header-cell {
    background: #fafbfd;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8792a2;
}
.fi-ta-header-cell-label { font-size: inherit; font-weight: inherit; color: inherit; }
.fi-ta-row { transition: background-color .15s ease; }
.fi-ta-row:hover { background: #fafbff; }
.fi-ta-header { padding-block: 1rem; }
.fi-ta-header-heading { font-size: 15px; font-weight: 600; color: var(--sy-ink); }
.fi-ta-header-description { font-size: 13px; }

/* Stats */
.fi-wi-stats-overview-stat {
    padding: 1.35rem 1.4rem 1.2rem;
    overflow: hidden;
    transition: transform .35s var(--sy-ease), box-shadow .35s var(--sy-ease);
}
.fi-wi-stats-overview-stat:is(a):hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--sy-line), var(--sy-shadow-lift); }
.fi-wi-stats-overview-stat-label { font-size: 13px; font-weight: 500; color: var(--sy-muted); }
.fi-wi-stats-overview-stat-value { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; color: var(--sy-ink); }
.fi-wi-stats-overview-stat-description { font-size: 12.5px; }

/* Buttons and inputs */
.fi-btn { border-radius: var(--sy-radius-sm); font-weight: 600; transition: transform .2s var(--sy-ease), box-shadow .2s ease, background-color .2s ease; }
.fi-btn.fi-color-primary:not(.fi-outlined) {
    background: linear-gradient(180deg, #6f68ff, var(--sy-accent));
    box-shadow: 0 1px 1px rgba(10, 37, 64, .12), 0 4px 10px -4px rgba(99, 91, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.fi-btn.fi-color-primary:not(.fi-outlined):hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(10, 37, 64, .12), 0 8px 18px -6px rgba(99, 91, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .18); }
.fi-input-wrp { border-radius: var(--sy-radius-sm); transition: box-shadow .2s ease; }
.fi-input-wrp:focus-within { box-shadow: 0 0 0 1px var(--sy-accent), 0 0 0 4px rgba(99, 91, 255, .14); }
.fi-fo-field-label-content { font-weight: 500; color: #3c4257; }
.fi-fo-field-wrp-helper-text, .fi-sc-text { color: var(--sy-muted); }
.fi-fo-file-upload .filepond--panel-root { background: #f8fafc; border: 1px dashed #c9d2de; }
.fi-callout { border-radius: var(--sy-radius); }

/* Sticky save bar on settings pages */
.fi-sc-actions.fi-sticky {
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--sy-line);
}

/* Modals and dropdowns */
.fi-modal-window { border-radius: 18px; box-shadow: 0 0 0 1px rgba(10, 37, 64, .06), 0 30px 60px -20px rgba(10, 37, 64, .35); }
.fi-dropdown-panel { border-radius: 12px; box-shadow: 0 0 0 1px var(--sy-line), 0 18px 40px -16px rgba(10, 37, 64, .28); }

/* Dashboard: welcome banner */
.sy-welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.1rem 2.25rem 2rem;
    border-radius: 18px;
    background: radial-gradient(120% 140% at 0% 0%, #ffffff 0%, #ffffff 46%, #f5f4ff 100%);
    box-shadow: 0 0 0 1px var(--sy-line), var(--sy-shadow);
}
.sy-welcome__stripes {
    position: absolute;
    inset: -40% -6% auto auto;
    width: 46%;
    height: 180%;
    display: grid;
    grid-template-rows: repeat(9, 1fr);
    transform: skewY(-12deg);
    pointer-events: none;
    opacity: .9;
}
.sy-welcome__stripes span { display: block; margin-inline-start: auto; border-radius: 2px; animation: sy-stripe 1.1s var(--sy-ease) both; }
.sy-welcome__stripes span:nth-child(1) { grid-row: 3; width: 72%; background: linear-gradient(90deg, var(--sy-accent), var(--sy-accent-2)); }
.sy-welcome__stripes span:nth-child(2) { grid-row: 4; width: 44%; background: var(--sy-cyan); animation-delay: .08s; }
.sy-welcome__stripes span:nth-child(3) { grid-row: 5; width: 58%; background: #e3e8ee; animation-delay: .16s; }
.sy-welcome__stripes span:nth-child(4) { grid-row: 6; width: 30%; background: linear-gradient(90deg, #a960ee, #ff7a59); animation-delay: .24s; }
@keyframes sy-stripe { from { transform: translateX(40%); opacity: 0; } }
.sy-welcome__body { position: relative; max-width: 44rem; }
.sy-welcome__date { margin: 0 0 .35rem; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sy-accent); }
.sy-welcome__title { margin: 0; font-size: 2.15rem; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; color: var(--sy-ink); }
.sy-welcome__summary { margin: .6rem 0 0; font-size: 15.5px; color: var(--sy-text); }
.sy-welcome__actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.sy-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .95rem;
    border-radius: 999px;
    background: #fff;
    color: var(--sy-ink);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 0 1px var(--sy-line), 0 1px 2px rgba(10, 37, 64, .05);
    transition: transform .25s var(--sy-ease), box-shadow .25s ease, color .2s ease;
}
.sy-chip-btn:hover { transform: translateY(-1px); color: var(--sy-accent); box-shadow: 0 0 0 1px #d4d1ff, 0 6px 14px -8px rgba(99, 91, 255, .5); }
.sy-chip-btn__icon { width: 1.05rem; height: 1.05rem; }
.sy-chip-btn--primary { background: linear-gradient(180deg, #6f68ff, var(--sy-accent)); color: #fff; box-shadow: 0 4px 12px -4px rgba(99, 91, 255, .7); }
.sy-chip-btn--primary:hover { color: #fff; box-shadow: 0 8px 18px -6px rgba(99, 91, 255, .75); }
.sy-welcome__site {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 .75rem;
    min-width: 15rem;
    padding: .9rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px var(--sy-line), var(--sy-shadow);
    text-decoration: none;
    transition: transform .3s var(--sy-ease), box-shadow .3s ease;
}
.sy-welcome__site:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--sy-line), var(--sy-shadow-lift); }
.sy-welcome__site-label { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sy-muted); }
.sy-welcome__site-url { grid-row: 2; font-size: 15px; font-weight: 600; color: var(--sy-ink); }
.sy-welcome__site-icon { grid-row: 1 / span 2; grid-column: 2; width: 1.35rem; height: 1.35rem; color: var(--sy-accent); }

/* Dashboard: "Edit your website" card */
.sy-card { height: 100%; padding: 1.35rem 1.4rem; border-radius: var(--sy-radius); background: var(--sy-surface); box-shadow: 0 0 0 1px var(--sy-line), var(--sy-shadow); }
.sy-card__head { margin-bottom: .9rem; }
.sy-card__title { margin: 0; font-size: 15px; font-weight: 600; color: var(--sy-ink); }
.sy-card__desc { margin: .2rem 0 0; font-size: 13px; color: var(--sy-muted); }
.sy-shortcuts__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sy-shortcut {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem .75rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color .2s ease;
}
.sy-shortcut:hover { background: #f6f7ff; }
.sy-shortcut__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    background: var(--sy-accent-soft);
    color: var(--sy-accent);
    transition: transform .3s var(--sy-ease), background-color .2s ease, color .2s ease;
}
.sy-shortcut__icon .fi-icon, .sy-shortcut__icon svg { width: 1.2rem; height: 1.2rem; }
.sy-shortcut:hover .sy-shortcut__icon { transform: scale(1.06); background: var(--sy-accent); color: #fff; }
.sy-shortcut__text { display: grid; min-width: 0; }
.sy-shortcut__label { font-size: 14px; font-weight: 600; color: var(--sy-ink); }
.sy-shortcut__hint { overflow: hidden; font-size: 12.5px; color: var(--sy-muted); white-space: nowrap; text-overflow: ellipsis; }
.sy-shortcut__arrow { flex: none; width: 1rem; height: 1rem; margin-inline-start: auto; color: #c1c9d2; transition: transform .3s var(--sy-ease), color .2s ease; }
.sy-shortcut:hover .sy-shortcut__arrow { transform: translateX(3px); color: var(--sy-accent); }

/* Text & images: gallery picker (tick photos to remove) */
.sy-gallery-pick .fi-fo-checkbox-list-option-ctn,
.sy-gallery-pick label { position: relative; display: block; }
.sy-gallery-pick .fi-fo-checkbox-list-option { position: relative; display: block; }
.sy-gallery-pick .fi-checkbox-input { position: absolute; top: .45rem; left: .45rem; z-index: 1; box-shadow: 0 0 0 2px #fff; }
.sy-gallery-pick__img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 0 1px var(--sy-line);
    transition: filter .2s ease, box-shadow .2s ease;
}
.sy-gallery-pick label:has(input:checked) .sy-gallery-pick__img { filter: grayscale(1) opacity(.45); box-shadow: 0 0 0 2px #e11d48; }

/* Media library cards */
.sy-media__thumb { width: 100%; }
.sy-media__thumb img, .sy-media__img {
    width: 100% !important;
    height: 9.5rem !important;
    object-fit: cover;
    border-radius: 10px;
    background: repeating-conic-gradient(#f1f4f8 0 25%, #fff 0 50%) 0 0 / 16px 16px;
    box-shadow: 0 0 0 1px var(--sy-line);
}
.fi-ta-content-grid .fi-ta-record { border-radius: var(--sy-radius); transition: transform .3s var(--sy-ease), box-shadow .3s ease; }
.fi-ta-content-grid .fi-ta-record:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--sy-line), var(--sy-shadow-lift); }

/* Enquiries: unread rows */
.fi-ta-row.sy-unread { background: linear-gradient(90deg, rgba(99, 91, 255, .06), transparent 40%); }
.fi-ta-row.sy-unread > .fi-ta-cell:first-child { box-shadow: inset 3px 0 0 var(--sy-accent); }

.sy-icon-upload { max-width: 16rem; }

/* Enquiry answers: readable text instead of the key-value table's monospace */
.fi-in-key-value td, .fi-in-key-value th { font-family: inherit; font-size: 14px; }
.fi-in-key-value td:first-child { width: 34%; color: var(--sy-muted); }
.fi-in-key-value td:last-child { color: var(--sy-ink); font-weight: 500; white-space: pre-line; }

/* Notifications */
.fi-no-notification { border-radius: 14px; box-shadow: 0 0 0 1px var(--sy-line), 0 20px 40px -18px rgba(10, 37, 64, .35); }

@media (max-width: 1024px) {
    .sy-welcome { flex-direction: column; align-items: stretch; padding: 1.6rem 1.4rem; }
    .sy-welcome__stripes { width: 60%; opacity: .35; }
    .sy-welcome__title { font-size: 1.7rem; }
    .fi-global-search-field .fi-input-wrp { min-width: 0; }
}

@media (max-width: 640px) {
    .sy-welcome__stripes { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sy-welcome__stripes span { animation: none; }
    .fi-wi-stats-overview-stat, .sy-chip-btn, .sy-shortcut__icon, .fi-btn { transition: none; }
}
