/* interop.io Official Color Palette */
:root {
    --interop-orange: #FF6B35;
    --interop-dark: #2B2B2B;
    --interop-darker: #1A1A1A;
    --bg-dark: #0F1419;
    --bg-darker: #0A0D11;
    --bg-card: #1A1F26;
    --bg-hover: #242B34;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B8C1;
    --text-muted: #6B7280;
    --border-color: #2D3748;
    --border-glow: rgba(255, 107, 53, 0.2);
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --flagged-red: #EF4444;
    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.1);
    --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 48px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect for loading header - top border */
.loading-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--interop-orange), transparent);
    animation: shimmer 3s infinite;
    border-radius: 16px 16px 0 0;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.loading-branding {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.loading-logo-img {
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}

.loading-logo-img.interop {
    height: 32px;
}

.loading-logo-img.io-insights {
    height: 32px;
    transform: translateY(1px);
}

.loading-logo-img.ai-insights {
    height: 32px;
}

.loading-logo-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 24px;
    font-weight: 200;
    line-height: 32px;
}

.loading-thinking {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

.loading-thinking .dot {
    animation: dot-pulse 1.4s ease-in-out infinite;
}

.loading-thinking .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-thinking .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {

    0%,
    60%,
    100% {
        opacity: 0.3;
    }

    30% {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.container {
    /*max-width: 1920px;*/
    margin: 0;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--interop-orange), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.branding-left {
    display: flex;
    align-items: center;
}

.branding-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.powered-by-text {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
    margin-right: 6px;
}

.logo-insights-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-insights-fallback {
    font-size: 42px;
    font-weight: 200;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    display: none;
}

.product-text {
    font-size: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

.logo-interop-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 4px;
}

.logo-interop-fallback {
    display: none;
    align-items: center;
    gap: 8px;
}

.interop-icon {
    width: 26px;
    height: 26px;
}

.logo-interop-fallback span {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
}

.ai-insights-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.ai-insights-fallback {
    display: none;
    font-size: 32px;
    font-weight: 100;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* Floating Action Buttons (FAB) - Horizontal Layout */
.dashboard-fab {
    position: fixed;
    bottom: 32px;
    right: 165px;
    /* Adjusted for smaller button width */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    /* Reduced from 16px 24px */
    background: linear-gradient(135deg, var(--interop-orange), #FF8555);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    /* Reduced from 15px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 900;
}

.dashboard-fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
}

.dashboard-fab:active {
    transform: translateY(-2px) scale(1.02);
}

.dashboard-fab svg {
    width: 20px;
    /* Reduced from 24px */
    height: 20px;
    flex-shrink: 0;
}

/* Chat Button - positioned to the right of dashboard button */
.chat-fab {
    position: fixed;
    bottom: 32px;
    /* Same bottom position as dashboard button */
    right: 32px;
    /* Rightmost position */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    /* Reduced from 16px 24px */
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    /* Reduced from 15px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 900;
}

.chat-fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(74, 144, 226, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
}

.chat-fab:active {
    transform: translateY(-2px) scale(1.02);
}

.chat-fab svg {
    width: 20px;
    /* Reduced from 24px */
    height: 20px;
    flex-shrink: 0;
}

.fab-label {
    font-size: 14px;
    /* Reduced from 15px */
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive: Hide label on smaller screens */
@media (max-width: 768px) {

    .dashboard-fab,
    .chat-fab {
        padding: 12px;
        /* Smaller on mobile too */
        border-radius: 50%;
        width: 48px;
        /* Reduced from 56px */
        height: 48px;
        justify-content: center;
    }

    .fab-label {
        display: none;
    }
}

/* Remove old dashboard button styles */
.dashboard-btn {
    display: none;
}

.dashboard-btn svg {
    width: 20px;
    height: 20px;
}

/* Dashboard Modal */
.dashboard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.dashboard-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dashboard-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 1400px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.dashboard-branding {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-powered-text {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.dashboard-ai-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.dashboard-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.dashboard-body::-webkit-scrollbar {
    width: 8px;
}

.dashboard-body::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.dashboard-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.dashboard-body::-webkit-scrollbar-thumb:hover {
    background: var(--interop-orange);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
    border-color: var(--interop-orange);
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dashboard-card-icon {
    font-size: 28px;
}

.dashboard-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-card-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--interop-orange);
    margin: 8px 0;
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.metric-change.positive {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.metric-change.negative {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.metric-change.neutral {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.performer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.performer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.performer-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

.performer-name {
    font-weight: 600;
    color: var(--text-primary);
}

.performer-metric {
    display: flex;
    align-items: center;
    gap: 8px;
}

.performer-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.performer-badge.excellent {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.performer-badge.good {
    background: rgba(0, 188, 212, 0.2);
    color: #00BCD4;
}

.alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #FF9800;
    border-radius: 8px;
}

.alert-item.error {
    background: rgba(244, 67, 54, 0.1);
    border-left-color: #F44336;
}

.alert-item.warning {
    background: rgba(255, 152, 0, 0.1);
    border-left-color: #FF9800;
}

.alert-item.info {
    background: rgba(33, 150, 243, 0.1);
    border-left-color: #2196F3;
}

.alert-icon {
    font-size: 20px;
    line-height: 1;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.alert-description {
    font-size: 14px;
    color: var(--text-secondary);
}

.trend-chart {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.trend-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.trend-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Operational Dashboard Layout */
.dashboard-operational {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    height: 100%;
}

.operational-status,
.ai-suggestions {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    overflow-y: auto;
}

.operational-title,
.suggestions-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.operational-icon,
.suggestions-icon {
    font-size: 28px;
}

/* Status Checks */
.status-checks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.status-check {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.status-check.status-good {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.05);
}

.status-check.status-warning {
    border-color: rgba(255, 152, 0, 0.4);
    background: rgba(255, 152, 0, 0.05);
}

.status-check.status-alert {
    border-color: rgba(244, 67, 54, 0.4);
    background: rgba(244, 67, 54, 0.05);
}

.status-check.status-info {
    border-color: rgba(74, 144, 226, 0.4);
    background: rgba(74, 144, 226, 0.05);
}

.status-check.status-team {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.05);
}

.status-indicator {
    font-size: 32px;
    line-height: 1;
}

.status-content {
    flex: 1;
}

.status-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.status-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.status-detail {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 8px;
}

.status-alerts,
.status-opportunities {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

.status-alert-item,
.opportunity-item {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--interop-orange);
}

.status-alert-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 13px;
}

.status-alert-item p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.opportunity-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 4px;
}

.opportunity-action {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Action Items Grid */
.status-check.status-action-items {
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 107, 53, 0.05);
}

.action-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}

.action-item-category {
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 4px solid var(--interop-orange);
    transition: all 0.2s ease;
}

.action-item-category:hover {
    background: rgba(0, 0, 0, 0.4);
    border-left-color: #ff8c42;
}

.action-item-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.action-item-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--interop-orange);
    line-height: 1;
}

.action-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.action-item-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Team Overview */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.team-member {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    transition: all 0.2s ease;
}

.team-member:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-1px);
}

.team-member.top-performer {
    border-color: var(--interop-orange);
    background: rgba(255, 107, 53, 0.1);
}

.team-member.top-performer:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: var(--interop-orange);
}

.member-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(74, 144, 226, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: white;
    flex-shrink: 0;
}

.top-performer .member-avatar {
    background: linear-gradient(135deg, var(--interop-orange), #f7931e);
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-specialty {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
}

.member-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: var(--interop-orange);
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
}

.member-stat.success-rate {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.member-stat.success-rate .stat-value {
    font-size: 14px;
}

.member-stat.success-rate .stat-label {
    font-size: 10px;
    text-transform: none;
}

.top-performer .member-stat.success-rate {
    border-top-color: rgba(255, 107, 53, 0.3);
}

.top-badge {
    font-size: 9px;
    margin-top: 8px;
    padding: 4px 6px;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 4px;
    text-align: center;
    color: var(--interop-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.quick-stat {
    text-align: center;
}

.quick-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--interop-orange);
    margin-bottom: 4px;
}

.quick-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

/* AI Suggestions */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.suggestion-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.suggestion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

.suggestion-card.high {
    border-color: rgba(244, 67, 54, 0.5);
    background: rgba(244, 67, 54, 0.05);
}

.suggestion-card.medium {
    border-color: rgba(255, 152, 0, 0.5);
    background: rgba(255, 152, 0, 0.05);
}

.suggestion-card.low {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.05);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.suggestion-icon {
    font-size: 24px;
}

.suggestion-badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.suggestion-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.suggestion-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.suggestion-action {
    padding: 10px 20px;
    background: var(--interop-orange);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.suggestion-action:hover {
    background: #FF8555;
    transform: translateX(2px);
}

.suggestion-action:active {
    transform: scale(0.98);
}

/* Mini Sections */
.mini-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.mini-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.mini-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.mini-item:last-child {
    border-bottom: none;
}

.mini-name {
    font-size: 13px;
    color: var(--text-primary);
}

.mini-value {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Chat Modal */
.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.chat-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.chat-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
}

.chat-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--interop-orange);
}

.chat-message {
    display: flex;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.assistant-message .message-avatar {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--interop-orange), #FF8555);
}

.message-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.message-content p {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.message-content li {
    margin: 4px 0;
}

.message-content strong {
    color: var(--interop-orange);
}

.chat-input-container {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.chat-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4A90E2;
}

.chat-input::placeholder {
    color: var(--text-secondary);
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-send-btn svg {
    width: 20px;
    height: 20px;
}

/* Filters Bar */
.filters-bar {
    padding: 20px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.filters-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.filters-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.filter-select {
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23FF6B35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-select:hover {
    border-color: var(--interop-orange);
    background-color: var(--bg-hover);
    box-shadow: 0 0 0 2px var(--border-glow), 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.filter-select:focus {
    outline: none;
    border-color: var(--interop-orange);
    box-shadow: 0 0 0 3px var(--border-glow), 0 4px 12px rgba(255, 107, 53, 0.2);
    transform: translateY(-1px);
}

.filter-select option {
    background: var(--bg-darker);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
}

.filter-select option:hover {
    background: var(--bg-hover);
    color: var(--interop-orange);
}

.filter-select option:checked {
    background: var(--interop-orange);
    color: white;
    font-weight: 600;
}

.filter-select option:disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

.reset-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-end;
}

.reset-btn:hover {
    background: var(--interop-orange);
    border-color: var(--interop-orange);
    color: white;
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.3);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 24px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Left Panel */
.left-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dark);
}

.panel-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-count {
    padding: 6px 14px;
    background: var(--interop-orange);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.sessions-list {
    overflow-y: auto;
    padding: 16px;
    flex: 1;
}

.sessions-list::-webkit-scrollbar {
    width: 8px;
}

.sessions-list::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.sessions-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.sessions-list::-webkit-scrollbar-thumb:hover {
    background: var(--interop-orange);
}

/* Session Card */
.session-card {
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.session-card:hover {
    background: var(--bg-hover);
    border-color: var(--interop-orange);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
    transform: translateX(4px);
}

.session-card.selected {
    background: var(--bg-hover);
    border-color: var(--interop-orange);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.session-card.flagged {
    border-left: 3px solid var(--flagged-red);
}

.session-card.flagged::before {
    content: '🚩';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 16px;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.session-intent {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.session-user {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.session-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-darker);
    border-radius: 6px;
    font-weight: 600;
}

.session-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.duration-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
}

.duration-badge.fast {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.duration-badge.normal {
    background: rgba(255, 179, 0, 0.15);
    color: var(--warning);
}

.duration-badge.slow {
    background: rgba(255, 61, 61, 0.15);
    color: var(--error);
}

/* Right Panel */
.right-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .main-content {
        grid-template-columns: 450px 1fr;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .left-panel {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .reset-btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.session-card {
    animation: fadeIn 0.3s ease;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* ==================== Session Replay Styles ==================== */

/* Replay Container */
.session-replay-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 24px;
    overflow: hidden;
    min-width: 0;
}

/* Windows Canvas */
.windows-canvas {
    flex: 1;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    /* Round top corners only */
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    /* Remove margin, connect to taskbar */
    min-height: 0;
    /* Allow flexbox to shrink */
    min-width: 0;
    /* Prevent horizontal expansion */
}

/* Only show logo background when a workflow is loaded */
.windows-canvas.session-loaded {
    background-image: url('../assets/interop-logo.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 400px auto;
}

.windows-canvas.session-loaded::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-darker);
    opacity: 0.92;
    pointer-events: none;
    z-index: 0;
}

.windows-canvas>* {
    position: relative;
    z-index: 1;
}

.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-secondary);
    pointer-events: none;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Window Frame */
.window-frame {
    position: absolute;
    background: #2D3139;
    border: 1px solid #3E4451;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.window-frame.opening {
    animation: windowOpen 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.window-frame.closing {
    animation: windowClose 0.3s ease-out;
}

@keyframes windowOpen {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes windowClose {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.window-titlebar {
    height: 32px;
    background: linear-gradient(to bottom, #3E4451, #2D3139);
    border-bottom: 1px solid #1C1E24;
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
}

.window-title {
    font-size: 12px;
    color: #ABB2BF;
    font-weight: 500;
    flex: 1;
    padding-left: 8px;
    user-select: none;
}

.window-buttons {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    height: 100%;
}

.window-button {
    width: 45px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: default;
    position: relative;
}

.window-button::after {
    content: '';
    width: 10px;
    height: 10px;
    display: block;
}

.window-button.minimize::after {
    width: 10px;
    height: 1px;
    background: #ABB2BF;
}

.window-button.maximize::after {
    width: 9px;
    height: 9px;
    border: 1px solid #ABB2BF;
}

.window-button.close {
    background: #E81123;
}

.window-button.close::before,
.window-button.close::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 1px;
    background: white;
    top: 50%;
    left: 50%;
}

.window-button.close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.window-button.close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.window-content {
    height: calc(100% - 32px);
    background: #1E2127;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 11px;
    padding: 0;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.window-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.window-placeholder {
    padding: 8px;
    text-align: center;
}

/* Focus Animation */
.window-frame.focused {
    border-color: var(--interop-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.window-frame.focused::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--interop-orange), transparent, var(--interop-orange));
    border-radius: 8px;
    z-index: -1;
    animation: focusPulse 2s ease-in-out infinite;
}

@keyframes focusPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Click Animation */
.click-marker {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 1001;
}

.click-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--interop-orange);
    border-radius: 50%;
    animation: clickPulse 0.6s ease-out;
}

.click-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid var(--interop-orange);
    border-radius: 50%;
    animation: clickRipple 0.6s ease-out;
}

@keyframes clickPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

@keyframes clickRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* AI Feedback Panels */
.ai-feedback-container {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.ai-feedback-container.collapsed .feedback-panels {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0s 0.3s;
    padding: 0 16px;
}

.ai-feedback-container:not(.collapsed) .feedback-panels {
    max-height: 600px;
    overflow-y: auto;
    transition: max-height 0.3s ease-in, padding 0s;
    padding: 12px 16px;
}

.feedback-toggle {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.05));
    border: none;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.feedback-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(255, 107, 53, 0.1));
}

.toggle-icon {
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clippy-icon {
    width: 24px;
    height: 24px;
    color: var(--interop-orange);
    animation: clippy-wave 3s ease-in-out infinite;
}

@keyframes clippy-wave {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    10% {
        transform: rotate(-10deg) translateY(-2px);
    }

    20% {
        transform: rotate(10deg) translateY(0);
    }

    30% {
        transform: rotate(-10deg) translateY(-2px);
    }

    40% {
        transform: rotate(0deg) translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.toggle-text {
    flex: 1;
    text-align: left;
}

.toggle-chevron {
    font-size: 12px;
    transition: transform 0.3s;
    color: var(--interop-orange);
}

.ai-feedback-container:not(.collapsed) .toggle-chevron {
    transform: rotate(180deg);
}

.feedback-panels {
    padding: 12px 16px;
}

.ai-feedback-panel {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.ai-feedback-panel:last-child {
    margin-bottom: 0;
}

.ai-feedback-panel.session-feedback {
    border-left: 4px solid var(--interop-orange);
}

.ai-feedback-panel.step-feedback {
    border-left: 4px solid #4A90E2;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 107, 53, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.ai-feedback-panel.step-feedback .feedback-header {
    background: rgba(74, 144, 226, 0.1);
}

.feedback-icon {
    font-size: 20px;
}

.feedback-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.feedback-content {
    padding: 16px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.feedback-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.feedback-content li {
    margin: 6px 0;
}

.feedback-tag {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 107, 53, 0.15);
    color: var(--interop-orange);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 4px;
}

.feedback-tag.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

.feedback-tag.info {
    background: rgba(74, 144, 226, 0.15);
    color: #4A90E2;
}

.feedback-suggestion {
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4CAF50;
    padding: 12px;
    margin-top: 12px;
    border-radius: 4px;
}

.feedback-suggestion strong {
    color: #4CAF50;
    display: block;
    margin-bottom: 6px;
}

/* Taskbar */
.taskbar {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-top: none;
    /* Remove top border to connect with canvas */
    border-radius: 0 0 12px 12px;
    /* Round bottom corners only */
    padding: 8px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.taskbar-app {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.taskbar-app.active {
    background: var(--bg-card);
    border-color: var(--interop-orange);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.3);
}

.taskbar-app-icon {
    width: 24px;
    height: 24px;
    background: var(--interop-orange);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.taskbar-app-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taskbar-app-count {
    background: var(--interop-orange);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.taskbar-separator {
    width: 1px;
    height: 32px;
    background: var(--border-color);
    margin: 0 4px;
}

.taskbar-clock {
    margin-left: auto;
    padding: 4px 12px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.clock-time {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.2;
}

.clock-date {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Timeline Controls */
.timeline-controls {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    min-width: 0;
}

.timeline-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.timeline-steps {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 32px 0 8px 0;
    flex: 1;
    min-width: 0;
}

.timeline-steps::-webkit-scrollbar {
    height: 8px;
}

.timeline-steps::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 4px;
}

.timeline-steps::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background 0.2s;
}

.timeline-steps::-webkit-scrollbar-thumb:hover {
    background: var(--interop-orange);
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

.timeline-step.has-feedback:hover {
    z-index: 10000;
}

.timeline-step:hover .step-radio {
    border-color: var(--interop-orange);
}

.step-radio {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-darker);
    transition: all 0.2s;
    position: relative;
    margin-bottom: 8px;
}

.timeline-step.active .step-radio {
    border-color: var(--interop-orange);
    background: var(--interop-orange);
}

.timeline-step.active .step-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.timeline-step.completed .step-radio {
    border-color: var(--success-green);
    background: var(--success-green);
}

/* First and Last Step Markers */
.timeline-step.first-step::before,
.timeline-step.last-step::before {
    content: '';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    line-height: 1;
}

.timeline-step.first-step::before {
    content: '🎬';
}

.timeline-step.last-step::before {
    content: '🏁';
}

.timeline-step.first-step .step-label,
.timeline-step.last-step .step-label {
    font-weight: 600;
}

.step-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-step.active .step-label {
    color: var(--interop-orange);
    font-weight: 600;
}

.timeline-step.has-feedback .step-radio {
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.timeline-step.has-feedback.active .step-radio {
    border-color: var(--interop-orange);
    background: var(--interop-orange);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.3);
}

.timeline-step.has-feedback .step-radio::before {
    content: '💡';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* Custom tooltip for AI feedback on timeline steps */
.ai-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 280px;
    width: max-content;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ai-tooltip.visible {
    opacity: 1;
}

.ai-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
}

.ai-tooltip strong {
    color: var(--interop-orange);
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-step.has-feedback:hover .step-radio {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.5);
}

.timeline-step.has-feedback:hover .step-radio::before {
    animation: none;
    transform: translateX(-50%) scale(1.2);
}

/* Enhanced tooltip for steps with feedback */
.timeline-step[title] {
    position: relative;
}

.timeline-connector {
    width: 24px;
    height: 2px;
    background: var(--border-color);
    flex-shrink: 0;
}

.timeline-connector.completed {
    background: var(--success-green);
}

/* Playback Section */
.playback-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

/* Playback Controls */
.playback-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.speed-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
    margin: 0 8px;
}

.control-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    color: var(--text-primary);
}

.control-btn:hover {
    background: var(--bg-hover);
    border-color: var(--interop-orange);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.play-btn {
    background: var(--interop-orange);
    border-color: var(--interop-orange);
    width: 40px;
    height: 40px;
}

.control-btn.play-btn:hover {
    background: #FF7D4F;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.control-btn svg {
    width: 16px;
    height: 16px;
}

.control-btn.play-btn svg {
    width: 20px;
    height: 20px;
}

.playback-speed {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.playback-speed label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.playback-speed select {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 6px 28px 6px 12px;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23FF6B35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all 0.2s;
}

.playback-speed select:hover {
    border-color: var(--interop-orange);
    background-color: var(--bg-hover);
}

.playback-speed select:focus {
    outline: none;
    border-color: var(--interop-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
