/* Reset & Base */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; line-height: 1.6; color: #333; } input, button, select { font-size: 16px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; } button { background: #3498db; color: white; cursor: pointer; border: none; transition: background 0.2s; } button:hover { background: #2980b9; } button:active { background: #21618c; } /* Navigation */ nav { background: #2c3e50; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); } .nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; } .nav-brand a { color: white; font-size: 1.5rem; font-weight: bold; text-decoration: none; display: block; padding: 15px 0; } .nav-links { list-style: none; display: flex; margin: 0; padding: 0; } .nav-links a { color: #ecf0f1; text-decoration: none; padding: 15px 20px; display: block; transition: background 0.2s, border-bottom 0.2s; border-bottom: 3px solid transparent; } .nav-links a:hover { background: #34495e; border-bottom: 3px solid #3498db; } .nav-links a.active { background: #3498db; } /* Layout */ .container { max-width: 1200px; margin: 0 auto; padding: 20px; } /* Chart Page */ .chart-section { margin-top: 10px; } #controls { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); padding: 20px; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 16px; } #controls .control-group { display: flex; align-items: center; gap: 10px; } #chart { width: 100%; height: 600px; background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); transition: opacity 0.2s; } #chart.loading { opacity: 0.6; } .loading-indicator { display: none; color: #7f8c8d; font-size: 0.9rem; } .loading-indicator.show { display: block; } /* Scanner Page */ .scanner-container { max-width: 1400px; margin: 0 auto; padding-top: 10px; } .scanner-header { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); padding: 30px; margin-bottom: 25px; } .scanner-title { font-size: 2rem; font-weight: 600; color: #2c3e50; margin-bottom: 20px; } .scanner-controls { display: flex; flex-wrap: wrap; gap: 25px; align-items: flex-end; } .scanner-controls .control-group { display: flex; flex-direction: column; gap: 6px; min-width: 200px; } .scanner-controls label { font-size: 0.85rem; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 0.05em; } .scanner-controls input, .scanner-controls select { width: 100%; } .scan-button { min-width: 140px; padding: 10px 20px; font-weight: 600; } .scan-button:disabled { background: #ccc; cursor: not-allowed; } .export-button { background: #27ae60; } .export-button:hover { background: #219150; } .results-container { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); overflow: hidden; } .results-header { background: #1a1a1a; color: white; padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1rem; } .results-count { background: white; color: #1a1a1a; border-radius: 20px; padding: 4px 14px; font-size: 0.85rem; font-weight: 600; } .results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(750px, 1fr)); } .result-card { padding: 30px; cursor: pointer; display: flex; gap: 25px; align-items: flex-start; border-bottom: 1px solid #f0f0f0; transition: background 0.15s, transform 0.15s; } .result-card:hover { background: #f8f9ff; transform: translateY(-1px); } .chart-thumbnail { width: 640px; height: auto; border-radius: 8px; object-fit: contain; flex-shrink: 0; } .chart-placeholder { width: 640px; height: 200px; border-radius: 8px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; color: #aaa; flex-shrink: 0; } .symbol-details { display: flex; flex-direction: column; gap: 6px; } .symbol-name { font-weight: 700; font-size: 1.2rem; color: #2c3e50; } .symbol-company { color: #555; font-size: 0.95rem; } .symbol-exchange { color: #888; font-size: 0.85rem; } .loading-state { padding: 60px; text-align: center; color: #7f8c8d; } .scanner-spinner { width: 40px; height: 40px; border: 4px solid #f0f0f0; border-top: 4px solid #3498db; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Trade Log Page */ h1 { margin: 20px 0 16px; font-size: 1.8rem; color: #2c3e50; } .dashboard-container { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); overflow: hidden; } table { width: 100%; border-collapse: collapse; } th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; } th { background: #f8f9fa; font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; color: #555; } tr:hover { background: #f5f7fa; } .action-tag { padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; } .action-tag.buy { color: #27ae60; background: #e9f7ef; } .action-tag.sell { color: #e74c3c; background: #fdedec; } .symbol-link { color: #3498db; text-decoration: none; font-weight: 600; } .symbol-link:hover { text-decoration: underline; } .price-cell { font-family: monospace; font-weight: 600; } .empty-state { text-align: center; padding: 40px; color: #7f8c8d; } /* Portfolio Page */ .portfolio-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 10px; } .summary-card { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); padding: 24px; text-align: center; } .card-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #7f8c8d; font-weight: 600; margin-bottom: 8px; } .card-value { font-size: 1.6rem; font-weight: 700; color: #2c3e50; font-family: monospace; } .positive { color: #27ae60 !important; } .negative { color: #e74c3c !important; } /* Responsive */ @media (max-width: 768px) { .nav-container { flex-direction: column; padding: 0; } .nav-links { width: 100%; flex-direction: column; } .nav-links a { padding: 12px 20px; } #controls { flex-direction: column; align-items: stretch; } #controls .control-group { flex-direction: column; } #chart { height: 400px; } .scanner-controls { flex-direction: column; } .scanner-controls .control-group { min-width: 100%; } .results-grid { grid-template-columns: 1fr; } .result-card { flex-direction: column; align-items: center; text-align: center; } .chart-thumbnail { width: 90%; max-width: 480px; } .chart-placeholder { width: 90%; max-width: 480px; } }