/* Final daycare card/icon layer. Loaded after theme.css. */
.fi-panel-parent .fi-section,
.fi-panel-parent .fi-wi-stats-overview-stat,
.fi-panel-parent .fi-wi-widget,
.fi-panel-parent .fi-modal-window,
.fi-panel-parent .fi-fo-repeater-item,
.fi-panel-parent .fi-in-entry-wrp,
.fi-panel-parent .parent-sidebar-card,
.fi-panel-parent .dc-chat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 1.4rem 1.35rem, rgba(255, 228, 92, 0.22) 0 0.85rem, transparent 0.9rem),
        radial-gradient(ellipse 3.8rem 1.1rem at calc(100% - 3.8rem) 1.8rem, rgba(255, 255, 255, 0.72) 0 98%, transparent 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(240, 249, 255, 0.94) 48%, rgba(220, 252, 231, 0.9)) !important;
    box-shadow: 0 20px 42px rgba(14, 116, 144, 0.12) !important;
}

.fi-panel-parent .fi-section::after,
.fi-panel-parent .fi-wi-stats-overview-stat::after {
    content: "";
    position: absolute;
    right: -1.3rem;
    bottom: -1.7rem;
    width: 6.2rem;
    height: 6.2rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, rgba(255, 120, 182, 0.18) 0 34%, transparent 36%),
        conic-gradient(from 210deg, rgba(255, 228, 92, 0.34), rgba(66, 217, 95, 0.28), rgba(32, 191, 234, 0.28), rgba(255, 120, 182, 0.28), rgba(255, 228, 92, 0.34));
    opacity: 0.72;
    pointer-events: none;
}

.fi-panel-parent .fi-section > *,
.fi-panel-parent .fi-wi-stats-overview-stat > * {
    position: relative;
    z-index: 1;
}

.fi-panel-parent .fi-section-header {
    border-bottom: 1px solid rgba(125, 211, 252, 0.34) !important;
    background: linear-gradient(90deg, rgba(255, 244, 189, 0.58), rgba(224, 242, 254, 0.66), rgba(220, 252, 231, 0.62)) !important;
}

