/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --tertiary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);
    --crypto-gradient: linear-gradient(135deg, #ff9500 0%, #ffb347 100%);
    
    /* Green-Red Seasonality Colors */
    --positive-strong: #22c55e;
    --positive-medium: #4ade80;
    --positive-light: #86efac;
    --neutral: #f3f4f6;
    --negative-light: #fca5a5;
    --negative-medium: #f87171;
    --negative-strong: #ef4444;
    
    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #fafbfc;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --accent: #ff9500;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--white);
    line-height: 1.6;
}

/* Background Animations */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.breathing-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 149, 0, 0.1) 0%, transparent 70%);
    animation: breathe 8s ease-in-out infinite;
}

.breathing-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.breathing-2 {
    width: 600px;
    height: 600px;
    top: 40%;
    right: -15%;
    animation-delay: 3s;
}

.breathing-3 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: 60%;
    animation-delay: 6s;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 149, 0, 0.15), rgba(255, 179, 71, 0.1));
    animation: float 12s ease-in-out infinite;
}

.orb-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 80%;
    animation-delay: 0s;
}

.orb-2 {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 10%;
    animation-delay: 4s;
}

.orb-3 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 90%;
    animation-delay: 8s;
}

@keyframes breathe {
    0%, 100% { transform: scale(1) translateY(0px); opacity: 0.3; }
    50% { transform: scale(1.1) translateY(-20px); opacity: 0.6; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.logo-section {
    margin-bottom: var(--spacing-lg);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--crypto-gradient);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
}

.logo-icon i {
    font-size: 2rem;
    color: var(--white);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 10px 30px rgba(255, 149, 0, 0.3); }
    50% { box-shadow: 0 15px 40px rgba(255, 149, 0, 0.5); }
}

.title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff9500 0%, #ffb347 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 20px rgba(255, 149, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
}

.api-status {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fbbf24;
    animation: pulse 2s infinite;
}

.status-indicator.connected {
    background: var(--positive-strong);
    animation: none;
}

.status-indicator.error {
    background: var(--negative-strong);
    animation: blink 1s infinite;
}

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

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.card-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-left: auto;
}

.pulse-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--crypto-gradient);
    animation: pulse-color 2s ease-in-out infinite;
}

.pulse-indicator.success {
    background: var(--success-gradient);
}

.pulse-indicator.warning {
    background: var(--warning-gradient);
}

@keyframes pulse-color {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Controls Section */
.controls-section {
    margin-bottom: var(--spacing-xl);
}

.controls-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group label {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label i {
    font-size: 1.2rem;
    color: #ff9500;
}

.select-wrapper,
.input-wrapper {
    position: relative;
}

.select-wrapper select,
.input-wrapper input {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    min-height: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.select-wrapper select:focus,
.input-wrapper input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff9500;
    box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.15), 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.select-wrapper select:hover,
.input-wrapper input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 149, 0, 0.3);
    transform: translateY(-1px);
}

.select-wrapper select::placeholder,
.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.select-wrapper select option {
    background: #1e293b;
    color: var(--white);
    padding: var(--spacing-sm);
    font-weight: 500;
    border: none;
}

.select-wrapper select option:hover {
    background: #334155;
}

.select-arrow {
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #ff9500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.select-wrapper:hover .select-arrow {
    color: #ffb347;
    transform: translateY(-50%) rotate(180deg);
}

.input-suffix {
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 149, 0, 0.8);
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 149, 0, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--crypto-gradient);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 149, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.generate-btn:hover::before {
    opacity: 1;
}

.generate-btn:active {
    transform: translateY(-1px);
}

.generate-btn.loading {
    cursor: not-allowed;
    opacity: 0.8;
}

.generate-btn.loading .btn-text {
    opacity: 0;
}

.generate-btn.loading .btn-loader {
    opacity: 1;
}

.btn-text {
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.btn-text i {
    font-size: 1.3rem;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.loader-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    display: grid;
    gap: var(--spacing-xl);
}

/* Chart Section */
.chart-section {
    margin-bottom: var(--spacing-lg);
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    backdrop-filter: blur(10px);
}

.heatmap-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm);
}

.legend-color.positive {
    background: var(--positive-strong);
}

.legend-color.negative {
    background: var(--negative-strong);
}

.legend-scale {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.scale-bar {
    width: 200px;
    height: 8px;
    background: linear-gradient(to right, var(--negative-strong), var(--neutral), var(--positive-strong));
    border-radius: var(--radius-sm);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    width: 200px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.heatmap-table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    max-width: 100%;
    width: 100%;
}

.heatmap-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: separate;
    border-spacing: 2px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    table-layout: fixed;
}

.heatmap-table th,
.heatmap-table td {
    padding: 6px 4px;
    text-align: center;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 7.5%;
    min-width: 70px;
}

.heatmap-table th:first-child,
.heatmap-table td:first-child {
    width: 8%;
    min-width: 80px;
}

.heatmap-table th:last-child,
.heatmap-table td:last-child {
    width: 8%;
    min-width: 80px;
}

.heatmap-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 2;
}

