/* Streaming Adaptive Card Styles */

.streaming-card-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.adaptive-card-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    min-height: 6.25rem;
    transition: all 0.3s ease;
}

.streaming-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: #666;
    font-size: 0.875rem;
}

.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #0078d4;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Adaptive Card styling overrides */
.adaptive-card-content .ac-textBlock {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.adaptive-card-content .ac-container {
    padding: 0.75rem 0;
}

.adaptive-card-content .ac-columnSet {
    gap: 1rem;
}

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

/* Button styles */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: #0078d4;
    color: white;
}

.btn-primary:hover {
    background-color: #106ebe;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .streaming-card-container {
        padding: 0.75rem;
    }

    .adaptive-card-content {
        padding: 1rem;
    }

    .adaptive-card-content .ac-columnSet {
        flex-direction: column;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .adaptive-card-content {
        background: #1e1e1e;
        color: #e0e0e0;
    }

    .adaptive-card-content .ac-textBlock {
        color: #e0e0e0;
    }

    .streaming-indicator {
        color: #aaa;
    }
}

/* Card action processing state */
.adaptive-card.processing {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.adaptive-card.processing::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald-50, #26c485), var(--emerald-30, #8be2bf), var(--emerald-50, #26c485));
    background-size: 200% 100%;
    animation: card-processing-bar 1.5s ease-in-out infinite;
}

@keyframes card-processing-bar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .adaptive-card.processing {
        transition: none;
    }

    .adaptive-card.processing::after {
        animation: none;
        background: var(--emerald-50, #26c485);
    }
}

/* Error state */
.error {
    color: #c00;
    padding: 1rem;
    text-align: center;
}
