* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 350px;
    white-space: normal;
    text-align: center;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #333;
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-score-breakdown {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
    width: 300px;
}

.tooltip-score-breakdown .score-range {
    display: block;
    margin: 4px 0;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #e1e5e9;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Market Scanner Styles */
.scanner-header {
    text-align: center;
    margin-bottom: 30px;
}

.scanner-header h2 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 2rem;
}

.scanner-header p {
    color: #666;
    font-size: 1.1rem;
}

.scanner-controls {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.scanner-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.scanner-buttons .btn {
    flex: 1;
    min-width: 150px;
}

.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    min-width: auto;
}

.scanner-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e9ecef;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d;
    animation: pulse 2s infinite;
}

.status-dot.scanning {
    background: #28a745;
    animation: pulse 1s infinite;
}

.status-dot.error {
    background: #dc3545;
    animation: none;
}

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

.scan-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 14px;
    color: #495057;
}

.scanning-progress {
    background: #e3f2fd;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid #2196f3;
}

.progress-header {
    margin-bottom: 20px;
}

.progress-header h4 {
    color: #1976d2;
    margin-bottom: 15px;
    margin: 0 0 15px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.current-activity {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.activity-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #2196f3;
}

.activity-item strong {
    color: #1976d2;
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
}

.activity-item span {
    color: #333;
    font-size: 14px;
}

.scanner-results {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h3 {
    color: #667eea;
    margin: 0;
}

.results-controls {
    display: flex;
    gap: 10px;
}

.results-container {
    min-height: 200px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.opportunity-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.opportunity-card:hover {
    transform: translateY(-2px);
}

.opportunity-card.positive {
    border-left-color: #28a745;
}

.opportunity-card.negative {
    border-left-color: #dc3545;
}

.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ticker-symbol {
    font-size: 1.5rem;
    font-weight: bold;
    color: #495057;
}

.trading-score {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.opportunity-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.detail-value.positive {
    color: #28a745;
}

.detail-value.negative {
    color: #dc3545;
}

.pattern-indicators {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pattern-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.pattern-badge.volume {
    background: #fff3cd;
    color: #856404;
}

.pattern-badge.breakout {
    background: #d1ecf1;
    color: #0c5460;
}

.pattern-badge.momentum {
    background: #d4edda;
    color: #155724;
}

.technical-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    font-size: 14px;
    color: #495057;
}

.technical-summary strong {
    color: #667eea;
    font-weight: 600;
}

.recommendation {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.recommendation.watch {
    background: #fff3cd;
    color: #856404;
}

.recommendation.monitor {
    background: #d1ecf1;
    color: #0c5460;
}

.recommendation.consider {
    background: #d4edda;
    color: #155724;
}

.recommendation.act {
    background: #f8d7da;
    color: #721c24;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-explanation {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.field-explanation small {
    color: #666;
    line-height: 1.4;
    font-size: 13px;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.results {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
}

.results h3 {
    margin-bottom: 15px;
    color: #333;
}

.result-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.result-item.success {
    border-left: 4px solid #28a745;
}

.result-item.error {
    border-left: 4px solid #dc3545;
}

.result-item.buy {
    border-left: 4px solid #ffc107;
    background: #fff8e1;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e1e5e9;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
}

/* Accordion Styles */
.accordion {
    margin-top: 20px;
}

.accordion-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.accordion-header:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.accordion-header.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 18px;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

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

.accordion-content.active {
    max-height: 1000px;
}

.accordion-body {
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    background: #fafbfc;
}

.accordion h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.indicator-explanation {
    margin-bottom: 15px;
}

.explanation-section {
    margin-bottom: 20px;
}

.explanation-section h5 {
    color: #667eea;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.explanation-section p {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #555;
}

.calculation-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    margin: 10px 0;
}

.calculation-details code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.signal-logic {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    margin: 10px 0;
}

.signal-logic strong {
    color: #856404;
}

/* Collapsible Header Styles */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.collapsible-header:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.collapsible-header label {
    margin: 0;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.collapsible-icon {
    font-size: 1.2rem;
    color: #667eea;
    transition: transform 0.3s ease;
    user-select: none;
}

.collapsible-header.collapsed .collapsible-icon {
    transform: rotate(-90deg);
}

/* Ensure proper spacing when collapsed */
.collapsible-header.collapsed {
    margin-bottom: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Ensure proper spacing when expanded */
.collapsible-header:not(.collapsed) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Indicator Configuration Styles */
.indicator-config {
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-top: none;
    margin-top: -1px; /* Overlap the border with header */
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

.config-section {
    margin-bottom: 25px;
}

.config-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.config-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.config-field {
    display: flex;
    flex-direction: column;
}

.config-field label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.config-field input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.config-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Configuration Explanation Styles */
.config-explanation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
    border-left: 4px solid #667eea;
}

.config-explanation h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explanation-content p {
    margin-bottom: 12px;
    color: #495057;
    line-height: 1.5;
}

.explanation-content ul {
    margin: 10px 0 15px 20px;
    color: #495057;
}

.explanation-content li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.explanation-content strong {
    color: #667eea;
    font-weight: 600;
}

.explanation-content em {
    color: #6c757d;
    font-style: italic;
    font-size: 0.95rem;
}

.footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    margin-top: 40px;
}

/* Ticker separator styling */
.ticker-separator {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 30px 0;
    opacity: 0.6;
}

/* Multi-ticker results styling */
.ticker-result {
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 15px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ticker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5e9;
}

.ticker-result h4 {
    color: #333;
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-status.bullish {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ticker-status.neutral {
    background: #e2e3e5;
    color: #6c757d;
    border: 1px solid #d6d8db;
}

.ticker-result .summary-stats {
    margin-bottom: 25px;
}

.date-range-section {
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}

.date-range-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-range-section p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Error state for failed ticker analysis */
.ticker-result.error {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
}

.ticker-result.error h4 {
    color: #dc3545;
}

/* Indicators section styling */
.indicators-section {
    margin-top: 25px;
    padding-top: 20px;
}

.indicators-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.indicators-icon {
    font-size: 1.4rem;
}

.indicators-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}

.indicator-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.count-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.count-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signal-summary {
    display: flex;
    gap: 20px;
}

.signal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    min-width: 80px;
}

.signal-item.buy-signals {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.signal-item.neutral-signals {
    background: #e2e3e5;
    border: 1px solid #d6d8db;
}

.signal-item.error-signals {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.signal-icon {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.signal-count {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.signal-item.buy-signals .signal-count {
    color: #155724;
}

.signal-item.neutral-signals .signal-count {
    color: #6c757d;
}

.signal-item.error-signals .signal-count {
    color: #721c24;
}

.signal-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.signal-item.buy-signals .signal-label {
    color: #155724;
}

.signal-item.neutral-signals .signal-label {
    color: #6c757d;
}

.signal-item.error-signals .signal-label {
    color: #721c24;
}

.indicators-accordion {
    margin-top: 20px;
}

.indicators-accordion .accordion-item {
    border-left: 4px solid #e1e5e9;
}

.indicators-accordion .accordion-item.buy {
    border-left-color: #ffc107;
    background: #fff8e1;
}

.indicators-accordion .accordion-item.success {
    border-left-color: #28a745;
    background: #f8fff9;
}

.indicators-accordion .accordion-item.error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.indicator-header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex: 1;
}

.indicator-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.indicator-status {
    font-size: 0.9rem;
    font-weight: 500;
}

.error-details {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #fed7d7;
}

.error-type {
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.error-message {
    color: #c53030;
    margin-bottom: 10px;
    line-height: 1.4;
}

.error-suggestion {
    color: #2b6cb0;
    background: #ebf8ff;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    border-left: 3px solid #3182ce;
}

.error-typo {
    color: #d69e2e;
    background: #fffbeb;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    border-left: 3px solid #f6ad55;
}

/* Validation warning styling */
.validation-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #856404;
}

.warning-icon {
    font-size: 1.5rem;
}

.warning-content p {
    margin-bottom: 8px;
    color: #856404;
    line-height: 1.4;
}

.warning-content p:last-child {
    margin-bottom: 0;
}

.warning-content strong {
    color: #664d03;
}

/* Responsive adjustments for multi-ticker */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 20px;
    }

    .ticker-result {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .ticker-result h4 {
        font-size: 1.1rem;
    }
    
    .ticker-separator {
        margin: 20px 0;
    }
    
    .ticker-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .indicators-summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .signal-summary {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .signal-item {
        min-width: 70px;
    }
    
    .indicator-header-content {
        align-items: center;
        text-align: center;
    }
    
    /* Technical configuration responsive improvements */
    .config-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .config-field {
        margin-bottom: 10px;
    }
    
    .collapsible-header {
        padding: 12px 15px;
    }
    
    .indicator-config {
        padding: 15px;
    }
}

/* Technical Summary Styles - Fixed for proper contrast */
.technical-summary {
  margin: 10px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #e1e5e9;
  color: #333;
}

.technical-summary strong {
  color: #667eea;
}

.technical-header {
  cursor: pointer;
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.technical-header:hover {
  background-color: #e9ecef;
  border-radius: 3px;
  padding: 5px;
}

.technical-header .accordion-icon {
  font-size: 12px;
  color: #667eea;
  transition: transform 0.2s;
}

.technical-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e1e5e9;
}

.technical-indicators-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.technical-indicator {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #e1e5e9;
  background: white;
  color: #333;
}

.technical-indicator.buy {
  border-left: 3px solid #28a745;
  background: #f8fff9;
}

.technical-indicator.neutral {
  border-left: 3px solid #ffc107;
  background: #fff8e1;
}

.technical-indicator.error {
  border-left: 3px solid #dc3545;
  background: #fff5f5;
}

.technical-indicator .indicator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.technical-indicator .indicator-name {
  font-weight: bold;
  color: #333;
}

.technical-indicator .indicator-status {
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.technical-indicator .indicator-details {
  font-size: 12px;
  color: #666;
}

.technical-indicator .indicator-explanation {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.technical-indicator .explanation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.technical-indicator .explanation-row strong {
  color: #333;
  margin-right: 10px;
}

.scan-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.scan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.scan-btn:active {
  transform: translateY(0);
}

.scan-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.scan-btn.scanning {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.scan-btn.scanning:hover {
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}


