/* Trading Signals Pro Styles */
.ts-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 10px;
    color: white;
    margin-bottom: 20px;
}

.ts-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.ts-control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.ts-input, .ts-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.ts-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.ts-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.ts-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ts-chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#ts-chart {
    width: 100%;
    height: 400px;
}

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

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

.ts-results {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.ts-signal-buy {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
    padding: 20px;
    border-radius: 8px;
}

.ts-signal-sell {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
    padding: 20px;
    border-radius: 8px;
}

.ts-signal-hold {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    padding: 20px;
    border-radius: 8px;
}

.ts-signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ts-signal-type {
    font-size: 24px;
    font-weight: bold;
}

.ts-confidence {
    padding: 4px 12px;
    background: rgba(0,0,0,0.1);
    border-radius: 20px;
    font-size: 14px;
}

.ts-price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.ts-price {
    font-size: 28px;
    font-weight: bold;
}

.ts-change.positive { color: #10b981; font-weight: bold; }
.ts-change.negative { color: #ef4444; font-weight: bold; }

.ts-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.ts-indicator {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.ts-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ts-reasons {
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.ts-reasons ul {
    margin: 10px 0 0 20px;
}

.ts-error {
    color: #ef4444;
    text-align: center;
    padding: 20px;
}

.ts-disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 12px;
    color: #856404;
    text-align: center;
}

/* Scanner Styles */
.ts-scanner-controls {
    text-align: center;
    margin-bottom: 20px;
}

.ts-scan-status {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6c757d;
    margin-right: 10px;
}

.dot.active {
    background: #10b981;
    animation: pulse 1.5s infinite;
}

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

.ts-opportunities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.opportunity-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.opp-buy { border-left: 4px solid #10b981; }
.opp-sell { border-left: 4px solid #ef4444; }

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

.opp-symbol {
    font-size: 18px;
    font-weight: bold;
}

.opp-signal {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.opp-buy .opp-signal { background: #d1fae5; color: #065f46; }
.opp-sell .opp-signal { background: #fee2e2; color: #991b1b; }

.opp-confidence {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.opp-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.opp-details div {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
}

.analyze-btn {
    width: 100%;
    padding: 8px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.analyze-btn:hover {
    background: #5a67d8;
}

.ts-placeholder {
    text-align: center;
    padding: 60px;
    color: #6c757d;
    background: white;
    border-radius: 10px;
}

.ts-login-message {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .ts-controls {
        grid-template-columns: 1fr;
    }
    
    .ts-indicators {
        grid-template-columns: 1fr;
    }
    
    .ts-levels {
        grid-template-columns: 1fr;
    }
    
    .ts-opportunities {
        grid-template-columns: 1fr;
    }
}

/* Additional styles for top 100 coins */
.ts-stats-bar {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
}

.ts-coin-count {
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.ts-level {
    text-align: center;
    padding: 10px;
}

.ts-level-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.ts-level-value {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

.ts-level-risk, .ts-level-reward {
    font-size: 11px;
    margin-top: 3px;
}

.ts-risk-reward {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: bold;
}

.ts-trade-plan {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.ts-trade-plan ul {
    margin: 10px 0 0 20px;
}

.opp-rank {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.opp-price {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
}

.opp-reasons {
    margin: 10px 0;
    font-size: 13px;
}

.opp-reasons ul {
    margin: 5px 0 0 20px;
}

.ts-price-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.oversold {
    color: #10b981;
    font-weight: bold;
}

.overbought {
    color: #ef4444;
    font-weight: bold;
}

.ts-indicator .oversold, .ts-indicator .overbought {
    font-size: 18px;
    display: block;
}
