/**
 * Stock Comparison Tool - Styling
 * Professional styling matching the financial dashboard design
 * Consistent with ryan-oconnell theme and financial-dashboard.css
 */

/* =======================================================
   Stock Comparison Container
   ======================================================= */
.stock-comparison {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #1f2937;
    padding-bottom: 2rem;
}

/* =======================================================
   Hero Section - Matches Financial Dashboard
   ======================================================= */
.stock-comparison .hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* =======================================================
   Stock Logo Containers
   ======================================================= */
.stock-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.stock-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stock-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stock-logo-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin: 0 auto;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.stock-logo-placeholder:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.stock-logo-placeholder i {
    font-size: 2rem;
    color: #6c757d;
}

/* =======================================================
   Stock Performance Cards - Individual Stock Display
   ======================================================= */
.stock-performance-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: white;
    height: 100%;
}

.stock-performance-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.stock-performance-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stock-performance-card .company-name {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.stock-performance-card .stock-price {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stock-performance-card .stock-change {
    font-size: 0.95rem;
    font-weight: 600;
}

.stock-performance-card .stock-change.positive {
    color: #34d399;
}

.stock-performance-card .stock-change.negative {
    color: #fca5a5;
}

/* =======================================================
   Comparison Tables - Main Content
   ============================================================/ */
.comparison-results {
    background: white;
    border-radius: 15px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.comparison-results:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Section Headers */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2563eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #2563eb;
    font-size: 1.25rem;
}

/* Comparison Tables */
.comparison-table {
    background: white;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.comparison-table:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Card containers for each section */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Enhanced hover effects for stock performance cards in hero section */
.stock-comparison .card.h-100:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 6px 12px rgba(0, 0, 0, 0.12);
}

.comparison-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tbody td {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.comparison-table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.02);
    transition: background-color 0.2s ease;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Cell Styling */
.comparison-table td:first-child {
    font-weight: 600;
    color: #374151;
    background: rgba(249, 250, 251, 0.5);
}

.comparison-table td.text-center {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Positive/Negative Value Indicators */
.text-success {
    color: #10b981 !important;
    font-weight: 600;
}

.text-danger {
    color: #ef4444 !important;
    font-weight: 600;
}

.text-warning {
    color: #f59e0b !important;
    font-weight: 600;
}

/* =======================================================
   Metric Cards for Individual Displays
   ======================================================= */
.metric-comparison-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.metric-comparison-card:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.metric-comparison-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem;
}

.metric-comparison-card .card-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-comparison-card .card-body {
    padding: 1.25rem;
}

/* =======================================================
   Price Change Indicators & Badges
   ======================================================= */
.price-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid;
    min-width: 80px;
    justify-content: center;
}

.price-badge.positive {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.price-badge.negative {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.price-badge.neutral {
    background-color: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.3);
}

/* =======================================================
   Breadcrumb Navigation
   ======================================================= */
.breadcrumb {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.breadcrumb:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.breadcrumb-item a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2563eb;
}

.breadcrumb-item.active {
    color: #1f2937;
    font-weight: 600;
}

/* =======================================================
   Investment Comparison Chart Section
   ======================================================= */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

.chart-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.time-period-selector .btn-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.time-period-selector .btn {
    border: none;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.time-period-selector .btn-outline-primary {
    color: #6b7280;
    background-color: white;
    border-color: #d1d5db;
}

.time-period-selector .btn-outline-primary:hover {
    color: #2563eb;
    background-color: #f8fafc;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.time-period-selector .btn-check:checked + .btn-outline-primary {
    color: white;
    background-color: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.period-change-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 6px;
    font-size: 0.875rem;
}

.period-change-label {
    color: #6b7280;
    font-weight: 500;
}

.period-change-value {
    color: #2563eb;
    font-weight: 600;
}

.chart-legend {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.legend-item {
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: rgba(248, 250, 252, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legend-color {
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-value {
    font-size: 1.125rem;
    color: #1f2937;
}

/* =======================================================
   Related Comparisons Section
   ======================================================= */
.related-comparisons {
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.related-comparison-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    display: block;
    color: inherit;
}

.related-comparison-card:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
    text-decoration: none;
    color: inherit;
}

.related-comparison-card .card-body {
    padding: 1.25rem;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-comparison-card h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.related-comparison-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* =======================================================
   Testing Information Box (Development Only)
   ======================================================= */
.testing-info-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fef2c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.1);
}

.testing-info-box h5 {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testing-info-box h5 i {
    font-size: 1.25rem;
}

.testing-info-box .status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.testing-info-box .status-success {
    color: #065f46;
}

.testing-info-box .status-success i {
    color: #10b981;
}

.debug-data-box {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
}

/* =======================================================
   Data Attribution Footer & Alert Boxes
   ======================================================= */
.data-attribution {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.data-attribution:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Alert boxes hover effects */
.alert {
    transition: all 0.3s ease;
}

.alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.alert-info:hover {
    background-color: rgba(219, 234, 254, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
}

.alert-danger:hover {
    background-color: rgba(254, 226, 226, 0.9);
    border-color: rgba(239, 68, 68, 0.3);
}

.data-attribution i {
    color: #2563eb;
}

.data-attribution a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.data-attribution a:hover {
    text-decoration: underline;
}

/* =======================================================
   Responsive Design - Tablet
   ======================================================= */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-section p {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-section {
        padding: 50px 0;
        min-height: 250px;
    }
    
    .stock-performance-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stock-performance-card .stock-price {
        font-size: 1.75rem;
    }
    
    .comparison-results {
        padding: 1.5rem;
        margin-top: -30px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.875rem 1rem;
    }
    
    .comparison-table thead th {
        font-size: 0.85rem;
    }
    
    .comparison-table tbody td {
        font-size: 0.9rem;
    }
    
    .related-comparisons {
        padding: 1.5rem;
    }
    
    .related-comparison-card .card-body {
        padding: 1rem;
        min-height: 100px;
    }
    
    .testing-info-box {
        padding: 1.25rem;
    }
}

/* =======================================================
   Responsive Design - Mobile
   ======================================================= */
@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
        min-height: 200px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    .stock-performance-card {
        padding: 1.25rem;
    }
    
    .stock-performance-card .stock-price {
        font-size: 1.5rem;
    }
    
    .comparison-results {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 1.1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .comparison-table {
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.75rem 0.875rem;
    }
    
    .comparison-table thead th {
        font-size: 0.8rem;
    }
    
    .price-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        min-width: 70px;
    }
    
    .related-comparisons {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .related-comparison-card {
        border-radius: 8px;
    }
    
    .related-comparison-card .card-body {
        padding: 0.875rem;
        min-height: 90px;
    }
    
    .related-comparison-card h6 {
        font-size: 0.9rem;
    }
    
    .related-comparison-card p {
        font-size: 0.8rem;
    }
    
    .testing-info-box {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .testing-info-box h5 {
        font-size: 1rem;
    }
    
    .debug-data-box {
        font-size: 0.75rem;
        max-height: 300px;
    }
    
    .breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* =======================================================
   Animation Classes
   ======================================================= */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* =======================================================
   Force Light Theme (No Dark Mode for Comparison Tool)
   ======================================================= */
@media (prefers-color-scheme: dark) {
    .stock-comparison .comparison-table,
    .stock-comparison .metric-comparison-card,
    .stock-comparison .related-comparison-card,
    .stock-comparison .related-comparisons,
    .stock-comparison .comparison-results {
        background: white;
        color: inherit;
        border-color: #e9ecef;
    }
    
    .stock-comparison .metric-comparison-card .card-header {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        color: inherit;
        border-bottom-color: #dee2e6;
    }
    
    .stock-comparison .comparison-table thead th {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        color: #495057;
    }
}

/* =======================================================
   Print Styles
   ======================================================= */
@media print {
    .stock-comparison .hero-section {
        background: white;
        color: black;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .testing-info-box,
    .debug-data-box {
        display: none;
    }
    
    .stock-performance-card {
        background: white;
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .comparison-table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .related-comparisons {
        page-break-inside: avoid;
    }
}

/* =======================================================
   Stock Comparison Search Interface
   ======================================================= */
.search-comparison-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.search-comparison-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.search-comparison-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 2px solid #e2e8f0;
    border-radius: 14px 14px 0 0;
    padding: 1.5rem 2rem;
}

.search-comparison-card .card-header h2 {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.search-comparison-card .card-header i {
    color: #2563eb;
}

.search-comparison-card .card-body {
    padding: 2rem;
}

/* Search Input Styling */
.search-comparison-card .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #ffffff;
}

.search-comparison-card .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

.search-comparison-card .form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* VS Indicator */
.vs-indicator {
    text-align: center;
    padding: 0 1rem;
}

.vs-indicator .badge {
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    padding: 0.75rem 1.25rem;
    letter-spacing: 0.5px;
}

/* Ticker Suggestions Dropdown */
.ticker-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
}

.ticker-suggestion {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-suggestion:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.ticker-suggestion:hover,
.ticker-suggestion.highlighted {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
}

.ticker-suggestion strong {
    color: #2563eb;
    font-weight: 700;
    font-size: 1rem;
}

.ticker-suggestion .text-muted {
    color: #6b7280 !important;
    font-size: 0.875rem;
}

/* Compare Button */
#compare-stocks-btn {
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-top: 1.5rem;
    width: 100%;
}

#compare-stocks-btn.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-color: #2563eb;
    color: white;
}

#compare-stocks-btn.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

#compare-stocks-btn.btn-secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #e5e7eb;
    color: #6b7280;
}

#compare-stocks-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Labels */
.search-comparison-card .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments for Search */
@media (max-width: 768px) {
    .search-comparison-card .card-body {
        padding: 1.5rem;
    }
    
    .search-comparison-card .card-header {
        padding: 1.25rem 1.5rem;
    }
    
    .vs-indicator {
        padding: 1rem 0.5rem;
    }
    
    .vs-indicator .badge {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .search-comparison-card .card-body {
        padding: 1.25rem;
    }
    
    .search-comparison-card .card-header {
        padding: 1rem 1.25rem;
    }
    
    .search-comparison-card .card-header h2 {
        font-size: 1.125rem;
    }
    
    .search-comparison-card .form-control {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .vs-indicator {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .ticker-suggestion {
        padding: 0.75rem 1rem;
    }
    
    #compare-stocks-btn {
        margin-top: 1.25rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}