.fi-panel-parent .fi-section-header-heading,
.fi-panel-parent .fi-wi-stats-overview-stat-value {
    color: #073b5c !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}

.fi-panel-parent .fi-section-header-description,
.fi-panel-parent .fi-wi-stats-overview-stat-description,
.fi-panel-parent .fi-wi-stats-overview-stat-label {
    color: #54748a !important;
    font-weight: 750 !important;
}

.fi-panel-parent .fi-wi-stats-overview-stat {
    min-height: 132px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.fi-panel-parent .fi-wi-stats-overview-stat:hover,
.fi-panel-parent .fi-section:hover {
    box-shadow: 0 24px 52px rgba(14, 116, 144, 0.16) !important;
    transform: translateY(-1px);
}

.fi-panel-parent .fi-sidebar-item-icon,
.fi-panel-parent .fi-wi-stats-overview-stat-icon,
.fi-panel-parent .fi-section-header-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    color: #075985 !important;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.88) 0 20%, transparent 22%),
        linear-gradient(135deg, #ffe45c, #ff9f43 46%, #ff78b6) !important;
    box-shadow: 0 10px 22px rgba(255, 138, 36, 0.22) !important;
}

.fi-panel-parent .fi-sidebar-item:nth-child(3n + 1) .fi-sidebar-item-icon,
.fi-panel-parent .fi-wi-stats-overview-stat:nth-child(3n + 1) .fi-wi-stats-overview-stat-icon {
    background: linear-gradient(135deg, #7dd3fc, #20bfea, #42d95f) !important;
}

.fi-panel-parent .fi-sidebar-item:nth-child(3n + 2) .fi-sidebar-item-icon,
.fi-panel-parent .fi-wi-stats-overview-stat:nth-child(3n + 2) .fi-wi-stats-overview-stat-icon {
    background: linear-gradient(135deg, #ffe45c, #ff8a24, #ff78b6) !important;
}

.fi-panel-parent .fi-sidebar-item:nth-child(3n) .fi-sidebar-item-icon,
.fi-panel-parent .fi-wi-stats-overview-stat:nth-child(3n) .fi-wi-stats-overview-stat-icon {
    background: linear-gradient(135deg, #c4f24d, #42d95f, #20bfea) !important;
}

.fi-panel-parent .fi-btn,
.fi-panel-parent .fi-ac-btn-action {
    border-radius: 16px !important;
    font-weight: 850 !important;
}

/* Dark sidebar text is clearer on the bright sky background. */
.fi-panel-parent .fi-sidebar-group-label,
.fi-panel-parent .fi-sidebar-item-label {
    color: #073b5c !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

.fi-panel-parent .fi-sidebar-item.fi-active .fi-sidebar-item-label {
    color: #06364f !important;
    text-shadow: none !important;
}

/* Keep sidebar decoration from competing with menu text. */
.fi-panel-parent .fi-sidebar::after {
    display: none !important;
}

.fi-panel-parent .fi-sidebar-header,
.fi-panel-parent .fi-sidebar-nav,
.fi-panel-parent .fi-sidebar-footer {
    position: relative;
    z-index: 2;
}

/* Parent portal sidebar should stay calm and readable. */
.fi-panel-parent .fi-sidebar {
    background: linear-gradient(180deg, #27c8ee 0%, #26b9d9 48%, #4fd878 100%) !important;
}

.fi-panel-parent .fi-sidebar::before {
    opacity: 0.42 !important;
    transform: scale(0.82);
    transform-origin: top right;
}

.fi-panel-parent .fi-sidebar-nav {
    padding-top: 0.65rem !important;
}

.fi-panel-parent .fi-sidebar-item-btn {
    min-height: 2.75rem !important;
    border-radius: 18px !important;
    padding-inline: 0.85rem !important;
}

.fi-panel-parent .fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn {
    background: rgba(255, 255, 255, 0.12) !important;
}

.fi-panel-parent .fi-sidebar-item:not(.fi-active) > .fi-sidebar-item-btn:hover {
    background: rgba(255, 255, 255, 0.24) !important;
}

.fi-panel-parent .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: linear-gradient(135deg, #ffffff 0%, #fff7c8 55%, #e8fbff 100%) !important;
    box-shadow: 0 10px 22px rgba(7, 59, 92, 0.16) !important;
}

.fi-panel-parent .fi-sidebar-item-label {
    color: #073b5c !important;
    font-weight: 900 !important;
}

.fi-panel-parent .parent-sidebar-card {
    margin: 1rem !important;
    border-color: rgba(255, 255, 255, 0.52) !important;
    background:
        radial-gradient(ellipse 4.8rem 1.35rem at 88% 22%, rgba(255, 255, 255, 0.68) 0 98%, transparent 100%),
        linear-gradient(135deg, rgba(255, 249, 206, 0.92), rgba(224, 250, 255, 0.9), rgba(221, 255, 224, 0.88)) !important;
    box-shadow: 0 18px 34px rgba(7, 59, 92, 0.14) !important;
}

.fi-panel-parent .parent-sidebar-card__eyebrow,
.fi-panel-parent .parent-sidebar-card__title,
.fi-panel-parent .parent-sidebar-card__text {
    color: #073b5c !important;
    text-shadow: none !important;
}

/* ============================================
   TOPBAR USER DROPDOWN STYLES
   ============================================ */

/* Container for topbar elements */
.parent-topbar-user {
    position: relative;
    margin-left: auto;
    margin-right: 0.5rem;
}

/* User trigger button */
.parent-topbar-user__trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.375rem 0.25rem 0.25rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.parent-topbar-user__trigger:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.15);
}

/* User avatar */
.parent-topbar-user__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffe45c 0%, #ff78b6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.parent-topbar-user__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9999px;
}

.parent-topbar-user__avatar-initials {
    font-size: 0.75rem;
    font-weight: 700;
    color: #073b5c;
    text-transform: uppercase;
}

/* Chevron icon */
.parent-topbar-user__chevron {
    color: #54748a;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.parent-topbar-user__chevron.rotate-180 {
    transform: rotate(180deg);
}

/* Dropdown menu */
.parent-topbar-user__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(14, 116, 144, 0.2);
    padding: 0.5rem;
    z-index: 9999;
}

/* Menu header */
.parent-topbar-user__menu-header {
    padding: 0.75rem 1rem 0.5rem;
}

.parent-topbar-user__menu-name {
    font-weight: 600;
    color: #073b5c;
    font-size: 0.875rem;
}

.parent-topbar-user__menu-email {
    font-size: 0.75rem;
    color: #54748a;
    margin-top: 0.125rem;
}

/* Menu divider */
.parent-topbar-user__menu-divider {
    height: 1px;
    background: rgba(56, 189, 248, 0.3);
    margin: 0.375rem 0;
}

/* Menu items */
.parent-topbar-user__menu-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    color: #073b5c;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.parent-topbar-user__menu-item:hover {
    background: rgba(255, 228, 92, 0.2);
    color: #0369a1;
}

.parent-topbar-user__menu-item svg {
    color: #54748a;
    flex-shrink: 0;
}

.parent-topbar-user__menu-item:hover svg {
    color: #0369a1;
}

.parent-topbar-user__menu-item--danger {
    color: #dc2626;
}

.parent-topbar-user__menu-item--danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.parent-topbar-user__menu-item--danger svg {
    color: #dc2626;
}

.parent-topbar-user__menu-form {
    display: contents;
}
