/* TermResult Investment Tracker - Styles */
/* Brand Colors: Primary Blue #0077C8, Dark Navy #0D2137 */

:root {
    --primary: #0077C8;
    --primary-light: #3399D6;
    --primary-dark: #005A99;
    --navy: #0D2137;
    --navy-light: #1A3654;
    --success: #10B981;
    --success-light: #34D399;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;
    
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F5F9;
    
    --text-primary: #0D2137;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

/* ===== LOGIN PAGE ===== */
.login-page {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--primary-dark) 100%);
}

.login-container {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-brand {
    position: absolute;
    top: 40px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-icon {
    height: 50px;
    width: 50px;
    object-fit: contain;
}

.brand-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.login-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.login-content h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.login-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.feature-item i {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-light);
}

.login-decoration .circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0.1;
}

.circle-1 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 100px;
    right: -50px;
}

.circle-3 {
    width: 150px;
    height: 150px;
    bottom: 200px;
    right: 100px;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 40px 0 0 40px;
    padding: 60px;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

.login-form-logo {
    display: none;
    margin-bottom: 30px;
    text-align: center;
}

.login-form-logo img {
    height: 50px;
}

.login-header {
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-tertiary);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 119, 200, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.password-wrapper {
    margin-bottom: 0;
}

.toggle-password-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 0;
    margin-top: 8px;
    transition: var(--transition);
}

.toggle-password-btn:hover {
    color: var(--primary-dark);
}

.toggle-password-btn i {
    font-size: 0.9rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remember-me input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 16px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 119, 200, 0.3);
}

.btn-login i {
    transition: transform 0.3s;
}

.btn-login:hover i {
    transform: translateX(4px);
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ===== DASHBOARD ===== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-icon {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.mobile-brand span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #fff;
    cursor: pointer;
    padding: 8px;
}

.mobile-user .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 200;
    transition: var(--transition);
}

.sidebar-overlay {
    display: none;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-icon {
    height: 36px;
    width: 36px;
    object-fit: contain;
}

.sidebar-brand span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-item.active {
    background: var(--primary);
    color: #fff;
}

.nav-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.greeting h1 {
    font-size: 1.5rem;
    color: var(--navy);
}

.greeting h1 span {
    color: var(--primary);
}

.greeting p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.currency-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 4px;
}

.currency-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.currency-btn.active {
    background: var(--primary);
    color: #fff;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown span {
    font-weight: 600;
    color: var(--navy);
}

.user-dropdown i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Dashboard Sections */
.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

/* Dashboard Content */
.dashboard-content {
    padding: 32px 40px;
}

