﻿.chat-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f7f7f8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Chat Content Area */
.chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 20px;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    display: flex;
    flex-direction: column-reverse;
}

.messages-wrapper {
    min-width: 1000px;
    max-width: 1200px;
    margin: auto auto 0 auto;
    padding: 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Message Groups */
.message-group {
    margin-bottom: 24px;
}

.user-message .message-content {
    flex-direction: row-reverse;
}

.user-message .message-text {
    background-color: #f0f0f0;
}

.assistant-message {
    /* AI messages sit on the left — no special block background */
}

.message-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Message Avatars */
.message-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.user-avatar,
.ai-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #111;
    background: transparent;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Message Text */
.message-text {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    background-color: white;
    padding: 15px;
    box-shadow: 0 0.2px 0.5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.message-body {
    color: #374151;
    line-height: 1.6;
    font-size: 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.message-body p,
.message-body li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.message-body pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-all;
    max-width: 100%;
    overflow-x: auto;
}

.message-body code {
    overflow-wrap: anywhere;
    word-break: break-all;
}

.message-data {
    margin-top: 12px;
}

.data-preview {
    color: #6b7280;
    font-style: italic;
}

.message-time {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

/* Input Area */
.chat-input-container {
    background: #f7f7f8;
    border-top: 1px solid #ebebed;
    padding: 14px 20px 16px;
}

.input-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.input-area {
    position: relative;
    background: white;
    border: 1px solid #e0e0e3;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-area:focus-within {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.06);
}

.chat-textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    padding: 16px 50px 16px 16px;
    font-size: 16px;
    line-height: 1.5;
    background: transparent;
    max-height: 200px;
    min-height: 24px;
}

    .chat-textarea:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* send-button and voice-button styles moved to component */










    

.input-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.action-button {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

    .action-button:hover:not(:disabled) {
        background: #f9fafb;
        border-color: #9ca3af;
    }

    .action-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Welcome Screen */
.welcome-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin-bottom: 10%;
}

.welcome-content {
    max-width: 800px;
    text-align: center;
}

.welcome-header {
    margin-bottom: 48px;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin: 0;
}

.example-prompts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    max-width: 768px;
    margin: 0 auto;
}

.prompt-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
}

    .prompt-card:hover {
        border-color: #d1d5db;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

.prompt-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.prompt-text {
    flex: 1;
}

.prompt-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.prompt-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 8px 0;
}

    .typing-indicator span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #9ca3af;
        animation: typing 1.4s infinite ease-in-out;
    }

        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes typing {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

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

/* Responsive Design */
@media (max-width: 768px) {
    .messages-wrapper {
        padding: 16px;
    }

    .chat-input-container {
        padding: 10px 12px 14px;
    }

    .assistant-message {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .example-prompts {
        grid-template-columns: 1fr;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .chat-header-content {
        gap: 8px;
    }

    .chat-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .title-edit-input {
        font-size: 0.875rem;
        min-width: auto;
        width: 100%;
    }

    .header-icon-button {
        width: 32px;
        height: 32px;
    }
}

/* Chat Header Styles */
.chat-header {
    background: #f7f7f8;
    border-bottom: 1px solid #ebebed;
    padding: 8px 20px;
    flex-shrink: 0;
}

.chat-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.chat-title-section {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-title {
    font-size: 0.925rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

/* Title editing styles */
.title-display-container {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.title-edit-button {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    flex-shrink: 0;
}

.title-display-container:hover .title-edit-button {
    opacity: 1;
}

.title-edit-button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
}

.title-edit-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.title-edit-input {
    flex: 1;
    font-size: 0.925rem;
    font-weight: 600;
    color: #1f2937;
    background: white;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 4px 10px;
    outline: none;
    font-family: inherit;
    min-width: 160px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .title-edit-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
    }

.title-edit-actions {
    display: flex;
    gap: 2px;
}

.title-action-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .title-action-button.save {
        color: #059669;
    }

        .title-action-button.save:hover {
            background: #ecfdf5;
        }

    .title-action-button.cancel {
        color: #dc2626;
    }

        .title-action-button.cancel:hover {
            background: #fef2f2;
        }

.chat-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}

.participant-count-wrapper {
    position: relative;
}

.participant-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 2px 6px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 12px;
    font-family: inherit;
    transition: all 0.15s ease;
}

.participant-count:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}

.participant-count svg {
    opacity: 0.6;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Participant panel overlay */
.pp-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
}

.pp-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 280px;
    background: #fff;
    border: 1px solid #f0f0f2;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 100;
    overflow: hidden;
}

.pp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f2;
}

