/* GLOBAL */
body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: #050712;
    color: #f5f7fb;
}

/* FLAG FIX FOR EDGE */
.flag {
    font-family: "Twemoji Mozilla", "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    font-size: 20px;
    line-height: 1;
}

/* SIDEBAR */
.sidebar {
    width: 230px;
    background: radial-gradient(circle at top, #1b2b4f 0, #050712 60%);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 20px 14px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0; /* ✔ EDGE FIX */
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 40px;
    z-index: 100;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 24px;
}

.sidebar-logo-img {
    height: 42px;
}

.sidebar-logo-text {
    font-size: 12px;
    color: #9cc4ff;
    margin-top: 6px;
}

.sidebar-section {
    font-size: 11px;
    color: #7f8bb0;
    margin-bottom: 8px;
}

.sidebar-link {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #d5ddff;
    text-decoration: none;
    margin-bottom: 4px;
    transition: 0.2s;
}

.sidebar-link:hover {
    background: #1f2937;
    color: #fff;
}

.sidebar-link.active {
    background: linear-gradient(135deg, #4f8dff, #7b5cff);
    color: #fff;
    box-shadow: 0 10px 24px rgba(79,141,255,0.5);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 11px;
    color: #7f8bb0;
}

/* TOPBAR */
.topbar {
    height: 54px;
    background: #0d1220;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    position: fixed;
    top: 0;
    left: 230px;
    right: 0;
    z-index: 90;
}

.topbar-logo {
    height: 22px;
    margin-right: 8px;
}

.topbar-left {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-role {
    background: #1b2b4f;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #9cc4ff;
}

.topbar-logout {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 13px;
}

/* PAGE CONTENT */
.page-content {
    margin-left: 230px;
    padding: 80px 32px 32px;
    transition: 0.3s;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .sidebar {
        left: -230px;
    }
    .topbar {
        left: 0;
    }
    .page-content {
        margin-left: 0;
        padding: 80px 20px 20px;
    }
}
