@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #0b0b1e;
    color: #e0e0e0;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #141032;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    border-right: 1px solid #2a2a4a;
}

.sidebar-header h2 {
    background: linear-gradient(135deg, #ff2d78, #ff6bb5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Bar switcher */
.bar-switcher-current {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem;
    background: rgba(255, 45, 120, 0.08);
    border: 1px solid rgba(255, 45, 120, 0.25);
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}
.bar-switcher-current:hover { border-color: #ff2d78; }
.bar-switcher-current .bar-icon {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
}
.bar-switcher-current .bar-details { flex: 1; min-width: 0; }
.bar-switcher-current .bar-details .bar-name-text {
    font-size: 0.85rem; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-switcher-current .bar-details .bar-balance-text {
    font-size: 0.7rem; color: #ffd700; font-weight: 600;
}
.bar-switcher-current .chevron {
    font-size: 0.6rem; color: #8888a0; transition: transform 0.2s;
}
.bar-switcher-current.open .chevron { transform: rotate(180deg); }

.bar-switcher-list {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}
.bar-switcher-list.open { display: flex; }

.bar-switcher-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.bar-switcher-item:hover { background: rgba(255, 45, 120, 0.06); border-color: #2a2a4a; }
.bar-switcher-item.active { background: rgba(255, 45, 120, 0.1); border-color: rgba(255, 45, 120, 0.3); }
.bar-switcher-item .item-icon {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; flex-shrink: 0;
}
.bar-switcher-item .item-details { flex: 1; min-width: 0; }
.bar-switcher-item .item-name {
    font-size: 0.78rem; font-weight: 600; color: #e0e0e0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-switcher-item .item-bal {
    font-size: 0.65rem; color: #ffd700;
}

.bar-switcher-divider {
    border: none; border-top: 1px solid #2a2a4a; margin: 0.25rem 0;
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-links a {
    color: #8888a0;
    text-decoration: none;
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 45, 120, 0.1);
    color: #fff;
}

.sidebar-footer {
    border-top: 1px solid #2a2a4a;
    padding-top: 1rem;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8888a0;
}

.sidebar-footer a {
    color: #ff2d78;
    text-decoration: none;
}

/* Content */
.content {
    margin-left: 220px;
    padding: 2rem;
    flex: 1;
}

.content.no-sidebar {
    margin-left: 0;
}
