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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1f2937;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

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

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.disclaimer {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #78350f;
    line-height: 1.6;
}

.disclaimer strong {
    color: #92400e;
}

.controls-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    font-weight: 600;
    color: #374151;
}

.control-group input[type="text"],
.control-group input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.control-group input[type="text"] {
    width: 120px;
}

.control-group input[type="number"] {
    width: 80px;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 500;
}

.auto-refresh-group {
    gap: 8px;
}

.unit-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.loading-indicator {
    background: #dbeafe;
    color: #1e40af;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.signal-info {
    display: flex;
    gap: 10px;
}

.symbol-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2563eb;
}

.mode-display {
    font-size: 0.9rem;
    color: #6b7280;
    background: #e5e7eb;
    padding: 4px 12px;
    border-radius: 12px;
}

.date-display {
    font-size: 0.9rem;
    color: #6b7280;
}

.label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.sublabel {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7280;
}

.price-display {
    margin-bottom: 20px;
}

.price-display .value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

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

.bias-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bias-long {
    background: #d1fae5;
    color: #065f46;
}

.bias-short {
    background: #fee2e2;
    color: #991b1b;
}

.bias-neutral {
    background: #e5e7eb;
    color: #374151;
}

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

.confidence-display {
    margin-top: 10px;
}

.confidence-score {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.confidence-bar-container {
    width: 100%;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.confidence-bar {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 12px;
}

.confidence-high {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.confidence-medium {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.confidence-low {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.trade-suggestion {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
}

.trade-action {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 10px;
}

.trade-note {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
}

.trade-levels {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.level-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.level-label {
    font-weight: 600;
    color: #6b7280;
}

.level-value {
    font-weight: 700;
    color: #111827;
}

.indicators-table {
    width: 100%;
    border-collapse: collapse;
}

.indicators-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.indicators-table tr:last-child {
    border-bottom: none;
}

.indicators-table td {
    padding: 12px 8px;
}

.indicator-name {
    font-weight: 600;
    color: #374151;
}

.indicator-value {
    text-align: right;
    font-weight: 500;
    color: #111827;
}

.explanation-list {
    list-style: none;
    padding: 0;
}

.explanation-list li {
    padding: 12px;
    margin-bottom: 8px;
    background: #f9fafb;
    border-left: 3px solid #2563eb;
    border-radius: 4px;
    line-height: 1.6;
    color: #374151;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .controls-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .card {
        padding: 16px;
    }
    
    .control-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
