/* Mobile-First Responsive Design */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1117;
    color: #f0f6fc;
    font-size: 14px;
    line-height: 1.5;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.navbar-text {
    font-size: 0.8rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    margin-bottom: 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Feature Cards */
.feature-card {
    background: linear-gradient(135deg, #21262d, #30363d);
    border: 1px solid #30363d;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Step Cards */
.step-card {
    background: linear-gradient(45deg, #30363d, #21262d);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #58a6ff;
    margin-bottom: 0.5rem;
}

.step-card h6 {
    color: #58a6ff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Cards */
.card {
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 12px;
}

.card-header {
    background: linear-gradient(135deg, #30363d, #21262d);
    border-bottom: 1px solid #30363d;
    font-weight: 600;
}

/* Metrics */
.metric-card {
    text-align: center;
    padding: 0.5rem;
}

.metric-card h6 {
    color: #7d8590;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.metric-card h4 {
    color: #f0f6fc;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

/* Price Targets */
.price-target {
    text-align: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.price-target h6 {
    color: #7d8590;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.price-target h4 {
    font-weight: 700;
    margin: 0;
}

/* Recommendation Cards */
.recommendation-buy {
    background: linear-gradient(135deg, #238636, #1a7f37);
    color: white;
}

.recommendation-sell {
    background: linear-gradient(135deg, #da3633, #cf222e);
    color: white;
}

.recommendation-hold {
    background: linear-gradient(135deg, #9a6700, #bf8700);
    color: white;
}

/* Sentiment Cards */
.sentiment-card {
    background: linear-gradient(45deg, #30363d, #21262d);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.sentiment-overall {
    background: linear-gradient(135deg, #30363d, #21262d);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border-left: 5px solid #58a6ff;
}

/* Forms */
.form-control, .form-select {
    background-color: #21262d;
    border: 1px solid #30363d;
    color: #f0f6fc;
    font-size: 0.9rem;
}

.form-control:focus, .form-select:focus {
    background-color: #21262d;
    border-color: #58a6ff;
    box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.25);
    color: #f0f6fc;
}

.form-label {
    color: #f0f6fc;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #238636, #1a7f37);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a7f37, #238636);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(35, 134, 54, 0.4);
}

/* Footer */
.disclaimer-footer {
    background: linear-gradient(135deg, #21262d, #30363d);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #30363d;
}

.disclaimer-footer h5 {
    color: #ffc107;
    font-weight: 700;
}

.disclaimer-footer h6 {
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.disclaimer-footer ul {
    list-style-type: none;
    padding-left: 0;
}

.disclaimer-footer li {
    padding: 0.2rem 0;
    border-left: 2px solid #30363d;
    padding-left: 0.8rem;
    margin-bottom: 0.3rem;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #58a6ff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Technical Indicators */
.indicator-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.indicator-label {
    font-weight: 600;
    color: #58a6ff;
    font-size: 0.9rem;
}

.indicator-value {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem;
    }
    
    .text-gradient {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .metric-card h4 {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .disclaimer-footer {
        padding: 1rem;
    }
    
    .disclaimer-footer h5 {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .feature-card .card-body {
        padding: 1rem 0.5rem;
    }
    
    .step-card {
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    .text-gradient {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .metric-card h4 {
        font-size: 1rem;
    }
    
    .price-target h4 {
        font-size: 1rem;
    }
    
    .sentiment-overall {
        padding: 1rem;
    }
    
    .disclaimer-banner {
        font-size: 0.7rem;
    }
}

/* Chart Container */
#technicalChart {
    background: #21262d;
    border-radius: 8px;
    padding: 0.5rem;
}

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

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Utility Classes */
.text-success { color: #3fb950 !important; }
.text-danger { color: #f85149 !important; }
.text-warning { color: #d29922 !important; }
.text-info { color: #58a6ff !important; }
.text-muted { color: #7d8590 !important; }

.bg-success-gradient {
    background: linear-gradient(135deg, #238636, #1a7f37) !important;
}

.bg-danger-gradient {
    background: linear-gradient(135deg, #da3633, #cf222e) !important;
}

.bg-warning-gradient {
    background: linear-gradient(135deg, #9a6700, #bf8700) !important;
}

.bg-info-gradient {
    background: linear-gradient(135deg, #1f6feb, #0969da) !important;
}