/* Shared customer app chrome (dashboard, book, etc.) */
body.customer-app-shell {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

.customer-app-shell .page-view,
.customer-app-shell .step-view {
    display: none;
    animation: cuFadeIn 0.25s ease-out;
}

.customer-app-shell .page-view.active,
.customer-app-shell .step-view.active {
    display: block;
}

@keyframes cuFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.customer-app-shell .ai-pulse {
    animation: cuPulseGlow 2s infinite;
}

@keyframes cuPulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.customer-app-shell .sidebar-item.active {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    border-right: 3px solid #FFC107;
}

.customer-app-shell .bottom-nav-item.active {
    color: #0f172a;
    font-weight: 700;
}

.customer-app-shell .bottom-nav-item.active i {
    color: #0f172a;
}

.customer-app-shell .bottom-nav-item.active span {
    border-bottom: 2px solid #FFC107;
    padding-bottom: 2px;
}

.customer-app-shell #toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .customer-app-shell #toast-container {
        left: auto;
        right: 16px;
        transform: none;
        top: 16px;
    }
}

.customer-app-shell .toast {
    background: #0f172a;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: cuPopIn 0.25s ease-out forwards, cuFadeOutToast 0.25s ease-in forwards 2.5s;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

@keyframes cuPopIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cuFadeOutToast {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

.customer-app-shell .loc-dropdown {
    display: none;
}

.customer-app-shell .loc-active .loc-dropdown {
    display: block;
    animation: cuPopup 0.15s ease-out;
}

@keyframes cuPopup {
    from { opacity: 0; transform: scale(0.97) translateY(-4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.customer-app-shell .hide-scroll::-webkit-scrollbar {
    display: none;
}

.customer-app-shell .hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.customer-app-shell .pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

.customer-app-shell .ai-progress-bar {
    width: 0%;
    transition: width 0.4s ease;
}

/* Unify button vs link sidebar items */
.customer-app-shell .sidebar-item {
    text-decoration: none;
    color: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.customer-app-shell a.sidebar-item:hover,
.customer-app-shell button.sidebar-item:hover {
    text-decoration: none;
}
