:root {
    --bg-main: #0b0e14;
    --bg-sidebar: #11161d;
    --bg-card: #1a202c;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --glass: rgba(26, 32, 44, 0.6);
    --border: 1px solid rgba(255, 255, 255, 0.05);
    --radius: 16px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
}

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

.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: var(--border);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    margin-bottom: 50px;
}

.logo i {
    color: var(--accent);
    font-size: 28px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.menu a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    font-weight: 500;
}

.menu a:hover, .menu a.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

.menu a i {
    font-size: 20px;
}

.logout a {
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: 0.3s;
}

.logout a:hover { color: var(--text-main); }

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-box {
    background-color: var(--bg-card);
    border: var(--border);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    width: 100%;
    font-family: inherit;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.notif-badge {
    position: relative;
    font-size: 22px;
    cursor: pointer;
}

.notif-badge .dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    cursor: pointer;
}

.stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    border: var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.balance-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
}

.card-head {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.amount.small { font-size: 24px; }

.trend {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trend.positive { color: var(--success); }
.trend span { color: var(--text-muted); margin-left: 5px; }

.card-desc { color: var(--text-muted); font-size: 14px; }

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: calc(100% - 240px);
}

.glass-panel {
    background-color: var(--glass);
    backdrop-filter: blur(10px);
    border: var(--border);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

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

.time-filters button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 8px;
    font-family: inherit;
    transition: 0.3s;
}

.time-filters button.active, .time-filters button:hover {
    background-color: var(--bg-main);
    color: var(--text-main);
}

.chart-container {
    flex: 1;
    width: 100%;
    position: relative;
}

.asset-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    transition: 0.2s;
}

.asset-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.asset-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.asset-icon.btc { background: rgba(247, 147, 26, 0.2); color: #f7931a; }
.asset-icon.eth { background: rgba(98, 126, 234, 0.2); color: #627eea; }
.asset-icon.sol { background: rgba(20, 241, 149, 0.2); color: #14f195; }
.asset-icon.usdt { background: rgba(38, 161, 123, 0.2); color: #26a17b; }

.asset-info h4 { font-size: 16px; font-weight: 600; }
.asset-info span { font-size: 12px; color: var(--text-muted); }

.asset-price {
    margin-left: auto;
    text-align: right;
}

.asset-price .price { font-weight: 600; }
.change { font-size: 12px; }
.change.positive { color: var(--success); }
.change.negative { color: var(--danger); }
.change.neutral { color: var(--text-muted); }

.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 0;
    width: 280px;
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.2s ease;
    z-index: 1000;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-dropdown {
    right: 50px;
    width: 320px;
}

.dropdown-header {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: 0.2s;
    cursor: pointer;
}

.notif-item:hover {
    background: rgba(255,255,255,0.05);
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.green { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.notif-icon.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }

.notif-content p {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    line-height: 1.4;
}

.notif-content span {
    font-size: 11px;
    color: var(--text-muted);
}

.profile-dropdown {
    right: 0;
    width: 200px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.menu-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--accent);
}

.menu-item i {
    font-size: 18px;
    color: var(--text-muted);
}

.menu-item:hover i {
    color: var(--accent);
}

.divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 5px 0;
}

.menu-item.logout {
    color: var(--danger);
}

.menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.menu-item.logout i {
    color: var(--danger);
}

@media (max-width: 1000px) {
    .stats-grid { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { width: 80px; padding: 30px 10px; align-items: center; }
    .sidebar .logo span, .menu a span, .logout a span { display: none; }
    .menu a { justify-content: center; }
    .notif-dropdown { right: -100px; }
}