.heatmap-table tr th:first-child,
.heatmap-table tr td:first-child {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 1;
}

.heatmap-table tr th:first-child {
    z-index: 3;
}

.heatmap-cell {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.heatmap-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.cell-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--white);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.heatmap-cell:hover .cell-tooltip {
    opacity: 1;
}

/* Analysis Section */
.analysis-content {
    display: grid;
    gap: var(--spacing-lg);
}

.analysis-item {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border-left: 4px solid #ff9500;
}

.analysis-item h4 {
    color: #ff9500;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.analysis-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Analysis bullet points styling */
.insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insights-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    position: relative;
}

.insights-list li:last-child {
    border-bottom: none;
}

.insights-list li:before {
    content: "▶";
    color: var(--accent);
    font-weight: bold;
    margin-right: 12px;
    margin-top: 2px;
    min-width: 12px;
}

.insights-list li strong {
    color: var(--white);
    min-width: 180px;
    display: inline-block;
    margin-right: 12px;
}

.positive-return {
    color: #22c55e;
    font-weight: 600;
}

.negative-return {
    color: #ef4444;
    font-weight: 600;
}

.disclaimer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d1d5db;
    font-style: italic;
}

/* Statistics Section */
.stats-section {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--crypto-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading Section */
.loading-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.loading-card {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #ff9500;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: #ffb347;
    animation-duration: 2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: #ffd700;
    animation-duration: 1s;
}

.loading-animation h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin: 0;
}

.loading-animation p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--crypto-gradient);
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
    animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 149, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 149, 0, 0.8); }
}

/* Enhanced Controls Card Styling */
.controls-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
    position: relative;
    overflow: hidden;
}

.controls-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.5), transparent);
}

.controls-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.controls-card .card-header h2 {
    background: linear-gradient(135deg, #ff9500 0%, #ffb347 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Additional form enhancements */
.form-group {
    position: relative;
}

.form-group::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--crypto-gradient);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.form-group:focus-within::before {
    width: 100%;
}

/* Enhanced focus states */
.select-wrapper select:focus,
.input-wrapper input:focus {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: #ff9500;
    box-shadow: 
        0 0 0 4px rgba(255, 149, 0, 0.15), 
        0 8px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Improved select dropdown styling */
.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    position: relative;
    z-index: 1;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.1));
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    pointer-events: none;
}

/* Input number styling */
.input-wrapper input[type="number"] {
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Hide number input spinners */
.input-wrapper input[type="number"]::-webkit-outer-spin-button,
.input-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-wrapper input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Special styling for non-data cells */
.year-column {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2)) !important;
    border: 2px solid rgba(99, 102, 241, 0.3) !important;
    font-weight: 700 !important;
    color: #e0e7ff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.average-column {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2)) !important;
    border: 2px solid rgba(16, 185, 129, 0.3) !important;
    font-weight: 700 !important;
    color: #d1fae5 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.summary-row {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2)) !important;
    border: 2px solid rgba(245, 158, 11, 0.3) !important;
    font-weight: 700 !important;
    color: #fef3c7 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.win-rate-row {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(147, 51, 234, 0.2)) !important;
    border: 2px solid rgba(168, 85, 247, 0.3) !important;
    font-weight: 700 !important;
    color: #ede9fe !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Header cell special styling */
.header-year {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3)) !important;
    color: #e0e7ff !important;
}

.header-average {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3)) !important;
    color: #d1fae5 !important;
}

/* Override hover effects for special cells */
.year-column:hover,
.average-column:hover,
.summary-row:hover,
.win-rate-row:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Searchable Dropdown Styles */
.search-dropdown-wrapper {
    position: relative;
}

.search-dropdown-wrapper input[type="text"] {
    width: 100%;
    padding: var(--spacing-lg) 3.5rem var(--spacing-lg) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    min-height: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-dropdown-wrapper input[type="text"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff9500;
    box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.15), 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-dropdown-wrapper input[type="text"]:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 149, 0, 0.3);
    transform: translateY(-1px);
}

.search-dropdown-wrapper input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.search-icon {
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #ff9500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.search-dropdown-wrapper:hover .search-icon {
    color: #ffb347;
}

.symbol-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ff9500 transparent;
}

.symbol-dropdown::-webkit-scrollbar {
    width: 6px;
}

.symbol-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.symbol-dropdown::-webkit-scrollbar-thumb {
    background: #ff9500;
    border-radius: 3px;
}

.symbol-dropdown::-webkit-scrollbar-thumb:hover {
    background: #ffb347;
}

.dropdown-item {
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 149, 0, 0.1);
    transform: translateX(4px);
}

.dropdown-item.selected {
    background: rgba(255, 149, 0, 0.2);
    border-left: 3px solid #ff9500;
}

.dropdown-item .symbol-code {
    font-weight: 600;
    color: #ff9500;
    min-width: 80px;
}

.dropdown-item .symbol-name {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.dropdown-item .volume-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.dropdown-no-results {
    padding: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.dropdown-loading {
    padding: var(--spacing-lg);
    text-align: center;
    color: #ff9500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.dropdown-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
