/* 🎆 PHASE 4: UI CONSOLIDATION & POLISH - PROFESSIONAL STYLING */
/* Safe, non-disruptive CSS enhancements for unified interface */

/* Professional Unified Analysis Section Styling */
.consolidated-analysis-section {
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--surface-color), var(--background-secondary));
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.consolidated-analysis-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.professional-header {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 1rem 1.5rem;
    margin: -1px -1px 0 -1px;
}

.professional-header h2 {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.professional-header .minimize-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.professional-header .minimize-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Enhanced Form Groups in Unified Section */
.consolidated-analysis-section .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.consolidated-analysis-section .form-group label {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* Smart Input Enhancement */
.smart-symbol-input {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--input-background, var(--surface-color));
}

.smart-symbol-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Input Controls Enhancement */
.input-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.control-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.control-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Symbol Count Enhancement */
.symbol-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: var(--background-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Enhanced Batch Config Panel */
.batch-config-panel {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.batch-config-panel h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

/* Professional Button Styling */
.consolidated-analysis-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.consolidated-analysis-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.consolidated-analysis-section .btn-secondary {
    background: var(--surface-color);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.consolidated-analysis-section .btn-secondary:hover {
    background: var(--accent-color);
    color: white;
}

/* Analysis Buttons Grid Enhancement */
.analysis-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.single-symbol-actions,
.batch-symbol-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Progress and Status Enhancement */
.batch-status {
    background: var(--surface-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.progress-bar {
    background: var(--background-secondary);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Batch Info Enhancement */
.batch-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.batch-info span {
    padding: 0.25rem 0.5rem;
    background: var(--background-secondary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

/* Loading Indicator Enhancement */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.loading::after {
    content: "...";
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: "..."; }
    40% { content: "...."; }
    60% { content: "....."; }
    80%, 100% { content: "..."; }
}

/* Error Message Enhancement */
.error-message {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #f87171;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    margin: 1rem 0;
}

/* Success Message Enhancement */
.success-message {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid #34d399;
    color: #047857;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    margin: 1rem 0;
}

/* Input Hint Enhancement */
.input-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

.input-hint small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive Design for Consolidated Section */
@media (max-width: 768px) {
    .consolidated-analysis-section {
        margin: 0.5rem;
        border-radius: 8px;
    }
    
    .professional-header {
        padding: 0.75rem 1rem;
        border-radius: 6px 6px 0 0;
    }
    
    .analysis-buttons {
        flex-direction: column;
    }
    
    .single-symbol-actions,
    .batch-symbol-actions {
        justify-content: center;
    }
    
    .input-controls {
        justify-content: center;
    }
}

/* Dark Theme Specific Enhancements */
[data-theme="dark"] .consolidated-analysis-section {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .consolidated-analysis-section:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .professional-header {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Light Theme Specific Enhancements */
[data-theme="light"] .consolidated-analysis-section {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

[data-theme="light"] .professional-header {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* Blue Theme Specific Enhancements */
[data-theme="blue"] .consolidated-analysis-section {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
}

[data-theme="blue"] .professional-header {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
}