.pp-title {
    font-size: 0.8rem;
    font-weight: 650;
    color: #1f2937;
}

.pp-count {
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 1px 7px;
    border-radius: 10px;
}

.pp-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.pp-list::-webkit-scrollbar {
    width: 4px;
}

.pp-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.pp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.12s ease;
}

.pp-item:hover {
    background: #fafbfc;
}

.pp-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 650;
    color: #6b7280;
    flex-shrink: 0;
}

.pp-user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pp-user-name {
    font-size: 0.78rem;
    font-weight: 550;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pp-user-email {
    font-size: 0.68rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-owner-badge {
    font-size: 0.6rem;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pp-you-badge {
    font-size: 0.6rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pp-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    color: #d1d5db;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.pp-remove-btn:hover {
    background: #fef2f2;
    color: #ef4444;
}

.online-indicator {
    color: #10b981;
    font-weight: 500;
}

    .online-indicator::before {
        content: '';
        width: 6px;
        height: 6px;
        background: #10b981;
        border-radius: 50%;
        display: inline-block;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chat-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.header-icon-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .header-icon-button:hover {
        background: rgba(0, 0, 0, 0.06);
        color: #374151;
    }

    .header-icon-button:active {
        transform: scale(0.95);
    }

    .header-icon-button svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

.status-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: #f97316;
    border-radius: 50%;
    border: 1.5px solid #f7f7f8;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 20px 16px;
    gap: 12px;
}

.modal-header-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.modal-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border-radius: 10px;
    color: #4f46e5;
    flex-shrink: 0;
}

.modal-title {
    font-size: 0.95rem;
    font-weight: 650;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 2px 0 0 0;
}

.modal-close-button {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .modal-close-button:hover {
        background: #f3f4f6;
        color: #4b5563;
    }

.modal-body {
    padding: 0 20px 20px;
}

.share-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.share-email-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.835rem;
    line-height: 1.6;
    resize: none;
    min-height: 80px;
    font-family: inherit;
    color: #374151;
    background: #fafafa;
    transition: all 0.15s ease;
}

    .share-email-input::placeholder {
        color: #b0b5be;
    }

    .share-email-input:focus {
        outline: none;
        background: #fff;
        border-color: #c7d0dd;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.06);
    }

.email-help-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 6px 0 0;
    line-height: 1.45;
}

.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 12px 20px 16px;
}

.btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.825rem;
    font-weight: 550;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.12s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: inherit;
}

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

.btn-primary {
    background: #374151;
    color: white;
    border-color: #374151;
}

    .btn-primary:hover:not(:disabled) {
        background: #1f2937;
        border-color: #1f2937;
    }

.btn-secondary {
    background: white;
    color: #6b7280;
    border-color: #e5e7eb;
}

    .btn-secondary:hover:not(:disabled) {
        background: #f9fafb;
        border-color: #d1d5db;
        color: #374151;
    }

.btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}



.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

    .typing-indicator span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #666;
        animation: typing 1.4s infinite ease-in-out;
    }

        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

/* Modern Typing Indicator */
.typing-indicator-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease-in-out;
}

.typing-indicator-bubble {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 280px;
}

.typing-indicator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.typing-indicator-avatar .avatar-initials {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.typing-indicator-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.typing-indicator-names {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    line-height: 1.2;
}

.typing-user-name {
    color: #1f2937;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.typing-action {
    color: #6b7280;
    font-weight: 400;
    flex-shrink: 0;
}

.typing-dots-animation {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 16px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

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

.status-panel-button {
    position: relative;
}

.processing-status-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1090;
}

.processing-status-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.processing-status-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100%;
    background: #fff;
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.35);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.processing-status-panel.open {
    transform: translateX(0);
}

