- Create price_history table for storing ETF price updates over time - Add API endpoints for saving/retrieving price history per user - Auto-load latest prices on app initialization for continuity - Add "History" button to view price update timeline in modal - Enhance price update notifications to confirm database saves - Implement responsive modal design for price history viewing - Maintain user data isolation for all price history features 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2883 lines
49 KiB
CSS
2883 lines
49 KiB
CSS
* {
|
|
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: all 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: block;
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
border-radius: 6px;
|
|
transition: all 0.2s ease;
|
|
color: #666;
|
|
}
|
|
|
|
.sidebar-toggle:hover {
|
|
background: #f1f3f4;
|
|
color: #333;
|
|
}
|
|
|
|
|
|
#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;
|
|
}
|
|
|
|
/* Total Holdings Card Styles */
|
|
.total-holdings-section {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.total-holdings-card {
|
|
background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
|
|
padding: 25px;
|
|
border-radius: 15px;
|
|
border-left: 4px solid #f39c12;
|
|
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: #e67e22;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
border-bottom: 2px solid #f39c12;
|
|
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: #6c757d;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.holdings-value {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #e67e22;
|
|
}
|
|
|
|
.holdings-divider {
|
|
height: 2px;
|
|
background: linear-gradient(90deg, #f39c12 0%, #e67e22 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: #d35400;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.holdings-total .holdings-value.total {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: #d35400;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* Long-Term CGT Section (8+ Years) */
|
|
.long-term-cgt-section {
|
|
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 #17a2b8;
|
|
}
|
|
|
|
.long-term-cgt-section h3 {
|
|
margin-bottom: 20px;
|
|
color: #333;
|
|
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: #f8f9fa;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
border-left: 4px solid #17a2b8;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.long-term-cgt-card.total-eligible {
|
|
border-left-color: #6c757d;
|
|
}
|
|
|
|
.long-term-cgt-card.total-gains-8yr {
|
|
border-left-color: #28a745;
|
|
background: #f8fff9;
|
|
}
|
|
|
|
.long-term-cgt-card.cgt-liability-8yr {
|
|
border-left-color: #dc3545;
|
|
background: #fffafa;
|
|
}
|
|
|
|
.long-term-cgt-card.after-tax-8yr {
|
|
border-left-color: #007bff;
|
|
background: #f8f9ff;
|
|
}
|
|
|
|
.long-term-cgt-card h4 {
|
|
margin-bottom: 12px;
|
|
color: #666;
|
|
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: #28a745;
|
|
}
|
|
|
|
.long-term-value.negative {
|
|
color: #dc3545;
|
|
}
|
|
|
|
.long-term-detail {
|
|
font-size: 12px;
|
|
color: #666;
|
|
}
|
|
|
|
.long-term-breakdown {
|
|
border-top: 1px solid #e9ecef;
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.long-term-breakdown h4 {
|
|
margin-bottom: 15px;
|
|
color: #333;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.long-term-breakdown-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.long-term-breakdown-item {
|
|
background: #f8f9fa;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
border-left: 4px solid #17a2b8;
|
|
}
|
|
|
|
.long-term-breakdown-item.positive {
|
|
border-left-color: #28a745;
|
|
background: #f8fff9;
|
|
}
|
|
|
|
.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: #333;
|
|
}
|
|
|
|
.long-term-performance {
|
|
font-weight: bold;
|
|
color: #28a745;
|
|
}
|
|
|
|
.long-term-performance.negative {
|
|
color: #dc3545;
|
|
}
|
|
|
|
.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: #666;
|
|
}
|
|
|
|
.long-term-stat span:last-child {
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
/* ===========================================
|
|
API Tokens Styles
|
|
=========================================== */
|
|
.tokens-container {
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.tokens-intro {
|
|
background: #f8f9fa;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
margin-bottom: 30px;
|
|
border-left: 4px solid #007bff;
|
|
}
|
|
|
|
.tokens-intro p {
|
|
margin: 0;
|
|
color: #555;
|
|
font-size: 0.95em;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.token-actions {
|
|
background: white;
|
|
padding: 25px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
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: #333;
|
|
}
|
|
|
|
.create-token-form input,
|
|
.create-token-form select {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 2px solid #e1e5e9;
|
|
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: #007bff;
|
|
}
|
|
|
|
.create-token-btn {
|
|
background: #007bff;
|
|
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: #0056b3;
|
|
}
|
|
|
|
.tokens-list-section {
|
|
background: white;
|
|
padding: 25px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.tokens-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.token-item {
|
|
background: #f8f9fa;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
border-left: 4px solid #28a745;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.token-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.token-name {
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 8px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.token-details {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
font-size: 13px;
|
|
color: #666;
|
|
}
|
|
|
|
.token-detail {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.token-prefix {
|
|
font-family: 'Courier New', monospace;
|
|
background: #e9ecef;
|
|
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: #d4edda;
|
|
color: #155724;
|
|
}
|
|
|
|
.token-status.expired {
|
|
background: #f8d7da;
|
|
color: #721c24;
|
|
}
|
|
|
|
.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: #ffc107;
|
|
color: #212529;
|
|
}
|
|
|
|
.token-edit-btn:hover {
|
|
background: #e0a800;
|
|
}
|
|
|
|
.token-delete-btn {
|
|
background: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
.token-delete-btn:hover {
|
|
background: #c82333;
|
|
}
|
|
|
|
/* 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: white;
|
|
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 #28a745;
|
|
border-radius: 6px;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 14px;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.copy-btn {
|
|
background: #28a745;
|
|
color: white;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.copy-btn:hover {
|
|
background: #218838;
|
|
}
|
|
|
|
.copy-btn.copied {
|
|
background: #17a2b8;
|
|
}
|
|
|
|
.token-usage {
|
|
background: #f8f9fa;
|
|
padding: 15px;
|
|
border-radius: 6px;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.usage-example {
|
|
display: block;
|
|
background: #2d3748;
|
|
color: #e2e8f0;
|
|
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: #6c757d;
|
|
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: #5a6268;
|
|
}
|
|
|
|
/* 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: #f8f9fa;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
margin-bottom: 30px;
|
|
border-left: 4px solid #28a745;
|
|
}
|
|
|
|
.cash-intro p {
|
|
margin: 0;
|
|
color: #555;
|
|
font-size: 0.95em;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.cash-summary-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.cash-summary-card {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
border-left: 4px solid #28a745;
|
|
}
|
|
|
|
.cash-summary-card h3 {
|
|
margin: 0 0 15px 0;
|
|
color: #333;
|
|
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: #666;
|
|
}
|
|
|
|
.amount-line .amount {
|
|
font-weight: 600;
|
|
font-size: 18px;
|
|
color: #28a745;
|
|
}
|
|
|
|
.stat-line span:first-child {
|
|
color: #666;
|
|
}
|
|
|
|
.stat-line span:last-child {
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
.cash-actions {
|
|
background: white;
|
|
padding: 25px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
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 #e1e5e9;
|
|
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: #28a745;
|
|
}
|
|
|
|
.create-account-btn {
|
|
background: #28a745;
|
|
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: #218838;
|
|
}
|
|
|
|
.accounts-list-section {
|
|
background: white;
|
|
padding: 25px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.accounts-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.account-item {
|
|
background: #f8f9fa;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
border-left: 4px solid #28a745;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.account-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.account-name {
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 8px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.account-type-badge {
|
|
display: inline-block;
|
|
background: #e9ecef;
|
|
color: #495057;
|
|
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: #666;
|
|
}
|
|
|
|
.account-detail {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.account-detail-label {
|
|
font-weight: 500;
|
|
color: #495057;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.account-balance {
|
|
font-weight: 600;
|
|
font-size: 18px;
|
|
color: #28a745;
|
|
}
|
|
|
|
.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: #ffc107;
|
|
color: #212529;
|
|
}
|
|
|
|
.account-edit-btn:hover {
|
|
background: #e0a800;
|
|
}
|
|
|
|
.account-delete-btn {
|
|
background: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
.account-delete-btn:hover {
|
|
background: #c82333;
|
|
}
|
|
|
|
/* Modal buttons */
|
|
.modal-buttons {
|
|
display: flex;
|
|
gap: 15px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.cancel-btn {
|
|
background: #6c757d;
|
|
color: white;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.cancel-btn:hover {
|
|
background: #5a6268;
|
|
}
|
|
|
|
.save-btn {
|
|
background: #28a745;
|
|
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: #218838;
|
|
}
|
|
|
|
/* Transfers Section Styles */
|
|
.transfers-section {
|
|
margin-top: 40px;
|
|
background: white;
|
|
padding: 25px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 2px solid #eee;
|
|
}
|
|
|
|
.section-header h3 {
|
|
margin: 0;
|
|
color: #333;
|
|
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: #f8f9fa;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 8px;
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
|
|
.transfer-item:hover {
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.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: #333;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.transfer-type {
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.transfer-type.deposit {
|
|
background: #d4edda;
|
|
color: #155724;
|
|
}
|
|
|
|
.transfer-type.withdrawal {
|
|
background: #f8d7da;
|
|
color: #721c24;
|
|
}
|
|
|
|
.transfer-details {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.transfer-date {
|
|
font-size: 12px;
|
|
color: #666;
|
|
}
|
|
|
|
.transfer-description {
|
|
font-size: 12px;
|
|
color: #888;
|
|
font-style: italic;
|
|
}
|
|
|
|
.transfer-amount {
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
min-width: 80px;
|
|
text-align: right;
|
|
}
|
|
|
|
.transfer-amount.deposit {
|
|
color: #28a745;
|
|
}
|
|
|
|
.transfer-amount.withdrawal {
|
|
color: #dc3545;
|
|
}
|
|
|
|
.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: #e8f4fd;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
margin-bottom: 30px;
|
|
border-left: 4px solid #007bff;
|
|
}
|
|
|
|
.transfer-intro p {
|
|
margin: 0;
|
|
color: #555;
|
|
font-size: 0.95em;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.transfer-form {
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.transfer-form h2 {
|
|
margin: 0 0 20px 0;
|
|
color: #333;
|
|
font-size: 1.5rem;
|
|
border-bottom: 2px solid #eee;
|
|
padding-bottom: 15px;
|
|
}
|
|
|
|
.recent-transfers {
|
|
background: white;
|
|
padding: 25px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.recent-transfers h3 {
|
|
margin: 0 0 20px 0;
|
|
color: #333;
|
|
font-size: 1.2rem;
|
|
border-bottom: 2px solid #eee;
|
|
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: #333;
|
|
margin-bottom: 20px;
|
|
font-size: 1.3rem;
|
|
border-bottom: 2px solid #eee;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.cash-summary-overview {
|
|
background: #f8f9fa;
|
|
border: 1px solid #dee2e6;
|
|
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: #666;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
min-width: 35px;
|
|
}
|
|
|
|
.cash-amount-line .amount {
|
|
font-weight: 600;
|
|
color: #28a745;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.cash-stats-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 4px;
|
|
}
|
|
|
|
.stat-detail {
|
|
color: #666;
|
|
font-size: 13px;
|
|
}
|
|
|
|
|
|
.cash-account-breakdown-item {
|
|
background: #f8f9fa;
|
|
border: 1px solid #dee2e6;
|
|
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: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.cash-account-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.cash-account-name {
|
|
font-weight: 500;
|
|
color: #333;
|
|
font-size: 14px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.cash-account-type {
|
|
font-size: 12px;
|
|
color: #666;
|
|
}
|
|
|
|
.cash-account-balance {
|
|
font-weight: 600;
|
|
color: #28a745;
|
|
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;
|
|
}
|
|
}
|
|
|
|
/* Price History Styles */
|
|
.view-history-btn {
|
|
background: #007bff;
|
|
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: #0056b3;
|
|
}
|
|
|
|
.price-history-list {
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.price-history-entry {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px;
|
|
border-bottom: 1px solid #eee;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.price-history-entry:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.price-history-entry:hover {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.history-price {
|
|
font-weight: 600;
|
|
font-size: 1.1em;
|
|
color: #007bff;
|
|
}
|
|
|
|
.history-date {
|
|
color: #666;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
border-bottom: 1px solid #eee;
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
color: #333;
|
|
font-size: 1.4em;
|
|
}
|
|
|
|
.close-modal {
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
color: #aaa;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
}
|
|
|
|
.close-modal:hover {
|
|
color: #333;
|
|
}
|
|
|
|
@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;
|
|
}
|
|
} |