* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.6; color: #333; background-color: #f5f5f5; min-height: 100vh; margin: 0; padding: 0; } .app-container { display: flex; min-height: 100vh; } .sidebar { width: 260px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 0; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); position: fixed; height: 100vh; overflow-y: auto; transition: transform 0.3s ease; z-index: 1000; } .sidebar-header { padding: 30px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-align: center; } .sidebar-header h2 { margin: 0; font-size: 1.5rem; font-weight: 700; } .sidebar-menu { list-style: none; padding: 20px 0; margin: 0; } .menu-item { padding: 15px 25px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 15px; border-left: 4px solid transparent; } .menu-item:hover { background-color: rgba(255, 255, 255, 0.1); border-left-color: rgba(255, 255, 255, 0.3); } .menu-item.active { background-color: rgba(255, 255, 255, 0.15); border-left-color: white; font-weight: 600; } .menu-icon { font-size: 1.2rem; width: 20px; display: inline-block; } .menu-text { font-size: 1rem; } .menu-separator { margin-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 15px; } .sidebar-footer { margin-top: auto; padding: 20px 25px; border-top: 1px solid rgba(255, 255, 255, 0.2); } .user-info { display: flex; flex-direction: column; gap: 10px; } #current-user { font-size: 0.9rem; color: rgba(255, 255, 255, 0.9); font-weight: 500; } .logout-btn { background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.2); padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; transition: all 0.2s ease; } .logout-btn:hover { background: rgba(255, 255, 255, 0.2); } .main-content { flex: 1; margin-left: 260px; display: flex; flex-direction: column; } .top-header { background: white; padding: 20px 30px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); display: flex; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 100; } .sidebar-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 5px; border-radius: 4px; transition: background-color 0.2s ease; } .sidebar-toggle:hover { background-color: #f0f0f0; } #page-title { margin: 0; font-size: 1.8rem; font-weight: 600; color: #333; } .content-area { flex: 1; padding: 30px; overflow-y: auto; } .page { display: none; animation: fadeIn 0.3s ease-in-out; } .page.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 768px) { .sidebar { transform: translateX(-100%); width: 280px; } .sidebar.open { transform: translateX(0); } .main-content { margin-left: 0; } .sidebar-toggle { display: block; } .content-area { padding: 20px; } } .trade-form-container, .trade-history-container, .portfolio-container, .gains-losses-container, .login-container, .admin-container { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); max-width: 1000px; margin: 0 auto; } .login-container { max-width: 400px; text-align: center; } .login-form { display: grid; gap: 20px; margin-bottom: 30px; } .login-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 15px 30px; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; } .login-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3); } .login-info { background: #f8f9fa; padding: 20px; border-radius: 8px; border-left: 4px solid #17a2b8; text-align: left; } .login-info p { margin: 5px 0; color: #495057; font-size: 0.9rem; } .admin-actions { margin-bottom: 40px; padding: 25px; background: #f8f9fa; border-radius: 12px; border-left: 4px solid #667eea; } .admin-actions h3 { margin: 0 0 20px 0; color: #333; font-size: 1.2rem; } .create-user-form { display: grid; gap: 20px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; } .create-user-btn { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); color: white; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; justify-self: start; } .create-user-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3); } .users-list-section h3 { color: #333; margin-bottom: 20px; font-size: 1.3rem; border-bottom: 2px solid #eee; padding-bottom: 10px; } .users-list { display: grid; gap: 15px; } .user-item { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 10px; padding: 20px; transition: all 0.2s ease; } .user-item:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .user-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .user-username { font-weight: 700; font-size: 1.1rem; color: #333; } .user-badges { display: flex; gap: 8px; } .admin-badge, .user-badge, .current-badge { padding: 4px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; } .admin-badge { background: #dc3545; color: white; } .user-badge { background: #6c757d; color: white; } .current-badge { background: #17a2b8; color: white; } .delete-user-btn { background: #dc3545; color: white; border: none; padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; } .delete-user-btn:hover { background: #c82333; } .user-info { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; color: #666; } .user-info span { background: #e9ecef; padding: 4px 8px; border-radius: 4px; } @media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } .user-header { flex-direction: column; gap: 10px; align-items: flex-start; } .user-info { flex-direction: column; gap: 8px; } } .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; } .dashboard-card { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); padding: 20px; border-radius: 12px; border-left: 4px solid #667eea; transition: transform 0.2s ease, box-shadow 0.2s ease; } .dashboard-card:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); } .dashboard-card h3 { margin: 0 0 10px 0; font-size: 0.9rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; } .metric-value { font-size: 2rem; font-weight: 700; color: #333; margin-bottom: 5px; } .metric-change { font-size: 0.9rem; color: #28a745; font-weight: 600; } .metric-detail { font-size: 0.9rem; color: #666; font-weight: 500; } .dashboard-card.total-value { border-left-color: #28a745; } .dashboard-card.monthly-investment { border-left-color: #17a2b8; } .dashboard-card.yearly-investment { border-left-color: #ffc107; } .dashboard-card.total-shares { border-left-color: #dc3545; } .dashboard-card.cost-basis { border-left-color: #6f42c1; } /* Dashboard Performance Indicators */ .dashboard-card.positive { background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); border-left-color: #28a745; } .dashboard-card.negative { background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); border-left-color: #dc3545; } .dashboard-card.neutral { background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%); border-left-color: #6c757d; } .dashboard-card.positive .metric-value, .dashboard-card.positive .metric-change { color: #155724; } .dashboard-card.negative .metric-value, .dashboard-card.negative .metric-change { color: #721c24; } .dashboard-card.neutral .metric-value, .dashboard-card.neutral .metric-change { color: #495057; } /* Subtle indicators for related cards */ .dashboard-card.total-value.positive, .dashboard-card.cost-basis.positive { border-left-color: #28a745; } .dashboard-card.total-value.negative, .dashboard-card.cost-basis.negative { border-left-color: #dc3545; } .etf-breakdown { margin-top: 20px; } .etf-breakdown h3 { color: #333; margin-bottom: 20px; font-size: 1.3rem; border-bottom: 2px solid #eee; padding-bottom: 10px; } .breakdown-list { display: grid; gap: 15px; } .etf-item { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 15px; transition: all 0.2s ease; } .etf-item:hover { background: #e9ecef; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .etf-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .etf-symbol { font-weight: 700; font-size: 1.1rem; color: #333; } .etf-value { font-weight: 600; font-size: 1rem; color: #28a745; } .etf-details { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; color: #666; } .etf-details span { background: #dee2e6; padding: 2px 8px; border-radius: 4px; } .no-data { text-align: center; color: #666; font-style: italic; padding: 40px 20px; margin: 0; } .portfolio-overview { margin-bottom: 30px; } .portfolio-overview h3 { color: #333; margin-bottom: 20px; font-size: 1.3rem; border-bottom: 2px solid #eee; padding-bottom: 10px; } .overview-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } .stat-item { background: #f8f9fa; padding: 20px; border-radius: 8px; border-left: 4px solid #667eea; display: flex; flex-direction: column; align-items: center; text-align: center; } .stat-label { font-size: 0.9rem; color: #666; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; } .stat-value { font-size: 1.5rem; font-weight: 700; color: #333; } .portfolio-holdings h3 { color: #333; margin-bottom: 20px; font-size: 1.3rem; border-bottom: 2px solid #eee; padding-bottom: 10px; } .holdings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; } .holding-card { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 12px; padding: 20px; transition: all 0.2s ease; } .holding-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .holding-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #dee2e6; } .holding-symbol { font-weight: 700; font-size: 1.2rem; color: #333; } .holding-allocation { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; } .holding-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .holding-stat { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; } .holding-stat span:first-child { color: #666; font-size: 0.9rem; } .holding-stat span:last-child { font-weight: 600; color: #333; } /* Gains/Losses Page Styles */ .performance-summary { margin-bottom: 40px; } .performance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 30px; } .performance-card { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); padding: 25px; border-radius: 12px; border-left: 4px solid #667eea; transition: transform 0.2s ease, box-shadow 0.2s ease; text-align: center; } .performance-card:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); } .performance-card.positive { border-left-color: #28a745; background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); } .performance-card.negative { border-left-color: #dc3545; background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); } .performance-card h3 { margin: 0 0 15px 0; font-size: 1rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; } .performance-value { font-size: 2.2rem; font-weight: 700; color: #333; margin-bottom: 8px; } .performance-card.positive .performance-value { color: #155724; } .performance-card.negative .performance-value { color: #721c24; } .performance-percentage { font-size: 1.2rem; font-weight: 600; } .performance-card.positive .performance-percentage { color: #155724; } .performance-card.negative .performance-percentage { color: #721c24; } .performance-detail { font-size: 0.9rem; color: #666; font-style: italic; } .price-updates-section, .gains-breakdown-section { margin-bottom: 40px; } .price-updates-section h3, .gains-breakdown-section h3 { color: #333; margin-bottom: 20px; font-size: 1.3rem; border-bottom: 2px solid #eee; padding-bottom: 10px; } .price-update-controls { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; } .update-all-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .update-all-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3); } .update-info { color: #666; font-size: 0.9rem; font-style: italic; } .price-update-list { display: grid; gap: 15px; } .price-update-item { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 10px; padding: 20px; transition: all 0.2s ease; } .price-update-item:hover { background: #e9ecef; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .price-update-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .etf-symbol-update { font-weight: 700; font-size: 1.2rem; color: #333; } .etf-position { color: #666; font-size: 0.9rem; } .price-update-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-bottom: 10px; } .price-update-controls label { font-size: 0.9rem; color: #666; font-weight: 600; } .current-price-input { padding: 8px 12px; border: 2px solid #ddd; border-radius: 6px; font-size: 1rem; transition: border-color 0.3s ease; } .current-price-input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .update-price-btn { background: #28a745; color: white; border: none; padding: 8px 16px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; } .update-price-btn:hover { background: #218838; } .price-info { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: #666; } .price-change { font-weight: 600; } .price-change.positive { color: #28a745; } .price-change.negative { color: #dc3545; } .gains-breakdown-list { display: grid; gap: 15px; } .gains-breakdown-item { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 10px; padding: 20px; transition: all 0.2s ease; } .gains-breakdown-item:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .gains-breakdown-item.positive { border-left: 4px solid #28a745; background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); } .gains-breakdown-item.negative { border-left: 4px solid #dc3545; background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); } .breakdown-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); } .breakdown-symbol { font-weight: 700; font-size: 1.2rem; color: #333; } .breakdown-performance { font-weight: 600; font-size: 1rem; } .gains-breakdown-item.positive .breakdown-performance { color: #155724; } .gains-breakdown-item.negative .breakdown-performance { color: #721c24; } .breakdown-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .breakdown-stat { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; } .breakdown-stat span:first-child { color: #666; font-size: 0.9rem; } .breakdown-stat span:last-child { font-weight: 600; color: #333; } .trade-form-section h2, .trades-list-section h2 { color: #333; margin-bottom: 25px; font-size: 1.5rem; border-bottom: 2px solid #eee; padding-bottom: 10px; } .trade-form { display: grid; gap: 20px; } .form-group { display: flex; flex-direction: column; } .form-group label { margin-bottom: 8px; font-weight: 600; color: #555; } .form-group input, .form-group select, .form-group textarea { padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s ease; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .form-group textarea { resize: vertical; min-height: 80px; } .submit-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 15px 30px; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; margin-top: 10px; } .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3); } .submit-btn:active { transform: translateY(0); } .trades-controls { display: flex; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; } .clear-btn, .export-btn { padding: 10px 20px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .clear-btn { background-color: #dc3545; color: white; } .clear-btn:hover { background-color: #c82333; } .export-btn { background-color: #28a745; color: white; } .export-btn:hover { background-color: #218838; } .trades-list { max-height: 600px; overflow-y: auto; } .no-trades { text-align: center; color: #666; font-style: italic; padding: 40px 20px; } .trade-item { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; margin-bottom: 15px; overflow: hidden; transition: all 0.2s ease; } .trade-item:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .trade-item.buy { border-left: 4px solid #28a745; } .trade-item.sell { border-left: 4px solid #dc3545; } .trade-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: white; border-bottom: 1px solid #dee2e6; } .etf-symbol { font-weight: 700; font-size: 1.1rem; color: #333; } .trade-type { padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; } .trade-type.buy { background-color: #d4edda; color: #155724; } .trade-type.sell { background-color: #f8d7da; color: #721c24; } .delete-btn { background: #dc3545; color: white; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; font-weight: bold; transition: all 0.2s ease; } .delete-btn:hover { background: #c82333; transform: scale(1.1); } .trade-details { padding: 15px 20px; } .trade-info { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 10px; } .trade-info span { background: #e9ecef; padding: 4px 8px; border-radius: 4px; font-size: 0.9rem; color: #495057; } .total-value { font-weight: 600; color: #333 !important; background: #fff3cd !important; } .trade-datetime { display: flex; gap: 15px; margin-bottom: 10px; font-size: 0.9rem; color: #666; } .trade-notes { background: #f8f9fa; padding: 10px; border-radius: 4px; font-size: 0.9rem; color: #495057; border-left: 3px solid #dee2e6; margin-top: 10px; } .notification { position: fixed; top: 20px; right: 20px; padding: 15px 20px; border-radius: 8px; color: white; font-weight: 600; z-index: 1000; opacity: 0; transform: translateX(100%); transition: all 0.3s ease; max-width: 300px; } .notification.show { opacity: 1; transform: translateX(0); } .notification.success { background-color: #28a745; } .notification.error { background-color: #dc3545; } .notification.info { background-color: #17a2b8; } @media (max-width: 480px) { .container { padding: 10px; } .trade-form-section, .trades-list-section { padding: 20px; } .trade-info { flex-direction: column; gap: 8px; } .trades-controls { flex-direction: column; } .notification { left: 10px; right: 10px; max-width: none; } .cgt-rates-grid { grid-template-columns: 1fr; gap: 15px; } .cgt-grid { grid-template-columns: 1fr; } .cgt-preview-chart { flex-direction: column; height: auto; gap: 10px; } .rate-bar { width: 100%; height: 40px; flex-direction: row; justify-content: space-between; align-items: center; } } /* CGT Settings Styles */ .cgt-settings-container { max-width: 800px; margin: 0 auto; padding: 20px; } .cgt-explanation { background: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 25px; border-left: 4px solid #007bff; } .cgt-explanation p { margin: 0; color: #666; } .cgt-settings-form { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 25px; } .cgt-rates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; } .cgt-rate-item { display: flex; flex-direction: column; } .cgt-rate-item label { font-weight: 600; margin-bottom: 8px; color: #333; font-size: 14px; } .cgt-rate-input { padding: 12px; border: 2px solid #e1e5e9; border-radius: 6px; font-size: 16px; transition: border-color 0.2s; } .cgt-rate-input:focus { outline: none; border-color: #007bff; } .cgt-options { border-top: 1px solid #e9ecef; padding-top: 25px; margin-top: 25px; } .cgt-options h3 { margin-bottom: 15px; color: #333; } .cgt-options .form-group { margin-bottom: 20px; } .cgt-options label { display: block; font-weight: 600; margin-bottom: 8px; color: #333; } .cgt-options input[type="number"] { width: 100%; max-width: 250px; padding: 12px; border: 2px solid #e1e5e9; border-radius: 6px; font-size: 16px; } .cgt-options small { display: block; color: #666; font-size: 12px; margin-top: 5px; } .checkbox-label { display: flex !important; align-items: center; gap: 8px; cursor: pointer; } .checkbox-label input[type="checkbox"] { width: auto; margin: 0; } .cgt-actions { display: flex; gap: 15px; margin-top: 25px; border-top: 1px solid #e9ecef; padding-top: 25px; } .save-cgt-btn { background: #28a745; color: white; border: none; padding: 12px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: background 0.2s; } .save-cgt-btn:hover { background: #218838; } .reset-cgt-btn { background: #6c757d; color: white; border: none; padding: 12px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: background 0.2s; } .reset-cgt-btn:hover { background: #5a6268; } .cgt-preview { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .cgt-preview h3 { margin-bottom: 20px; color: #333; } .cgt-preview-chart { display: flex; justify-content: space-between; align-items: flex-end; height: 120px; padding: 20px; background: #f8f9fa; border-radius: 8px; gap: 15px; } .rate-bar { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; position: relative; background: linear-gradient(135deg, #007bff, #0056b3); border-radius: 4px; justify-content: flex-end; padding: 8px 4px; color: white; font-weight: 600; font-size: 12px; min-height: var(--rate-height, 20%); transition: min-height 0.3s ease; } .period-label { position: absolute; bottom: -25px; font-size: 11px; color: #666; font-weight: 600; } .rate-value { font-size: 14px; font-weight: bold; } /* CGT Summary Styles */ .cgt-summary { margin-top: 30px; background: white; padding: 25px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border-left: 4px solid #ffc107; } .cgt-summary h3 { margin-bottom: 20px; color: #333; display: flex; align-items: center; gap: 8px; } .cgt-summary h3::before { content: '🧮'; font-size: 18px; } .cgt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; } .cgt-card { background: #f8f9fa; padding: 20px; border-radius: 8px; border-left: 4px solid #dee2e6; transition: all 0.2s; } .cgt-card.positive { border-left-color: #28a745; background: #f8fff9; } .cgt-card.negative { border-left-color: #dc3545; background: #fffafa; } .cgt-card h4 { margin-bottom: 12px; color: #666; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .cgt-value { font-size: 24px; font-weight: bold; margin-bottom: 8px; color: #333; } .cgt-card.positive .cgt-value { color: #28a745; } .cgt-card.negative .cgt-value { color: #dc3545; } .cgt-detail { font-size: 12px; color: #666; } .holding-periods { display: flex; flex-direction: column; gap: 8px; } .period-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #e9ecef; } .period-item:last-child { border-bottom: none; } .period-label { font-size: 12px; color: #666; font-weight: 500; } .period-value { font-size: 14px; font-weight: 600; color: #333; }