/* Stock Analysis Dashboard Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: auto;
}

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;
    overflow-x: hidden;
    overflow-y: auto;
}

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

/* Header */
.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    color: #718096;
}

/* Controls */
.controls {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.history-select {
    font-size: 14px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-select:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

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

.compare-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

input[type="text"], select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Asset Type Selector Special Styling */
.asset-type-select {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid #667eea;
    font-weight: 600;
    min-width: 160px;
    flex: 0 0 auto;
}

.asset-type-select:focus {
    border-color: #4c51bf;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.asset-type-select option {
    background: white;
    color: #333;
    padding: 8px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

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

/* Error */
.error {
    background: #fed7d7;
    border: 2px solid #fc8181;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    color: #c53030;
}

.error h3 {
    margin-bottom: 10px;
}

/* Stock Info */
.stock-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.info-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.info-header h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.company-name {
    font-size: 1.2em;
    color: #00ff88;
    font-weight: 500;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price {
    font-size: 3em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.price-change {
    font-size: 1.3em;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

.price-change.positive {
    background: #c6f6d5;
    color: #22543d;
}

.price-change.negative {
    background: #fed7d7;
    color: #c53030;
}

.price-timestamp {
    font-size: 0.9em;
    color: #718096;
    margin-top: 8px;
    font-style: italic;
}

/* 匯率資訊樣式 */
.exchange-rate-info {
    font-size: 0.95em;
    color: #4a5568;
    margin-top: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    display: inline-block;
    font-weight: 500;
}

.exchange-rate-info span {
    color: #2d3748;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.info-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 25px;
    border-left: 5px solid #667eea;
}

.info-card h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.info-card p {
    margin-bottom: 8px;
    color: #4a5568;
}

.info-card span {
    font-weight: 600;
    color: #2d3748;
}

/* Charts */
.charts-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.chart-container {
    margin-bottom: 15px;
}

.chart-container canvas {
    max-height: 250px !important;
    height: 250px !important;
}

.chart-container h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

.chart-container h4 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

/* Trading Signals */
.signals-section, .levels-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.signals-container, .levels-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.signal-card, .level-card {
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid;
}

.signal-card.bullish, .level-card.support {
    background: #c6f6d5;
    border-color: #38a169;
    color: #22543d;
}

.signal-card.bearish, .level-card.resistance {
    background: #fed7d7;
    border-color: #e53e3e;
    color: #c53030;
}

.signal-card h4, .level-card h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

/* Comparison Table */
.comparison-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
}

tr:hover {
    background: #f7fafc;
}

.positive {
    color: #38a169;
    font-weight: 600;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.footer p {
    margin-bottom: 5px;
}

/* Enhanced Signal Cards */
.signal-card.very-high {
    border-left: 5px solid #ff6b6b;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.signal-card.high {
    border-left: 5px solid #4ecdc4;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
}

.signal-card.warning {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-left: 5px solid #f59e0b;
}

.signal-details {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.signal-details small {
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    color: #4a5568;
}

/* KDJ Indicator Styling */
.kdj-values {
    display: flex;
    gap: 10px;
    font-size: 0.9em;
    margin-top: 5px;
}

.kdj-values span {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

/* Confidence Bar */
.confidence-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
    transition: width 0.3s ease;
}

/* Recommendation Section */
.recommendation-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.recommendation-container {
    display: block;
}

.recommendation-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.recommendation-action {
    font-size: 2em;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recommendation-action.BUY, .recommendation-action.STRONG_BUY, .recommendation-action.WEAK_BUY {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.recommendation-action.SELL, .recommendation-action.STRONG_SELL, .recommendation-action.WEAK_SELL {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.recommendation-action.HOLD {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.recommendation-confidence {
    font-size: 1.2em;
    font-weight: 600;
    color: #4a5568;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
}

.recommendation-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.recommendation-section h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.signal-summary-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-width: 80px;
}

.signal-summary-item .count {
    font-size: 1.5em;
    font-weight: 700;
    display: block;
}

.signal-summary-item .label {
    font-size: 0.8em;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signal-summary-item.bullish .count {
    color: #38a169;
}

.signal-summary-item.bearish .count {
    color: #e53e3e;
}

.signal-summary-item.warning .count {
    color: #f59e0b;
}

.reasoning-list, .risk-suggestions {
    list-style: none;
    padding: 0;
}

.reasoning-list li, .risk-suggestions li {
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: #4a5568;
    line-height: 1.5;
}

.risk-suggestions li {
    border-left-color: #f59e0b;
}

/* Utilities */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.modal-body {
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary {
    background-color: #666;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary:hover {
    background-color: #555;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.8;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

.notification.warning {
    background-color: #FF9800;
}

.notification.info {
    background-color: #2196F3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .price {
        font-size: 2.5em;
    }
    
    .input-group, .compare-section {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .indicators-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container canvas {
        height: 250px !important;
    }
}

/* Enhanced Multi-Indicator Analysis Styling */

/* Enhanced Recommendation Card Meta */
.recommendation-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 0.9em;
}

.risk-level {
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.85em;
}

.risk-level.low { 
    background: #d1fae5; 
    color: #065f46; 
}

.risk-level.medium { 
    background: #fef3c7; 
    color: #92400e; 
}

.risk-level.medium_high { 
    background: #fed7aa; 
    color: #c2410c; 
}

.risk-level.high { 
    background: #fecaca; 
    color: #991b1b; 
}

.market-environment {
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.85em;
}

.market-environment.bullish { 
    background: #dcfce7; 
    color: #166534; 
}

.market-environment.bearish { 
    background: #fee2e2; 
    color: #991b1b; 
}

.market-environment.volatile { 
    background: #fef3c7; 
    color: #92400e; 
}

.market-environment.consolidation,
.market-environment.neutral { 
    background: #f1f5f9; 
    color: #475569; 
}

/* Enhanced Signal Summary */
.signal-counts {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.signal-count {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    min-width: 80px;
}

.signal-count.bullish {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.signal-count.bearish {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.signal-count.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.signal-count .count {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
}

.signal-count .label {
    font-size: 0.85em;
    font-weight: 500;
}

.signal-scores {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.9em;
}

.score-item {
    text-align: center;
}

/* Technical Summary */
.technical-items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin: 10px 0;
}

.tech-item {
    background: rgba(255, 255, 255, 0.4);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.tech-label {
    display: block;
    font-weight: bold;
    color: #64748b;
    font-size: 0.85em;
    margin-bottom: 5px;
}

.tech-value {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    color: #1e293b;
}

/* Analysis Reasoning */
.reasoning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reasoning-list li {
    background: rgba(255, 255, 255, 0.3);
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Risk Management */
.risk-suggestions {
    margin: 10px 0;
}

.risk-item {
    background: rgba(255, 255, 255, 0.4);
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    font-size: 0.9em;
    line-height: 1.4;
}

.risk-item:first-child {
    font-weight: bold;
    background: rgba(251, 191, 36, 0.1);
    border-left-color: #d97706;
}

/* Mobile responsiveness for enhanced features */
@media (max-width: 768px) {
    .recommendation-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .signal-counts {
        flex-direction: column;
        gap: 10px;
    }
    
    .signal-scores {
        flex-direction: column;
        gap: 5px;
    }
    
    .technical-items {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Long-Term Investment Analysis Styles */
.analysis-type-select {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analysis-type-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Long-term score display */
.score-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.main-score {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.score-circle.score-excellent {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.score-circle.score-good {
    background: linear-gradient(135deg, #8BC34A, #689F38);
}

.score-circle.score-average {
    background: linear-gradient(135deg, #FFC107, #FF8F00);
}

.score-circle.score-poor {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.score-circle.score-bad {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.score-number {
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.score-grade {
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    opacity: 0.9;
}

.score-description h4 {
    color: #2d3748;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.score-description p {
    margin: 8px 0;
    color: #4a5568;
}

.score-breakdown {
    background: rgba(102, 126, 234, 0.05);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.score-breakdown h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

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

.breakdown-item span:first-child {
    color: #4a5568;
    font-weight: 500;
}

.breakdown-item span:last-child {
    color: #2d3748;
    font-weight: bold;
}

/* Technical analysis grid for long-term */
.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.technical-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.technical-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.technical-item h4 {
    color: #667eea;
    font-size: 1.1em;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    padding-bottom: 8px;
}

.technical-item p {
    margin: 8px 0;
    color: #4a5568;
}

/* Investment advice grid */
.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.advice-item {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.advice-item h4 {
    color: #28a745;
    font-size: 1.1em;
    margin-bottom: 12px;
}

.advice-item p {
    margin: 8px 0;
    color: #2d3748;
}

/* Risk management styles */
.risk-management-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.risk-item {
    background: rgba(220, 53, 69, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.risk-item h4 {
    color: #dc3545;
    font-size: 1.1em;
    margin-bottom: 12px;
}

.risk-item p {
    margin: 8px 0;
    color: #4a5568;
}

/* Insights and disclaimer */
.insights-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.insights-list li {
    background: rgba(102, 126, 234, 0.1);
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: #2d3748;
}

.disclaimer-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.disclaimer-section h4 {
    color: #f57c00;
    margin-bottom: 10px;
}

.disclaimer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.disclaimer-list li {
    background: rgba(255, 193, 7, 0.1);
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 6px;
    color: #e65100;
    font-size: 0.9em;
}

/* Mobile responsiveness for long-term analysis */
@media (max-width: 768px) {
    .score-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-score {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .technical-grid, .advice-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-number {
        font-size: 2em;
    }
    
    .score-grade {
        font-size: 1em;
    }
}

/* ==========================================
 * 短線交易指標區塊
 * ========================================== */
.short-term-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.short-term-section h3 {
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 1.3em;
}

.short-term-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.indicator-card {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.indicator-card h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1em;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.indicator-card.strategy-card {
    background: linear-gradient(135deg, #fffff0, #fefcbf);
    border-color: #d69e2e;
}

.indicator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.indicator-row:last-child {
    border-bottom: none;
}

.indicator-label {
    color: #718096;
    font-size: 0.9em;
}

.indicator-value {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95em;
}

.indicator-value.highlight-green {
    color: #38a169;
}

.indicator-value.highlight-red {
    color: #e53e3e;
}

.indicator-value.bullish {
    color: #38a169;
}

.indicator-value.bearish {
    color: #e53e3e;
}

.indicator-value.neutral {
    color: #718096;
}

.indicator-value.warning {
    color: #d69e2e;
}

@media (max-width: 768px) {
    .short-term-grid {
        grid-template-columns: 1fr;
    }
}