/* Additional custom styles */

/* Card hover effect */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* File upload area styling */
#file-upload {
    cursor: pointer;
}

/* card text */
.premium-card{
    background-color: black;
}
/* Chart container responsive height */
.chart-container {
    width: 100%;
    min-height: 300px;
}

/* Custom animation for loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-border {
    animation: spin 1s linear infinite;
}

/* Status message styling */
#status-message {
    transition: all 0.3s ease;
}

/* Fade-in animation for visualization container */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#visualization-container.show {
    display: flex !important;
    animation: fadeIn 0.5s ease forwards;
}

/* Custom navbar styling */
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-brand i {
    font-size: 1.25rem;
}

/* Footer styling */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .chart-container {
        min-height: 250px;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Chart container hover effect and ask-ai button */
.chart-container-wrapper {
    position: relative;
}

.ask-ai-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    display: none;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ask-ai-button:hover {
    background-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.chart-container-wrapper:hover .ask-ai-button {
    display: flex;
    align-items: center;
}

.ask-ai-button i {
    margin-right: 5px;
}

/* AI Chat Modal Styling */
.ai-chat-modal .modal-header {
    background-color: var(--bs-primary);
    color: white;
}

.ai-chat-modal .chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.ai-chat-modal .message {
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.ai-chat-modal .user-message {
    background-color: var(--bs-light);
    color: black;
    margin-left: auto;
}

.ai-chat-modal .ai-message {
    background-color: var(--bs-primary);
    color: white;
}

.ai-chat-modal .chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #dee2e6;
}

.ai-chat-modal .chat-input input {
    flex: 1;
    margin-right: 10px;
}
