/* ==================== */
/* Premium Polish & Micro-interactions */
/* ==================== */

/* ---- Avatar Depth System ----
   All coworker avatars get consistent depth treatment.
   RULE: Every avatar image in the app should have:
   - A subtle multi-layer box-shadow for lift
   - A thin semi-transparent white border for definition
   - border-radius appropriate to its size
   Apply .avatar-polished class or use these selectors directly.
   When adding new chat tools or avatars, include them here.
   ---------------------------------------- */

/* Large avatars (80px+): welcome screens, splash, upsell */
.empty-state-avatar,
.studio-idea-avatar,
.export-upsell-avatar {
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.10),
        0 1px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Medium avatars (36–56px): inline chat messages, review panels */
.chat-assistant-avatar,
.review-assistant-avatar,
.studio-msg-avatar {
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.09),
        0 0.5px 2px rgba(0, 0, 0, 0.05);
}

/* Compliance guide inline avatar (slightly smaller) */
.cg-chat-msg-assistant .chat-assistant-avatar {
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.09),
        0 0.5px 2px rgba(0, 0, 0, 0.05);
}

/* Smooth page load animation — only when visible */
.app-container.visible {
    animation: containerFadeIn 0.5s ease-out;
}

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

/* Avatar ring glow on hover */
.agent-avatar,
.message-avatar,
.summary-avatar {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Status indicator badges */
.summary-count {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    color: #4f46e5;
    font-size: 12px;
}

/* .toolbar-btn — merged into single definition above */

/* Message entrance animation */
.message {
    animation: messageSlide 0.3s ease-out;
}

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

/* Sidebar section dividers with gradient */
.sidebar-section {
    position: relative;
}

.sidebar-section::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.06) 20%, rgba(0, 0, 0, 0.06) 80%, transparent);
    margin: 16px 0 8px;
}

.sidebar-section:last-child::after {
    display: none;
}

/* Card stacking effect on Conference Room */
.summary-card:nth-child(1) { animation-delay: 0s; }
.summary-card:nth-child(2) { animation-delay: 0.05s; }
.summary-card:nth-child(3) { animation-delay: 0.1s; }
.summary-card:nth-child(4) { animation-delay: 0.15s; }
.summary-card:nth-child(5) { animation-delay: 0.2s; }
.summary-card:nth-child(6) { animation-delay: 0.25s; }

.summary-card {
    animation: cardSlide 0.4s ease-out backwards;
}

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

/* Time labels */
.item-time {
    font-size: 12px;
    color: #888;
    margin-right: 6px;
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Logo subtle hover */
.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Hide all scrollbars while keeping scroll functionality */
* {
    scrollbar-width: none; /* Firefox */
    /* -ms-overflow-style removed — Edge is Chromium-based now */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Selection highlight color */
::selection {
    background: rgba(79, 70, 229, 0.2);
    color: inherit;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.5);
    outline-offset: 2px;
}

/* Subtle text shadow for headers */
.summary-name,
.agent-name,
.onboarding-title {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Document/listing preview */
.listing-preview {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.document-link {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.document-link:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateX(3px);
}

/* Video container polish */
.agent-video,
.notification-video {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.agent-video video,
.notification-video video {
    border-radius: 12px;
}

