/* =========================================== CSS VARIABLES FOR THEME SUPPORT =========================================== */ :root { /* Light Theme Colors */ --bg-primary: #f5f5f5; --bg-secondary: #ffffff; --bg-tertiary: #f8f9fa; --bg-sidebar: linear-gradient(135deg, #667eea 0%, #764ba2 100%); --text-primary: #333333; --text-secondary: #666666; --text-muted: #999999; --text-inverse: #ffffff; --border-light: #dee2e6; --border-medium: #e1e5e9; --border-dark: rgba(0, 0, 0, 0.1); --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1); --shadow-medium: 0 2px 8px rgba(0, 0, 0, 0.1); --shadow-heavy: 0 2px 10px rgba(0, 0, 0, 0.1); --accent-primary: #667eea; --accent-secondary: #764ba2; --success: #28a745; --warning: #6366f1; --danger: #dc3545; --info: #17a2b8; --input-bg: #ffffff; --input-border: #e1e5e9; --input-focus: #667eea; --modal-overlay: rgba(0, 0, 0, 0.5); --sidebar-overlay: rgba(255, 255, 255, 0.1); /* Additional semantic colors */ --success-bg: #d4edda; --success-border: #c3e6cb; --success-text: #155724; --danger-bg: #f8d7da; --danger-border: #f5c6cb; --danger-text: #721c24; --warning-bg: #e0e7ff; --warning-border: #c7d2fe; --warning-text: #4338ca; --warning-dark: #5b21b6; --warning-darker: #4c1d95; --info-bg: #cce5ff; --info-text: #004085; --info-dark: #0056b3; --text-muted-dark: #5a6268; --accent-purple: #6f42c1; --accent-purple-dark: #5a32a3; --bg-dark: #2d3748; --text-light: #e2e8f0; } /* Dark Theme Colors */ @media (prefers-color-scheme: dark) { :root { --bg-primary: #1a1a1a; --bg-secondary: #2d2d2d; --bg-tertiary: #3a3a3a; --bg-sidebar: linear-gradient(135deg, #4a5568 0%, #553c9a 100%); --text-primary: #ffffff; --text-secondary: #b0b0b0; --text-muted: #808080; --text-inverse: #1a1a1a; --border-light: #404040; --border-medium: #505050; --border-dark: rgba(255, 255, 255, 0.1); --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.3); --shadow-medium: 0 2px 8px rgba(0, 0, 0, 0.3); --shadow-heavy: 0 2px 10px rgba(0, 0, 0, 0.4); --accent-primary: #7c8aed; --accent-secondary: #8b5fbf; --success: #34d058; --warning: #8b5cf6; --danger: #f85149; --info: #1f6feb; --input-bg: #3a3a3a; --input-border: #505050; --input-focus: #7c8aed; --modal-overlay: rgba(0, 0, 0, 0.7); --sidebar-overlay: rgba(255, 255, 255, 0.15); /* Additional dark theme overrides */ --success-bg: #1e4d2b; --success-border: #2d5e37; --success-text: #66d084; --danger-bg: #4d1e1e; --danger-border: #5e2d2d; --danger-text: #ff8a8a; --warning-bg: #312e81; --warning-border: #3730a3; --warning-text: #a5b4fc; --warning-dark: #8b5cf6; --warning-darker: #7c3aed; --info-bg: #1e2d4d; --info-border: #2d3d5e; --info-text: #66b3ff; --info-dark: #4da6ff; --text-muted-dark: #b0b0b0; --accent-purple: #a855f7; --accent-purple-dark: #9333ea; --bg-dark: #1a1a1a; --text-light: #ffffff; } } * { 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: var(--text-primary); background-color: var(--bg-primary); min-height: 100vh; margin: 0; padding: 0; transition: background-color 0.3s ease, color 0.3s ease; } .app-container { display: flex; min-height: 100vh; } .sidebar { width: 240px; background: var(--bg-sidebar); color: var(--text-inverse); padding: 0; box-shadow: var(--shadow-medium); position: fixed; height: 100vh; overflow-y: auto; transition: all 0.3s ease; z-index: 1000; } .sidebar-header { padding: 20px 15px; border-bottom: 1px solid var(--border-dark); 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: 12px 20px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 12px; border-left: 3px solid transparent; } .menu-item:hover { background-color: var(--sidebar-overlay); border-left-color: var(--border-dark); } .menu-item.active { background-color: var(--sidebar-overlay); border-left-color: var(--text-inverse); 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: 240px; display: flex; flex-direction: column; } .top-header { background: var(--bg-secondary); padding: 12px 20px; box-shadow: var(--shadow-light); display: flex; align-items: center; gap: 15px; position: sticky; top: 0; z-index: 100; transition: background-color 0.3s ease; } .sidebar-toggle { display: block; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 8px; border-radius: 6px; transition: all 0.2s ease; color: var(--text-secondary); } .sidebar-toggle:hover { background: var(--bg-tertiary); color: var(--text-primary); } #page-title { margin: 0; font-size: 1.5rem; font-weight: 600; color: var(--text-primary); } @media (max-width: 768px) { #page-title { font-size: 1.3rem; } } @media (max-width: 480px) { #page-title { font-size: 1.1rem; } } .content-area { flex: 1; padding: 15px 20px; 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: 250px; } .sidebar.open { transform: translateX(0); } .main-content { margin-left: 0; } .sidebar-toggle { display: block; } .content-area { padding: 10px 15px; } .dashboard-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .dashboard-card { padding: 12px; } .metric-value { font-size: 1.3rem; } .trade-form-container, .trade-history-container, .portfolio-container, .gains-losses-container, .login-container, .admin-container { padding: 15px; margin: 0 5px; } } .trade-form-container, .trade-history-container, .portfolio-container, .gains-losses-container, .login-container, .admin-container { background: var(--bg-secondary); padding: 20px; border-radius: 8px; box-shadow: var(--shadow-light); max-width: 1200px; 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: var(--bg-tertiary); padding: 20px; border-radius: 8px; border-left: 4px solid var(--info); text-align: left; } .login-info p { margin: 5px 0; color: var(--text-secondary); font-size: 0.9rem; } .admin-actions { margin-bottom: 25px; padding: 20px; background: var(--bg-tertiary); border-radius: 8px; border-left: 3px solid #667eea; } @media (max-width: 480px) { .admin-actions { padding: 15px; margin-bottom: 20px; } } .admin-actions h3 { margin: 0 0 20px 0; color: var(--text-primary); 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, var(--success) 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: var(--text-primary); margin-bottom: 20px; font-size: 1.3rem; border-bottom: 2px solid var(--border-light); padding-bottom: 10px; } .users-list { display: grid; gap: 15px; } .user-item { background: var(--bg-tertiary); border: 1px solid var(--border-light); border-radius: 10px; padding: 20px; transition: all 0.2s ease; } .user-item:hover { box-shadow: var(--shadow-medium); } .user-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .user-username { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); } .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: var(--danger); color: white; } .user-badge { background: var(--text-muted); color: white; } .current-badge { background: var(--info); color: white; } .delete-user-btn { background: var(--danger); 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: var(--danger); } .user-info { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; color: var(--text-secondary); } .user-info span { background: var(--bg-tertiary); 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; } } /* Simplified Dashboard Layout */ .dashboard-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; } /* Card Groups - Each group contains a data card and its quick action card */ .card-group { display: flex; flex-direction: column; gap: 10px; } @media (max-width: 768px) { .dashboard-summary { grid-template-columns: 1fr 1fr; gap: 15px; } } @media (max-width: 480px) { .dashboard-summary { grid-template-columns: 1fr; gap: 12px; } } /* Summary Card Styles */ .summary-card { background: var(--bg-secondary); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-light); border-left: 4px solid var(--accent-primary); transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; user-select: none; } .summary-header { margin-bottom: 15px; } .summary-header h3 { margin: 0; font-size: 1rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; } .summary-content { display: flex; flex-direction: column; gap: 5px; } .primary-value { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; } .primary-value.total { color: var(--accent-primary); } .secondary-value { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; } /* Card-specific colors */ .portfolio-summary { border-left-color: var(--success); } .cash-summary { border-left-color: var(--info); } .subscriptions-summary { border-left-color: var(--accent-purple); } .total-summary { border-left-color: var(--accent-primary); } @media (max-width: 480px) { .summary-card { padding: 15px; } .primary-value { font-size: 1.5rem; } } /* Top Accounts Section Styles */ .top-accounts-section { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border-light); } .top-accounts-title { font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; } .top-accounts-list { display: flex; flex-direction: column; gap: 8px; } .top-account-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 0.85rem; border-bottom: 1px solid var(--border-light); transition: background-color 0.2s ease; } .top-account-item:last-child { border-bottom: none; } .top-account-item:hover { background-color: var(--bg-tertiary); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 4px; } .top-account-name { color: var(--text-primary); font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .top-account-details { color: var(--text-muted); font-size: 0.75rem; margin-left: 8px; } .top-account-value { color: var(--text-secondary); font-weight: 600; text-align: right; min-width: 60px; } .no-data-small { color: var(--text-muted); font-size: 0.8rem; text-align: center; padding: 10px 0; font-style: italic; } /* Responsive adjustments for top accounts */ @media (max-width: 768px) { .top-accounts-section { margin-top: 15px; padding-top: 12px; } .top-account-item { font-size: 0.8rem; padding: 6px 0; } .top-account-details { display: none; } .top-account-value { min-width: 50px; font-size: 0.8rem; } } @media (max-width: 480px) { .top-accounts-title { font-size: 0.8rem; margin-bottom: 8px; } .top-account-name { font-size: 0.75rem; } .top-account-value { font-size: 0.75rem; min-width: 45px; } } /* Quick Action Cards */ .quick-action-card { background: var(--bg-secondary); border-radius: 6px; padding: 8px 12px; border: 1px dashed var(--border-medium); box-shadow: var(--shadow-light); transition: all 0.2s ease; cursor: pointer; user-select: none; display: flex; flex-direction: row; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; min-height: 35px; gap: 6px; } .quick-action-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-light); border-color: var(--accent-primary); background: var(--bg-tertiary); } .quick-action-card:active { transform: translateY(0px); } .quick-action-icon { font-size: 0.9rem; opacity: 0.8; transition: all 0.2s ease; } .quick-action-text { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); transition: color 0.2s ease; } .quick-action-card:hover .quick-action-icon { opacity: 1; } .quick-action-card:hover .quick-action-text { color: var(--text-primary); } /* Specific action card styling */ .portfolio-action { border-color: var(--success); } .portfolio-action:hover { border-color: var(--success); } .portfolio-action:hover .quick-action-text { color: var(--success); } .cash-action { border-color: var(--info); } .cash-action:hover { border-color: var(--info); } .cash-action:hover .quick-action-text { color: var(--info); } .subscription-action { border-color: var(--accent-purple); } .subscription-action:hover { border-color: var(--accent-purple); } .subscription-action:hover .quick-action-text { color: var(--accent-purple); } /* Responsive adjustments for quick action cards */ @media (max-width: 768px) { .quick-action-card { padding: 6px 10px; min-height: 30px; gap: 5px; } .quick-action-icon { font-size: 0.8rem; } .quick-action-text { font-size: 0.7rem; } } @media (max-width: 480px) { .quick-action-card { padding: 5px 8px; min-height: 28px; gap: 4px; } .quick-action-icon { font-size: 0.75rem; } .quick-action-text { font-size: 0.65rem; } } .dashboard-card.total-value { border-left-color: var(--success); } .dashboard-card.monthly-investment { border-left-color: var(--info); } .dashboard-card.yearly-investment { border-left-color: var(--accent-purple); } .dashboard-card.total-shares { border-left-color: var(--danger); } .dashboard-card.cost-basis { border-left-color: var(--accent-purple); } /* Dashboard Performance Indicators */ .dashboard-card.positive { background: linear-gradient(135deg, var(--success-bg) 0%, var(--success-border) 100%); border-left-color: var(--success); } .dashboard-card.negative { background: linear-gradient(135deg, var(--danger-bg) 0%, var(--danger-border) 100%); border-left-color: var(--danger); } .dashboard-card.neutral { background: linear-gradient(135deg, var(--border-light) 0%, var(--border-medium) 100%); border-left-color: var(--text-muted); } .dashboard-card.positive .metric-value, .dashboard-card.positive .metric-change { color: var(--success-text); } .dashboard-card.negative .metric-value, .dashboard-card.negative .metric-change { color: var(--danger-text); } .dashboard-card.neutral .metric-value, .dashboard-card.neutral .metric-change { color: var(--text-secondary); } /* Subtle indicators for related cards */ .dashboard-card.total-value.positive, .dashboard-card.cost-basis.positive { border-left-color: var(--success); } .dashboard-card.total-value.negative, .dashboard-card.cost-basis.negative { border-left-color: var(--danger); } /* Total Holdings Card Styles */ .total-holdings-section { margin: 20px 0; } .total-holdings-card { background: linear-gradient(135deg, var(--info-bg) 0%, #bfdbfe 100%); padding: 25px; border-radius: 15px; border-left: 4px solid var(--info); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: transform 0.2s ease, box-shadow 0.2s ease; } .total-holdings-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); } .total-holdings-card h3 { margin: 0 0 20px 0; font-size: 1.3rem; color: var(--info-dark); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; text-align: center; border-bottom: 2px solid var(--info); padding-bottom: 10px; } .holdings-breakdown { display: flex; flex-direction: column; gap: 12px; } .holdings-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; } .holdings-label { font-size: 14px; color: var(--text-muted); font-weight: 500; } .holdings-value { font-size: 16px; font-weight: 600; color: var(--info-dark); } .holdings-divider { height: 2px; background: linear-gradient(90deg, var(--info) 0%, var(--info-dark) 100%); margin: 10px 0; border-radius: 1px; } .holdings-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; background: rgba(243, 156, 18, 0.1); border-radius: 8px; padding: 15px 20px; margin-top: 5px; } .holdings-total .holdings-label { font-size: 16px; font-weight: 600; color: var(--info-dark); text-transform: uppercase; letter-spacing: 0.5px; } .holdings-total .holdings-value.total { font-size: 20px; font-weight: 700; color: var(--info-dark); } .etf-breakdown { margin-top: 20px; } .etf-breakdown h3 { color: var(--text-primary); margin-bottom: 20px; font-size: 1.3rem; border-bottom: 2px solid var(--border-light); padding-bottom: 10px; } .breakdown-list { display: grid; gap: 15px; } .etf-item { background: var(--bg-tertiary); border: 1px solid var(--border-light); border-radius: 8px; padding: 15px; transition: all 0.2s ease; } .etf-item:hover { background: var(--bg-tertiary); box-shadow: var(--shadow-light); } .etf-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .etf-symbol { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); } .etf-value { font-weight: 600; font-size: 1rem; color: var(--success); } .etf-details { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; color: var(--text-secondary); } .etf-details span { background: var(--border-light); padding: 2px 8px; border-radius: 4px; } .no-data { text-align: center; color: var(--text-secondary); font-style: italic; padding: 40px 20px; margin: 0; } .portfolio-overview { margin-bottom: 30px; } .portfolio-overview h3 { color: var(--text-primary); margin-bottom: 20px; font-size: 1.3rem; border-bottom: 2px solid var(--border-light); padding-bottom: 10px; } .overview-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; } @media (max-width: 768px) { .overview-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; } } @media (max-width: 480px) { .overview-stats { grid-template-columns: 1fr 1fr; gap: 8px; } } .stat-item { background: var(--bg-tertiary); padding: 15px; border-radius: 6px; border-left: 3px solid #667eea; display: flex; flex-direction: column; align-items: center; text-align: center; } @media (max-width: 480px) { .stat-item { padding: 10px; } } .stat-label { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; } .stat-value { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); } @media (max-width: 480px) { .stat-value { font-size: 1.1rem; } } .portfolio-holdings h3 { color: var(--text-primary); margin-bottom: 20px; font-size: 1.3rem; border-bottom: 2px solid var(--border-light); padding-bottom: 10px; } .holdings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; } .holding-card { background: var(--bg-tertiary); border: 1px solid var(--border-light); border-radius: 8px; padding: 15px; 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 var(--border-light); } .holding-symbol { font-weight: 700; font-size: 1.2rem; color: var(--text-primary); } .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: var(--text-secondary); font-size: 0.9rem; } .holding-stat span:last-child { font-weight: 600; color: var(--text-primary); } /* Gains/Losses Page Styles */ .performance-summary { margin-bottom: 40px; } .performance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-bottom: 20px; } .performance-card { background: var(--bg-tertiary); padding: 15px; border-radius: 8px; border-left: 3px 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: var(--success); background: linear-gradient(135deg, var(--success-bg) 0%, var(--success-border) 100%); } .performance-card.negative { border-left-color: var(--danger); background: linear-gradient(135deg, var(--danger-bg) 0%, var(--danger-border) 100%); } .performance-card h3 { margin: 0 0 15px 0; font-size: 1rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; } .performance-value { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; } .performance-card.positive .performance-value { color: var(--success-text); } .performance-card.negative .performance-value { color: var(--danger-text); } .performance-percentage { font-size: 1.2rem; font-weight: 600; } .performance-card.positive .performance-percentage { color: var(--success-text); } .performance-card.negative .performance-percentage { color: var(--danger-text); } .performance-detail { font-size: 0.9rem; color: var(--text-secondary); font-style: italic; } .price-updates-section, .gains-breakdown-section { margin-bottom: 40px; } .price-updates-section h3, .gains-breakdown-section h3 { color: var(--text-primary); margin-bottom: 20px; font-size: 1.3rem; border-bottom: 2px solid var(--border-light); 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: var(--text-secondary); font-size: 0.9rem; font-style: italic; } .price-update-list { display: grid; gap: 15px; } .price-update-item { background: var(--bg-tertiary); border: 1px solid var(--border-light); border-radius: 10px; padding: 20px; transition: all 0.2s ease; } .price-update-item:hover { background: var(--bg-tertiary); box-shadow: var(--shadow-light); } .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: var(--text-primary); } .etf-position { color: var(--text-secondary); 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: var(--text-secondary); font-weight: 600; } .current-price-input { padding: 8px 12px; border: 2px solid var(--border-medium); 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: var(--success); 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: var(--success); } .price-info { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--text-secondary); } .price-change { font-weight: 600; } .price-change.positive { color: var(--success); } .price-change.negative { color: var(--danger); } .gains-breakdown-list { display: grid; gap: 15px; } .gains-breakdown-item { background: var(--bg-tertiary); border: 1px solid var(--border-light); border-radius: 10px; padding: 20px; transition: all 0.2s ease; } .gains-breakdown-item:hover { box-shadow: var(--shadow-medium); } .gains-breakdown-item.positive { border-left: 4px solid var(--success); background: linear-gradient(135deg, var(--success-bg) 0%, var(--success-border) 100%); } .gains-breakdown-item.negative { border-left: 4px solid var(--danger); background: linear-gradient(135deg, var(--danger-bg) 0%, var(--danger-border) 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: var(--text-primary); } .breakdown-performance { font-weight: 600; font-size: 1rem; } .gains-breakdown-item.positive .breakdown-performance { color: var(--success-text); } .gains-breakdown-item.negative .breakdown-performance { color: var(--danger-text); } .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: var(--text-secondary); font-size: 0.9rem; } .breakdown-stat span:last-child { font-weight: 600; color: var(--text-primary); } .trade-form-section h2, .trades-list-section h2 { color: var(--text-primary); margin-bottom: 25px; font-size: 1.5rem; border-bottom: 2px solid var(--border-light); padding-bottom: 10px; } .trade-form { display: grid; gap: 20px; } .form-group { display: flex; flex-direction: column; margin-bottom: 15px; } .form-group label { margin-bottom: 8px; font-weight: 600; color: var(--text-secondary); } .form-group input, .form-group select, .form-group textarea { padding: 10px; border: 1px solid var(--border-medium); border-radius: 6px; font-size: 0.95rem; 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); } /* Form Actions Container */ .form-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border-light); } @media (max-width: 480px) { .form-actions { flex-direction: column-reverse; gap: 10px; } .form-actions button { width: 100%; } } .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: var(--danger); color: white; } .clear-btn:hover { background-color: var(--danger); } .export-btn { background-color: var(--success); color: white; } .export-btn:hover { background-color: var(--success); } .trades-list { max-height: 600px; overflow-y: auto; } .no-trades { text-align: center; color: var(--text-secondary); font-style: italic; padding: 40px 20px; } .trade-item { background: var(--bg-tertiary); border: 1px solid var(--border-light); border-radius: 6px; margin-bottom: 10px; overflow: hidden; transition: all 0.2s ease; } .trade-item:hover { box-shadow: var(--shadow-medium); } .trade-item.buy { border-left: 4px solid var(--success); } .trade-item.sell { border-left: 4px solid var(--danger); } .trade-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-light); } .etf-symbol { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); } .trade-type { padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; } .trade-type.buy { background-color: var(--success-bg); color: var(--success-text); } .trade-type.sell { background-color: var(--danger-bg); color: var(--danger-text); } .delete-btn { background: var(--danger); 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: var(--danger); transform: scale(1.1); } .trade-details { padding: 12px 15px; } .trade-info { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 10px; } .trade-info span { background: var(--bg-tertiary); padding: 4px 8px; border-radius: 4px; font-size: 0.9rem; color: var(--text-secondary); } .total-value { font-weight: 600; color: var(--text-primary) !important; background: var(--warning-bg) !important; } .trade-datetime { display: flex; gap: 15px; margin-bottom: 10px; font-size: 0.9rem; color: var(--text-secondary); } .trade-notes { background: var(--bg-tertiary); padding: 10px; border-radius: 4px; font-size: 0.9rem; color: var(--text-secondary); border-left: 3px solid var(--border-light); 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: var(--success); } .notification.error { background-color: var(--danger); } .notification.info { background-color: var(--info); } /* Medium screens - tablet landscape */ @media (max-width: 1024px) { .dashboard-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } .performance-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } .holdings-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } } @media (max-width: 480px) { .container { padding: 5px; } .content-area { padding: 8px 10px; } .trade-form-section, .trades-list-section { padding: 15px; } .dashboard-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .dashboard-card { padding: 10px; } .metric-value { font-size: 1.1rem; } .trade-info { flex-direction: column; gap: 5px; } .trades-controls { flex-direction: column; gap: 8px; } .notification { left: 5px; right: 5px; max-width: none; } .cgt-rates-grid { grid-template-columns: 1fr; gap: 10px; } .cgt-grid { grid-template-columns: 1fr; } .trade-form-container, .trade-history-container, .portfolio-container, .gains-losses-container, .login-container, .admin-container { padding: 12px; margin: 0; } .subscription-summary-cards, .cash-summary-cards { grid-template-columns: 1fr; gap: 10px; } .performance-grid { grid-template-columns: 1fr; gap: 10px; } .holdings-grid { grid-template-columns: 1fr; gap: 10px; } } /* CGT Settings Styles */ .cgt-settings-container { max-width: 800px; margin: 0 auto; padding: 20px; } .cgt-explanation { background: var(--bg-tertiary); padding: 15px; border-radius: 8px; margin-bottom: 25px; border-left: 4px solid var(--info); } .cgt-explanation p { margin: 0; color: var(--text-secondary); } .cgt-settings-form { background: var(--bg-secondary); padding: 25px; border-radius: 12px; box-shadow: var(--shadow-heavy); 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: var(--text-primary); font-size: 14px; } .cgt-rate-input { padding: 12px; border: 2px solid var(--border-medium); border-radius: 6px; font-size: 16px; transition: border-color 0.2s; } .cgt-rate-input:focus { outline: none; border-color: var(--info); } .cgt-options { border-top: 1px solid var(--bg-tertiary); padding-top: 25px; margin-top: 25px; } .cgt-options h3 { margin-bottom: 15px; color: var(--text-primary); } .cgt-options .form-group { margin-bottom: 20px; } .cgt-options label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); } .cgt-options input[type="number"] { width: 100%; max-width: 250px; padding: 12px; border: 2px solid var(--border-medium); border-radius: 6px; font-size: 16px; } .cgt-options small { display: block; color: var(--text-secondary); 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 var(--bg-tertiary); padding-top: 25px; } .save-cgt-btn { background: var(--success); color: white; border: none; padding: 12px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: background 0.2s; } .save-cgt-btn:hover { background: var(--success); } .reset-cgt-btn { background: var(--text-muted); color: white; border: none; padding: 12px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: background 0.2s; } .reset-cgt-btn:hover { background: var(--text-muted-dark); } .cgt-preview { background: var(--bg-secondary); padding: 25px; border-radius: 12px; box-shadow: var(--shadow-heavy); } .cgt-preview h3 { margin-bottom: 20px; color: var(--text-primary); } .cgt-preview-chart { display: flex; justify-content: space-between; align-items: flex-end; height: 120px; padding: 20px; background: var(--bg-tertiary); 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, var(--info), var(--info-dark)); 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: var(--text-secondary); font-weight: 600; } .rate-value { font-size: 14px; font-weight: bold; } /* CGT Summary Styles */ .cgt-summary { margin-top: 30px; background: var(--bg-secondary); padding: 25px; border-radius: 12px; box-shadow: var(--shadow-heavy); border-left: 4px solid var(--accent-purple); } .cgt-summary h3 { margin-bottom: 20px; color: var(--text-primary); 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: var(--bg-tertiary); padding: 20px; border-radius: 8px; border-left: 4px solid var(--border-light); transition: all 0.2s; } .cgt-card.positive { border-left-color: var(--success); background: var(--success-bg); } .cgt-card.negative { border-left-color: var(--danger); background: var(--danger-bg); } .cgt-card h4 { margin-bottom: 12px; color: var(--text-secondary); 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: var(--text-primary); } .cgt-card.positive .cgt-value { color: var(--success); } .cgt-card.negative .cgt-value { color: var(--danger); } .cgt-detail { font-size: 12px; color: var(--text-secondary); } .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 var(--bg-tertiary); } .period-item:last-child { border-bottom: none; } .period-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; } .period-value { font-size: 14px; font-weight: 600; color: var(--text-primary); } /* Long-Term CGT Section (8+ Years) */ .long-term-cgt-section { margin-top: 30px; background: var(--bg-secondary); padding: 25px; border-radius: 12px; box-shadow: var(--shadow-heavy); border-left: 4px solid var(--info); } .long-term-cgt-section h3 { margin-bottom: 20px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; } .long-term-cgt-section h3::before { content: '📅'; font-size: 18px; } .long-term-cgt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 25px; } .long-term-cgt-card { background: var(--bg-tertiary); padding: 20px; border-radius: 8px; border-left: 4px solid var(--info); transition: all 0.2s; } .long-term-cgt-card.total-eligible { border-left-color: var(--text-muted); } .long-term-cgt-card.total-gains-8yr { border-left-color: var(--success); background: var(--success-bg); } .long-term-cgt-card.cgt-liability-8yr { border-left-color: var(--danger); background: var(--danger-bg); } .long-term-cgt-card.after-tax-8yr { border-left-color: var(--info); background: var(--info-bg); } .long-term-cgt-card h4 { margin-bottom: 12px; color: var(--text-secondary); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .long-term-value { font-size: 24px; font-weight: bold; margin-bottom: 8px; color: var(--success); } .long-term-value.negative { color: var(--danger); } .long-term-detail { font-size: 12px; color: var(--text-secondary); } .long-term-breakdown { border-top: 1px solid var(--bg-tertiary); padding-top: 20px; } .long-term-breakdown h4 { margin-bottom: 15px; color: var(--text-primary); font-size: 16px; } .long-term-breakdown-list { display: flex; flex-direction: column; gap: 15px; } .long-term-breakdown-item { background: var(--bg-tertiary); padding: 15px; border-radius: 8px; border-left: 4px solid var(--info); } .long-term-breakdown-item.positive { border-left-color: var(--success); background: var(--success-bg); } .long-term-breakdown-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .long-term-symbol { font-weight: bold; font-size: 16px; color: var(--text-primary); } .long-term-performance { font-weight: bold; color: var(--success); } .long-term-performance.negative { color: var(--danger); } .long-term-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; } .long-term-stat { display: flex; justify-content: space-between; font-size: 12px; } .long-term-stat span:first-child { color: var(--text-secondary); } .long-term-stat span:last-child { font-weight: 600; color: var(--text-primary); } /* =========================================== API Tokens Styles =========================================== */ .tokens-container { max-width: 1000px; margin: 0 auto; padding: 20px; } .tokens-intro { background: var(--bg-tertiary); padding: 20px; border-radius: 8px; margin-bottom: 30px; border-left: 4px solid var(--info); } .tokens-intro p { margin: 0; color: var(--text-secondary); font-size: 0.95em; line-height: 1.5; } .token-actions { background: var(--bg-secondary); padding: 25px; border-radius: 12px; box-shadow: var(--shadow-heavy); margin-bottom: 30px; } .create-token-form .form-row { display: flex; gap: 20px; margin-bottom: 20px; } .create-token-form .form-group { flex: 1; } .create-token-form label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-primary); } .create-token-form input, .create-token-form select { width: 100%; padding: 10px; border: 2px solid var(--border-medium); border-radius: 6px; font-size: 14px; transition: border-color 0.2s; } .create-token-form input:focus, .create-token-form select:focus { outline: none; border-color: var(--info); } .create-token-btn { background: var(--info); color: white; padding: 12px 24px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background-color 0.2s; } .create-token-btn:hover { background: var(--info-dark); } .tokens-list-section { background: var(--bg-secondary); padding: 25px; border-radius: 12px; box-shadow: var(--shadow-heavy); } .tokens-list { display: flex; flex-direction: column; gap: 15px; } .token-item { background: var(--bg-tertiary); padding: 20px; border-radius: 8px; border-left: 4px solid var(--success); display: flex; justify-content: space-between; align-items: flex-start; } .token-info { flex: 1; } .token-name { font-weight: 600; color: var(--text-primary); margin-bottom: 8px; font-size: 16px; } .token-details { display: flex; flex-wrap: wrap; gap: 15px; font-size: 13px; color: var(--text-secondary); } .token-detail { display: flex; align-items: center; gap: 5px; } .token-prefix { font-family: 'Courier New', monospace; background: var(--bg-tertiary); padding: 2px 6px; border-radius: 3px; font-size: 12px; } .token-status { padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 500; text-transform: uppercase; } .token-status.active { background: var(--success-bg); color: var(--success-text); } .token-status.expired { background: var(--danger-bg); color: var(--danger-text); } .token-actions-buttons { display: flex; gap: 8px; } .token-edit-btn, .token-delete-btn { padding: 6px 12px; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; transition: background-color 0.2s; } .token-edit-btn { background: var(--accent-purple); color: white; } .token-edit-btn:hover { background: var(--accent-purple-dark); } .token-delete-btn { background: var(--danger); color: white; } .token-delete-btn:hover { background: var(--danger); } /* Modal Styles */ .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-content { background: var(--bg-secondary); padding: 30px; border-radius: 12px; max-width: 600px; width: 90%; box-shadow: 0 10px 30px rgba(0,0,0,0.3); } .token-display { display: flex; margin: 20px 0; gap: 10px; } .token-display input { flex: 1; padding: 10px; border: 2px solid var(--success); border-radius: 6px; font-family: 'Courier New', monospace; font-size: 14px; background: var(--bg-tertiary); } .copy-btn { background: var(--success); color: white; padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; transition: background-color 0.2s; } .copy-btn:hover { background: var(--success); } .copy-btn.copied { background: var(--info); } .token-usage { background: var(--bg-tertiary); padding: 15px; border-radius: 6px; margin: 20px 0; } .usage-example { display: block; background: var(--bg-dark); color: var(--text-light); padding: 15px; border-radius: 6px; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.4; margin-top: 10px; white-space: pre-wrap; overflow-x: auto; } .close-modal-btn { background: var(--text-muted); color: white; padding: 12px 24px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; width: 100%; margin-top: 20px; transition: background-color 0.2s; } .close-modal-btn:hover { background: var(--text-muted-dark); } /* Responsive Design */ @media (max-width: 768px) { .create-token-form .form-row { flex-direction: column; gap: 15px; } .token-item { flex-direction: column; gap: 15px; } .token-actions-buttons { align-self: stretch; } .modal-content { width: 95%; padding: 20px; margin: 20px; } } /* =========================================== Cash Accounts Styles =========================================== */ .cash-accounts-container { max-width: 1000px; margin: 0 auto; padding: 20px; } .cash-intro { background: var(--bg-tertiary); padding: 20px; border-radius: 8px; margin-bottom: 30px; border-left: 4px solid var(--success); } .cash-intro p { margin: 0; color: var(--text-secondary); font-size: 0.95em; line-height: 1.5; } .cash-summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; } .cash-summary-card { background: var(--bg-secondary); padding: 15px; border-radius: 8px; box-shadow: var(--shadow-light); border-left: 3px solid var(--success); } .cash-summary-card h3 { margin: 0 0 15px 0; color: var(--text-primary); font-size: 16px; } .cash-amounts { display: flex; flex-direction: column; gap: 8px; } .amount-line, .stat-line { display: flex; justify-content: space-between; align-items: center; } .amount-line .currency { font-weight: 500; color: var(--text-secondary); } .amount-line .amount { font-weight: 600; font-size: 18px; color: var(--success); } .stat-line span:first-child { color: var(--text-secondary); } .stat-line span:last-child { font-weight: 600; color: var(--text-primary); } .cash-actions { background: var(--bg-secondary); padding: 25px; border-radius: 12px; box-shadow: var(--shadow-heavy); margin-bottom: 30px; } .create-account-form .form-group.full-width { grid-column: 1 / -1; } .create-account-form textarea { width: 100%; padding: 10px; border: 2px solid var(--border-medium); border-radius: 6px; font-size: 14px; font-family: inherit; resize: vertical; transition: border-color 0.2s; } .create-account-form textarea:focus { outline: none; border-color: var(--success); } .create-account-btn { background: var(--success); color: white; padding: 12px 24px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background-color 0.2s; } .create-account-btn:hover { background: var(--success); } .accounts-list-section { background: var(--bg-secondary); padding: 25px; border-radius: 12px; box-shadow: var(--shadow-heavy); } .accounts-list { display: flex; flex-direction: column; gap: 15px; } .account-item { background: var(--bg-tertiary); padding: 20px; border-radius: 8px; border-left: 4px solid var(--success); display: flex; justify-content: space-between; align-items: flex-start; } .account-info { flex: 1; } .account-name { font-weight: 600; color: var(--text-primary); margin-bottom: 8px; font-size: 16px; } .account-type-badge { display: inline-block; background: var(--bg-tertiary); color: var(--text-secondary); padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; text-transform: capitalize; margin-bottom: 8px; } .account-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; font-size: 13px; color: var(--text-secondary); } .account-detail { display: flex; flex-direction: column; } .account-detail-label { font-weight: 500; color: var(--text-secondary); margin-bottom: 2px; } .account-balance { font-weight: 600; font-size: 18px; color: var(--success); } .account-actions-buttons { display: flex; gap: 8px; } .account-edit-btn, .account-delete-btn { padding: 6px 12px; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; transition: background-color 0.2s; } .account-edit-btn { background: var(--accent-purple); color: white; } .account-edit-btn:hover { background: var(--accent-purple-dark); } .account-delete-btn { background: var(--danger); color: white; } .account-delete-btn:hover { background: var(--danger); } /* Modal buttons */ .modal-buttons { display: flex; gap: 15px; margin-top: 20px; } .cancel-btn { background: var(--text-muted); color: white; padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; transition: background-color 0.2s; } .cancel-btn:hover { background: var(--text-muted-dark); } .save-btn { background: var(--success); color: white; padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background-color 0.2s; } .save-btn:hover { background: var(--success); } /* Transfers Section Styles */ .transfers-section { margin-top: 40px; background: var(--bg-secondary); padding: 25px; border-radius: 12px; box-shadow: var(--shadow-heavy); } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--border-light); } .section-header h3 { margin: 0; color: var(--text-primary); font-size: 1.2rem; } .transfers-list { max-height: 400px; overflow-y: auto; } .transfer-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; margin-bottom: 10px; background: var(--bg-tertiary); border: 1px solid var(--border-light); border-radius: 8px; transition: box-shadow 0.2s; } .transfer-item:hover { box-shadow: var(--shadow-medium); } .transfer-item:last-child { margin-bottom: 0; } .transfer-info { display: flex; flex-direction: column; flex: 1; } .transfer-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; } .transfer-account { font-weight: 500; color: var(--text-primary); font-size: 14px; } .transfer-type { padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 500; text-transform: uppercase; } .transfer-type.deposit { background: var(--success-bg); color: var(--success-text); } .transfer-type.withdrawal { background: var(--danger-bg); color: var(--danger-text); } .transfer-details { display: flex; align-items: center; gap: 15px; } .transfer-date { font-size: 12px; color: var(--text-secondary); } .transfer-description { font-size: 12px; color: var(--text-muted); font-style: italic; } .transfer-amount { font-weight: 600; font-size: 16px; min-width: 80px; text-align: right; } .transfer-amount.deposit { color: var(--success); } .transfer-amount.withdrawal { color: var(--danger); } .transfer-amount.deposit::before { content: '+'; } .transfer-amount.withdrawal::before { content: '-'; } /* Standalone Transfer Form Page Styles */ .transfer-form-container { max-width: 800px; margin: 0 auto; padding: 20px; } .transfer-intro { background: var(--bg-tertiary); padding: 20px; border-radius: 8px; margin-bottom: 30px; border-left: 4px solid var(--info); } .transfer-intro p { margin: 0; color: var(--text-secondary); font-size: 0.95em; line-height: 1.5; } .transfer-form { background: var(--bg-secondary); padding: 30px; border-radius: 12px; box-shadow: var(--shadow-heavy); margin-bottom: 30px; } .transfer-form h2 { margin: 0 0 20px 0; color: var(--text-primary); font-size: 1.5rem; border-bottom: 2px solid var(--border-light); padding-bottom: 15px; } .recent-transfers { background: var(--bg-secondary); padding: 25px; border-radius: 12px; box-shadow: var(--shadow-heavy); } .recent-transfers h3 { margin: 0 0 20px 0; color: var(--text-primary); font-size: 1.2rem; border-bottom: 2px solid var(--border-light); padding-bottom: 10px; } /* Responsive Design for Cash Accounts */ @media (max-width: 768px) { .cash-summary-cards { grid-template-columns: 1fr; } .account-item { flex-direction: column; gap: 15px; } .account-details { grid-template-columns: 1fr; gap: 8px; } .account-actions-buttons { align-self: stretch; } } /* =========================================== Dashboard Cash Cards Styles =========================================== */ .cash-breakdown { margin-top: 20px; } .cash-breakdown h3 { color: var(--text-primary); margin-bottom: 20px; font-size: 1.3rem; border-bottom: 2px solid var(--border-light); padding-bottom: 10px; } .cash-summary-overview { background: var(--bg-tertiary); border: 1px solid var(--border-light); border-radius: 8px; padding: 20px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; } .cash-total-card { display: flex; flex-direction: column; gap: 8px; } .cash-amount-line { display: flex; align-items: center; gap: 10px; } .currency-label { color: var(--text-secondary); font-weight: 500; font-size: 14px; min-width: 35px; } .cash-amount-line .amount { font-weight: 600; color: var(--success); font-size: 16px; } .cash-stats-card { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .stat-detail { color: var(--text-secondary); font-size: 13px; } .cash-account-breakdown-item { background: var(--bg-tertiary); border: 1px solid var(--border-light); border-radius: 8px; padding: 15px; display: flex; justify-content: space-between; align-items: center; transition: box-shadow 0.2s; } .cash-account-breakdown-item:hover { box-shadow: var(--shadow-medium); } .cash-account-info { display: flex; flex-direction: column; } .cash-account-name { font-weight: 500; color: var(--text-primary); font-size: 14px; margin-bottom: 2px; } .cash-account-type { font-size: 12px; color: var(--text-secondary); } .cash-account-balance { font-weight: 600; color: var(--success); font-size: 14px; } /* Responsive Design for Dashboard Cash */ @media (max-width: 768px) { .cash-summary-overview { flex-direction: column; align-items: flex-start; gap: 15px; } .cash-stats-card { align-items: flex-start; } .cash-account-breakdown-item { flex-direction: column; align-items: flex-start; gap: 8px; } } /* =========================================== SUBSCRIPTION STYLES =========================================== */ /* Subscription Page Layout */ .subscriptions-container { padding: 20px; max-width: 1200px; margin: 0 auto; } @media (max-width: 768px) { .subscriptions-container { padding: 15px; } } @media (max-width: 480px) { .subscriptions-container { padding: 10px; } } .subscription-intro { margin-bottom: 25px; color: var(--text-secondary); font-size: 15px; line-height: 1.5; } /* Subscription Summary Cards */ .subscription-summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; } .subscription-summary-card { background: var(--bg-secondary); padding: 15px; border-radius: 8px; box-shadow: var(--shadow-light); border-left: 3px solid var(--accent-purple); } .subscription-summary-card.total-monthly { border-left-color: var(--success); } .subscription-summary-card.total-annual { border-left-color: var(--info); } .subscription-summary-card.active-count { border-left-color: var(--accent-purple); } .subscription-summary-card h3 { margin: 0 0 15px 0; color: var(--text-primary); font-size: 16px; font-weight: 600; } .subscription-amounts { display: flex; flex-direction: column; gap: 8px; } .subscription-amounts .amount-line { display: flex; justify-content: space-between; align-items: center; } .subscription-amounts .amount { font-size: 20px; font-weight: 700; color: var(--text-primary); } /* Subscription Controls */ .subscriptions-controls { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; } .add-subscription-btn, .export-btn { padding: 12px 20px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-size: 14px; } .add-subscription-btn { background: var(--success); color: white; } .add-subscription-btn:hover { background: var(--success); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3); } .export-btn { background: var(--info); color: white; } .export-btn:hover { background: var(--info-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3); } /* Subscription List */ .subscriptions-list-section h3 { margin-bottom: 20px; color: var(--text-primary); font-size: 18px; font-weight: 600; } .subscriptions-list { display: flex; flex-direction: column; gap: 15px; } /* Subscription Items */ .subscription-item { background: var(--bg-tertiary); border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; transition: all 0.2s ease; } .subscription-item:hover { box-shadow: var(--shadow-medium); } .subscription-item.monthly { border-left: 4px solid var(--success); } .subscription-item.annual { border-left: 4px solid var(--info); } .subscription-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-light); } .subscription-header-right { display: flex; align-items: center; gap: 15px; } .subscription-header-right .price { font-weight: 600; font-size: 1rem; color: var(--accent-primary); } .service-name { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); } .website-link { margin-left: 8px; color: var(--accent-primary); text-decoration: none; font-size: 1rem; opacity: 0.7; transition: all 0.2s ease; } .website-link:hover { opacity: 1; color: var(--accent-secondary); transform: scale(1.1); } .billing-cycle-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .billing-cycle-badge.monthly { background: var(--success-bg); color: var(--success-text); } .billing-cycle-badge.annual { background: var(--info-bg); color: var(--info-text); } .subscription-actions { display: flex; gap: 8px; align-items: center; } .edit-btn { background: var(--accent-purple); color: white; border: none; padding: 6px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease; } .edit-btn:hover { background: var(--accent-purple-dark); } .subscription-details { padding: 15px 20px; } .subscription-info { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 10px; } .subscription-info span { font-size: 0.9rem; } .price { font-weight: 700; color: var(--success); font-size: 1rem; } .annual-price { color: var(--info); font-weight: 600; } .category { background: var(--bg-tertiary); padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; color: var(--text-secondary); text-transform: capitalize; } .free-trial { background: var(--warning-bg); color: var(--warning-text); padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; } .subscription-dates { display: flex; flex-wrap: wrap; gap: 15px; font-size: 0.85rem; color: var(--text-secondary); } .subscription-notes { margin-top: 10px; padding: 10px; background: var(--bg-tertiary); border-radius: 4px; font-size: 0.9rem; color: var(--text-secondary); font-style: italic; } /* Dashboard Subscription Section */ .subscription-breakdown { background: var(--bg-secondary); border-radius: 12px; padding: 25px; box-shadow: var(--shadow-heavy); margin-bottom: 25px; } .subscription-breakdown h3 { margin: 0 0 20px 0; color: var(--text-primary); font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; } .section-link { font-size: 14px; color: var(--accent-purple); cursor: pointer; font-weight: 500; transition: color 0.2s ease; } .section-link:hover { color: var(--accent-purple-dark); } .subscription-summary-overview { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px; } .subscription-total-card { display: flex; flex-direction: column; gap: 8px; } .subscription-amount-line { display: flex; align-items: center; gap: 10px; } .subscription-label { color: var(--text-secondary); font-weight: 500; font-size: 14px; min-width: 100px; } .subscription-stats-card { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .subscription-breakdown-item { background: var(--bg-tertiary); border: 1px solid var(--border-light); border-radius: 8px; padding: 15px; display: flex; justify-content: space-between; align-items: center; transition: box-shadow 0.2s; margin-bottom: 8px; } .subscription-breakdown-item:hover { box-shadow: var(--shadow-medium); } .subscription-breakdown-item:last-child { margin-bottom: 0; } .subscription-name { font-weight: 500; color: var(--text-primary); font-size: 14px; margin-bottom: 2px; } .subscription-details { display: flex; gap: 8px; font-size: 12px; color: var(--text-secondary); } /* Responsive Design */ @media (max-width: 768px) { .subscription-summary-cards { grid-template-columns: 1fr; } .subscription-summary-overview { grid-template-columns: 1fr; gap: 15px; } .subscription-stats-card { align-items: flex-start; } .subscription-breakdown-item { flex-direction: column; align-items: flex-start; gap: 8px; } .subscription-header { flex-direction: column; align-items: flex-start; gap: 10px; } .subscription-actions { align-self: stretch; justify-content: flex-end; } .subscription-info { flex-direction: column; gap: 8px; } .subscription-dates { flex-direction: column; gap: 4px; } } /* Price History Styles */ .view-history-btn { background: var(--info); color: white; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 0.85em; margin-left: 8px; transition: background-color 0.2s; } .view-history-btn:hover { background: var(--info-dark); } .price-history-list { max-height: 400px; overflow-y: auto; border: 1px solid var(--border-medium); border-radius: 8px; padding: 16px; } .price-history-entry { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid var(--border-light); transition: background-color 0.2s; } .price-history-entry:last-child { border-bottom: none; } .price-history-entry:hover { background-color: var(--bg-tertiary); } .history-price { font-weight: 600; font-size: 1.1em; color: var(--info); } .history-date { color: var(--text-secondary); font-size: 0.9em; } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border-light); padding-bottom: 16px; } .modal-header h3 { margin: 0; color: var(--text-primary); font-size: 1.4em; } .close-modal { font-size: 28px; font-weight: bold; color: var(--text-muted); cursor: pointer; line-height: 1; } .close-modal:hover { color: var(--text-primary); } @media (max-width: 768px) { .price-update-controls { flex-direction: column; gap: 8px; } .view-history-btn { margin-left: 0; width: 100%; } .modal-content { padding: 20px; width: 95%; } .price-history-entry { flex-direction: column; align-items: flex-start; gap: 4px; } }