/* Demo Section Styles */

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    /* Reduced gap for better fit */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
    /* Ensure same height */
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.5);
    transition: 0.3s;
    animation: pulse 2s infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: 0.3s;
}

.chat-window.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chat-header {
    padding: 15px;
    background: rgba(0, 255, 157, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 80%;
    font-size: 0.9rem;
}

.message.bot {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-top-left-radius: 0;
}

.message.user {
    background: rgba(0, 255, 157, 0.2);
    color: var(--color-accent);
    align-self: flex-end;
    border-top-right-radius: 0;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    padding: 8px;
    color: white;
    border-radius: 4px;
}

/* Receipt Upload Demo */
.upload-demo {
    background: var(--color-bg-card);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.drop-zone {
    border: 2px dashed var(--color-border);
    padding: 40px;
    border-radius: 8px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--color-accent);
    background: rgba(0, 255, 157, 0.05);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
    animation: scan 2s linear infinite;
    display: none;
}

.drop-zone.scaning .scan-line {
    display: block;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

@media (max-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr;
    }
}

/* Command Center */
.command-center {
    animation: fadeIn 0.5s ease-out 0.5s backwards;
}

.btn-command {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.btn-command:hover {
    background: rgba(0, 255, 157, 0.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

.btn-command:active {
    transform: scale(0.95);
}

.btn-command i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}