/* AI Command Center Enhancements */

/* Suggestion button hover effects */
.suggestion-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border-color: #007bff !important;
}

.suggestion-btn:active {
    transform: translateY(0px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Query input focus effects */
#chat-query-input:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    outline: none !important;
}

/* Run button enhancements */
#btn-submit-query {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2) !important;
}

#btn-submit-query:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3) !important;
}

#btn-submit-query:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Loading animation for processing state */
.processing-card {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 0 4px 6px rgba(0, 123, 255, 0.1);
    }
    to {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    }
}

/* Chat message animations */
.chat-message {
    animation: slideInUp 0.3s ease-out;
}

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

/* Tool calls accordion styling */
.tool-calls-accordion .accordion-button {
    font-size: 14px !important;
    padding: 8px 12px !important;
}

.tool-calls-accordion .accordion-body {
    padding: 12px !important;
    background-color: #f8f9fa !important;
}

/* Enhanced Workflow cards */
.workflow-card {
    transition: all 0.3s ease !important;
}

.workflow-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Status pulse animation */
.status-pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Workflow timeline styling */
.workflow-timeline {
    position: relative;
}

.timeline-line {
    transition: all 0.3s ease;
}

.timeline-connector {
    position: relative;
    margin-bottom: -40px;
    z-index: 1;
}

/* Step cards animation */
.workflow-timeline .card {
    transition: all 0.2s ease;
}

.workflow-timeline .card:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Progress bar enhancements */
.progress {
    border-radius: 10px !important;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease !important;
}

/* Workflow status badges */
.badge {
    font-weight: 500 !important;
    letter-spacing: 0.5px;
}

/* Technical details section */
.workflow-card pre {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.workflow-card pre:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}

/* Collapse animation enhancement */
.collapse {
    transition: height 0.35s ease !important;
}

/* State transition timeline */
.state-transition {
    border-left: 2px solid #e9ecef;
    padding-left: 1rem;
    margin-left: 0.5rem;
}

/* Responsive workflow cards */
@media (max-width: 768px) {
    .workflow-card {
        margin-bottom: 1rem;
    }
    
    .workflow-timeline .card {
        font-size: 0.9rem;
    }
    
    .timeline-connector {
        margin-bottom: -30px;
    }
}

/* Progress indicators */
.progress-step {
    transition: all 0.3s ease;
}

.progress-step.completed {
    color: #28a745 !important;
}

.progress-step.active {
    color: #007bff !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .suggestion-btn {
        min-height: 80px !important;
        font-size: 12px !important;
    }
    
    #chat-query-input {
        height: 80px !important;
    }
}

/* Custom scrollbar for chat history */
#chat-history {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f1f1f1;
}

#chat-history::-webkit-scrollbar {
    width: 6px;
}

#chat-history::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#chat-history::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

#chat-history::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}