.processing-status-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.processing-status-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.processing-status-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.processing-status-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.processing-status-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    padding: 6px;
    transition: background 0.2s;
}

    .processing-status-close:hover {
        background: #f3f4f6;
        color: #111827;
    }

.processing-status-body {
    padding: 8px 24px 32px 24px;
    overflow-y: auto;
    flex: 1;
}

.processing-status-empty {
    padding: 32px 16px;
    text-align: center;
    color: #6b7280;
}

    .processing-status-empty h4 {
        margin-bottom: 8px;
        font-size: 1rem;
        color: #0f172a;
    }

.processing-status-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.processing-status-step {
    position: relative;
    padding-left: 24px;
    margin-left: 8px;
    border-left: 2px solid #e5e7eb;
    padding-bottom: 18px;
}

    .processing-status-step:last-child {
        padding-bottom: 0;
    }

    .processing-status-step::before {
        content: "";
        position: absolute;
        left: -7px;
        top: 10px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #cbd5f5;
        border: 2px solid currentColor;
    }

.processing-status-step-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.processing-status-stage {
    font-weight: 600;
    color: #0f172a;
}

.status-tag {
    font-size: 12px;
    text-transform: capitalize;
    background: #e2e8f0;
    color: #0f172a;
    padding: 2px 8px;
    border-radius: 999px;
}

.status-tag-final {
    background: #0f172a;
    color: #fff;
}

.processing-status-message {
    margin: 0 0 6px 0;
    color: #334155;
    line-height: 1.4;
}

.processing-status-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    gap: 12px;
}

.processing-status-step.accent-thinking {
    color: #6366f1;
}

.processing-status-step.accent-reasoning {
    color: #0ea5e9;
}

.processing-status-step.accent-fetching {
    color: #10b981;
}

.processing-status-step.accent-finalizing {
    color: #f97316;
}

@media (max-width: 768px) {
    .processing-status-panel {
        width: 100%;
    }
}

/* =============================================
   Pixel Loading Animation - Character + Cart
   Sprites draw UPWARD (negative Y) so feet/wheels
   sit at the element and everything renders above.
   ============================================= */
.pixel-loading-bar {
    width: 100%;
    height: 38px;
    position: relative;
    margin-bottom: 2px;
}

.pixel-scene {
    display: flex;
    align-items: flex-end;
    position: absolute;
    bottom: 2px;
    animation: pushCart 12s linear infinite;
}

@keyframes pushCart {
    0% { left: -100px; }
    100% { left: 100%; }
}

/* Person sprite - drawn upward from feet (y=0 is feet, negative = up) */
.pixel-person-walk {
    width: 3px;
    height: 3px;
    background: transparent;
    overflow: visible;
    position: relative;
    margin-right: 2px;
    animation: walkCycle 0.4s steps(1) infinite;
    box-shadow:
        /* Feet (ground level) */
        3px 0 0 #34495e, 9px 0 0 #34495e,
        /* Shins */
        3px -3px 0 #2c3e50, 9px -3px 0 #2c3e50,
        /* Lower body */
        3px -6px 0 #c0392b, 6px -6px 0 #c0392b, 9px -6px 0 #c0392b,
        /* Upper body */
        3px -9px 0 #e74c3c, 6px -9px 0 #e74c3c, 9px -9px 0 #e74c3c,
        /* Arms pushing forward */
        12px -9px 0 #fcd5b0, 15px -8px 0 #fcd5b0,
        /* Neck */
        6px -12px 0 #fcd5b0,
        /* Head row 2 (with eye) */
        3px -15px 0 #fcd5b0, 6px -15px 0 #333, 9px -15px 0 #fcd5b0,
        /* Head row 1 */
        3px -18px 0 #fcd5b0, 6px -18px 0 #fcd5b0, 9px -18px 0 #fcd5b0,
        /* Hat */
        3px -21px 0 #e74c3c, 6px -21px 0 #e74c3c, 9px -21px 0 #e74c3c;
}

