/* Custom CSS for Excel Insights Assistant */

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Smooth animations */
* {
    transition: all 0.2s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Drag and drop styles */
.drag-over {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
}

/* Response content styles */
.response-section {
    border-left: 4px solid #3b82f6;
    background: #f8fafc;
    padding: 16px;
    margin: 16px 0;
    border-radius: 8px;
}

.response-section h3 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 8px;
}

.data-source-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.web-source-tag {
    background: #dcfce7;
    color: #166534;
}

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.875rem;
}

.data-table th {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
}

.data-table td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    color: #6b7280;
}

.data-table tr:nth-child(even) {
    background: #f9fafb;
}

.data-table tr:hover {
    background: #f3f4f6;
}

/* Collapsible sections */
.collapsible {
    cursor: pointer;
    user-select: none;
}

.collapsible:hover {
    background: #f8fafc;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-content.expanded {
    max-height: 500px;
    overflow-y: auto;
}

/* Loading animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 400px;
    margin: 16px 0;
}

/* File upload animations */
.file-upload-item {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Column tags */
.column-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.column-tag:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.column-tag.selected {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #3b82f6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px 8px;
    }
    
    .chart-container {
        height: 300px;
    }
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-success {
    background: #10b981;
}

.status-warning {
    background: #f59e0b;
}

.status-error {
    background: #ef4444;
}

.status-processing {
    background: #3b82f6;
    animation: pulse 2s infinite;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
}

/* Custom button styles */
.btn-outline {
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Search highlighting */
.search-highlight {
    background: #fef3c7;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Modal backdrop blur */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Custom focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .data-table {
        border-collapse: collapse;
    }
    
    .data-table th,
    .data-table td {
        border: 1px solid #000;
    }
}