/* Section Header */
.section-header {
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.75rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-header h2 i {
    color: var(--primary);
}

.section-header p {
    color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card.primary .stat-icon {
    background: rgba(0, 119, 200, 0.1);
    color: var(--primary);
}

.stat-card.success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-card.info .stat-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.stat-card.warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin: 8px 0;
    word-break: break-all;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.stat-change.neutral {
    color: var(--text-muted);
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.chart-header h3 {
    font-size: 1.1rem;
    color: var(--navy);
}

.chart-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-item span {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-item.invested span {
    background: var(--primary);
}

.legend-item.valuation span {
    background: var(--success);
}

.chart-container {
    height: 300px;
    position: relative;
}

.chart-card.small .chart-container {
    height: 200px;
}

.currency-breakdown {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.breakdown-item .currency-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.breakdown-item .currency-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.breakdown-item .currency-icon.ngn {
    background: #E8F5E9;
    color: #2E7D32;
}

.breakdown-item .currency-icon.usd {
    background: #E3F2FD;
    color: #1565C0;
}

.breakdown-item .currency-value {
    font-weight: 700;
    color: var(--navy);
}

/* Table Section */
.table-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.table-header h3 {
    font-size: 1.1rem;
    color: var(--navy);
}

.table-actions {
    display: flex;
    gap: 12px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
}

.search-box input {
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    width: 250px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.1);
}

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

.investment-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.investment-table th,
.investment-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.investment-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-tertiary);
    white-space: nowrap;
}

.investment-table th:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.investment-table th:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.investment-table td {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.investment-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.currency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.currency-badge.ngn {
    background: #E8F5E9;
    color: #2E7D32;
}

.currency-badge.usd {
    background: #E3F2FD;
    color: #1565C0;
}

.growth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.growth-badge.positive {
    color: var(--success);
}

.growth-badge.negative {
    color: var(--danger);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.completed {
    background: rgba(0, 119, 200, 0.1);
    color: var(--primary);
}

/* Share Badge */
.share-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Receipt Button */
.receipt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.receipt-btn:hover {
    background: var(--primary);
    color: #fff;
}

.receipt-btn i {
    font-size: 0.9rem;
}

/* Mini Receipt Button */
.mini-receipt-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mini-receipt-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Investment Description */
.investment-desc {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.investment-desc strong {
    color: var(--navy);
}

.schools-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Amount Info */
.amount-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amount-info strong {
    color: var(--navy);
}

.amount-secondary {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Activity Section */
.activity-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.activity-card,
.summary-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.activity-header,
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.activity-header h3,
.summary-header h3 {
    font-size: 1.1rem;
    color: var(--navy);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.activity-item:hover {
    transform: translateX(4px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-icon.investment {
    background: rgba(0, 119, 200, 0.1);
    color: var(--primary);
}

.activity-icon.return {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-details h4 {
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.activity-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.activity-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.activity-amount {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
    white-space: nowrap;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.summary-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-item .value {
    font-weight: 700;
    color: var(--navy);
}

.summary-item .value.positive {
    color: var(--success);
}

.summary-item.highlight {
    background: linear-gradient(135deg, rgba(0, 119, 200, 0.1) 0%, rgba(0, 119, 200, 0.05) 100%);
    border: 1px solid rgba(0, 119, 200, 0.2);
}

.summary-item .value.ownership {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Currency breakdown highlight */
.breakdown-item.highlight {
    background: linear-gradient(135deg, rgba(0, 119, 200, 0.1) 0%, rgba(0, 119, 200, 0.05) 100%);
    border: 1px solid rgba(0, 119, 200, 0.2);
}

.breakdown-item .currency-value.highlight {
    color: var(--primary);
    font-size: 1.1rem;
}

.currency-icon.share {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

/* ===== INVESTMENT CARDS ===== */
.investment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.investment-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.investment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.investment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.investment-card-title h4 {
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 4px;
}

.investment-card-title span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.investment-card-badge {
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.investment-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.investment-card-stat {
    text-align: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.investment-card-stat label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.investment-card-stat strong {
    font-size: 1.1rem;
    color: var(--navy);
}

.investment-card-footer {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.investment-card-footer button {
    flex: 1;
}

/* ===== TIMELINE ===== */
.timeline-container {
    max-width: 800px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    border: 4px solid var(--bg-primary);
}

.timeline-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-title h4 {
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.timeline-title span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.timeline-amount {
    text-align: right;
}

.timeline-amount strong {
    display: block;
    color: var(--navy);
    font-size: 1.25rem;
}

.timeline-amount span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.timeline-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.timeline-detail {
    text-align: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.timeline-detail label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.timeline-detail strong {
    color: var(--navy);
    font-size: 0.95rem;
}

.timeline-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

/* ===== ANALYTICS ===== */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.analytics-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.analytics-header h3 {
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.analytics-body {
    height: 250px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.metric-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.metric-icon.blue {
    background: rgba(0, 119, 200, 0.1);
    color: var(--primary);
}

.metric-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.metric-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.metric-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.metric-card h4 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.metric-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breakdown-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.breakdown-section h3 {
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.breakdown-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.breakdown-card {
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.breakdown-card h5 {
    color: var(--navy);
    margin-bottom: 12px;
}

.breakdown-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.breakdown-stat label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.breakdown-stat strong {
    color: var(--navy);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 33, 55, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--navy);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger);
    color: #fff;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.modal-body img {
    max-width: 100%;
    max-height: 55vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 200, 0.4);
}

.btn-close {
    padding: 12px 24px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .activity-section {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .mobile-header {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 300;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar.active .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    
    .dashboard-header {
        padding: 16px 20px;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .user-dropdown span {
        display: none;
    }
    
    .user-dropdown i {
        display: none;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        border-radius: 0;
        padding: 40px 24px;
        min-height: 100vh;
    }
    
    .login-form-logo {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .table-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .greeting h1 {
        font-size: 1.1rem;
    }
    
    .greeting p {
        font-size: 0.8rem;
    }
    
    .header-right {
        gap: 12px;
    }
    
    .currency-toggle {
        padding: 2px;
    }
    
    .currency-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .user-menu .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }
    
    .section-header h2 i {
        font-size: 1rem;
    }
    
    .section-header p {
        font-size: 0.85rem;
    }
    
    .investment-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .investment-card {
        padding: 16px;
    }
    
    .investment-card-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .investment-card-badge {
        align-self: flex-start;
    }
    
    .investment-card-body {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .investment-card-stat {
        padding: 10px;
    }
    
    .investment-card-stat label {
        font-size: 0.7rem;
    }
    
    .investment-card-stat strong {
        font-size: 0.95rem;
    }
    
    .investment-card-footer {
        margin-top: 16px;
    }
    
    .investment-card-footer button {
        width: 100%;
        justify-content: center;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-dot {
        left: -30px;
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .timeline-details {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-height: 85vh;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .activity-item {
        flex-wrap: wrap;
    }
    
    .activity-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    .dashboard-content {
        padding: 16px;
    }
    
    .dashboard-header {
        padding: 12px 16px;
    }
    
    .chart-card {
        padding: 16px;
    }
    
    .table-section {
        padding: 16px;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-header h3 {
        font-size: 1rem;
    }
    
    .activity-card,
    .summary-card {
        padding: 16px;
    }
    
    .investment-table th,
    .investment-table td {
        padding: 12px 8px;
        font-size: 0.75rem;
    }
    
    .investment-table {
        min-width: 700px;
    }
    
    .share-badge {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .receipt-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .receipt-btn i {
        font-size: 0.8rem;
    }
    
    .amount-info strong {
        font-size: 0.85rem;
    }
    
    .amount-secondary {
        font-size: 0.65rem;
    }
    
    .breakdown-cards {
        grid-template-columns: 1fr;
    }
    
    .breakdown-card {
        padding: 16px;
    }
}

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

.stat-card,
.chart-card,
.table-section,
.activity-card,
.summary-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