@keyframes walkCycle {
    0%, 100% {
        box-shadow:
            3px 0 0 #34495e, 9px 0 0 #34495e,
            3px -3px 0 #2c3e50, 9px -3px 0 #2c3e50,
            3px -6px 0 #c0392b, 6px -6px 0 #c0392b, 9px -6px 0 #c0392b,
            3px -9px 0 #e74c3c, 6px -9px 0 #e74c3c, 9px -9px 0 #e74c3c,
            12px -9px 0 #fcd5b0, 15px -8px 0 #fcd5b0,
            6px -12px 0 #fcd5b0,
            3px -15px 0 #fcd5b0, 6px -15px 0 #333, 9px -15px 0 #fcd5b0,
            3px -18px 0 #fcd5b0, 6px -18px 0 #fcd5b0, 9px -18px 0 #fcd5b0,
            3px -21px 0 #e74c3c, 6px -21px 0 #e74c3c, 9px -21px 0 #e74c3c;
    }
    50% {
        box-shadow:
            6px 0 0 #34495e, 6px 0 0 #34495e,
            3px -3px 0 #2c3e50, 9px -3px 0 #2c3e50,
            3px -6px 0 #c0392b, 6px -6px 0 #c0392b, 9px -6px 0 #c0392b,
            3px -9px 0 #e74c3c, 6px -9px 0 #e74c3c, 9px -9px 0 #e74c3c,
            12px -9px 0 #fcd5b0, 15px -8px 0 #fcd5b0,
            6px -12px 0 #fcd5b0,
            3px -15px 0 #fcd5b0, 6px -15px 0 #333, 9px -15px 0 #fcd5b0,
            3px -18px 0 #fcd5b0, 6px -18px 0 #fcd5b0, 9px -18px 0 #fcd5b0,
            3px -21px 0 #e74c3c, 6px -21px 0 #e74c3c, 9px -21px 0 #e74c3c;
    }
}

/* Cart sprite - drawn upward from wheels (y=0 is wheels, negative = up) */
.pixel-cart-walk {
    width: 3px;
    height: 3px;
    background: transparent;
    overflow: visible;
    position: relative;
    animation: cartBounce 0.4s ease-in-out infinite;
    box-shadow:
        /* Wheels (ground level) */
        0px 0 0 #444, 3px 0 0 #444,
        15px 0 0 #444, 18px 0 0 #444,
        /* Axle */
        3px -3px 0 #888, 6px -3px 0 #888, 9px -3px 0 #888, 12px -3px 0 #888, 15px -3px 0 #888,
        /* Cart bottom */
        0px -6px 0 #d35400, 3px -6px 0 #d35400, 6px -6px 0 #d35400, 9px -6px 0 #d35400, 12px -6px 0 #d35400, 15px -6px 0 #d35400, 18px -6px 0 #d35400, 21px -6px 0 #d35400,
        /* Cart body - cargo row 1 */
        0px -9px 0 #e67e22, 3px -9px 0 #f39c12, 6px -9px 0 #f39c12, 9px -9px 0 #f39c12, 12px -9px 0 #f39c12, 15px -9px 0 #f39c12, 18px -9px 0 #f39c12, 21px -9px 0 #e67e22,
        /* Cart body - cargo row 2 */
        0px -12px 0 #e67e22, 3px -12px 0 #f39c12, 6px -12px 0 #f1c40f, 9px -12px 0 #f1c40f, 12px -12px 0 #f1c40f, 15px -12px 0 #f39c12, 18px -12px 0 #f39c12, 21px -12px 0 #e67e22,
        /* Cart body - cargo row 3 (top of cargo) */
        0px -15px 0 #e67e22, 3px -15px 0 #f1c40f, 6px -15px 0 #f39c12, 9px -15px 0 #f1c40f, 12px -15px 0 #f39c12, 15px -15px 0 #f1c40f, 18px -15px 0 #f39c12, 21px -15px 0 #e67e22,
        /* Cart rim / top edge */
        0px -18px 0 #d35400, 3px -18px 0 #d35400, 6px -18px 0 #d35400, 9px -18px 0 #d35400, 12px -18px 0 #d35400, 15px -18px 0 #d35400, 18px -18px 0 #d35400, 21px -18px 0 #d35400,
        /* Handle (vertical bar from back of cart going up) */
        0px -21px 0 #888, 0px -24px 0 #888, 0px -27px 0 #888,
        /* Handle grip */
        -3px -27px 0 #666, 0px -27px 0 #666;
}

@keyframes cartBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
}
