﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f0f4f8;
}

.fin-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.fin-sidebar {
    width: 260px;
    background: #1a2b3c;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
}

.fin-logo {
    padding: 0 25px 30px;
    color: white;
}

    .fin-logo h2 {
        font-weight: 600;
    }

    .fin-logo span {
        color: #00d4aa;
    }

.fin-nav {
    padding: 15px;
}

.fin-nav-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 12px;
    color: #8ba3b8;
    text-decoration: none;
    margin: 4px 0;
}

    .fin-nav-item i {
        width: 24px;
        margin-right: 12px;
    }

    .fin-nav-item:hover {
        background: #243b4e;
        color: white;
    }

    .fin-nav-item.active {
        background: #00d4aa;
        color: #1a2b3c;
    }

/* Main Content */
.fin-main {
    flex: 1;
    margin-left: 260px;
    padding: 30px 35px;
}

.fin-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

    .fin-header h1 {
        color: #1a2b3c;
    }

.fin-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-icon {
    position: relative;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 16px;
    border-radius: 40px;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, #1a2b3c 0%, #243b4e 100%);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
}

.balance-change {
    color: #00d4aa;
}

/* Stats Grid */
.fin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.fin-stat-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
}

.fin-stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.fin-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b3c;
}

/* Charts Row */
.fin-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.fin-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
}

.fin-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Portfolio Items */
.portfolio-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
}

.portfolio-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.portfolio-info {
    flex: 1;
}

.portfolio-name {
    font-weight: 600;
}

.portfolio-symbol {
    font-size: 0.8rem;
    color: #718096;
}

.portfolio-value {
    font-weight: 600;
}

.portfolio-change.positive {
    color: #00d4aa;
}

/* Transactions Table */
.fin-table {
    width: 100%;
    border-collapse: collapse;
}

    .fin-table th {
        text-align: left;
        padding: 12px 0;
        color: #718096;
        font-weight: 500;
        font-size: 0.8rem;
        border-bottom: 1px solid #edf2f7;
    }

    .fin-table td {
        padding: 14px 0;
        border-bottom: 1px solid #f7fafc;
    }

.transaction-amount.credit {
    color: #00d4aa;
}

/* Footer */
.fin-footer {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 1100px) {
    .fin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .fin-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fin-sidebar {
        width: 80px;
    }

        .fin-sidebar .fin-logo span, .fin-sidebar .fin-nav-item span {
            display: none;
        }

    .fin-main {
        margin-left: 80px;
    }

    .fin-stats {
        grid-template-columns: 1fr;
    }
}
