/* RESET */
* {
  box-sizing: border-box;
}

/* BASE */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f5f6f8;
}

/* HEADER */
.app-header {
  height: 56px;
  background: #F9F9F9;
  color: #292929;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.menu-btn {
  font-size: 22px;
  background: none;
  border: none;
  color: rgb(48, 48, 48);
  cursor: pointer;
  margin-right: 12px;
}

/* LAYOUT */
.app-layout {
  display: grid;
  grid-template-columns: 1fr;
  height: calc(100vh - 112px);
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 56px;
  left: -240px;
  width: 240px;
  height: calc(100vh - 56px);
  background:#F9F9F9;
  color: #2b2b2b;
  transition: left 0.3s ease;
  z-index: 1000;
  padding: 12px;
}

.sidebar.open {
  left: 0;
}

/* CONTENT */
.content {
  padding: 16px;
  background: #fff;
  min-height: 100%;
}

/* FOOTER */
.app-footer {
  height: 56px;
  background: #F9F9F9;
  color: #3b3b3b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  background: #eee;
}

.role-admin { background: #ffd966; }
.role-manager { background: #cfe2ff; }
.role-user { background: #e2e3e5; }

.status.active { color: green; font-weight: bold; }
.status.inactive { color: red; font-weight: bold; }

.icon-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
}

.icon-btn:hover {
  transform: scale(1.1);
}


/* DESKTOP */
@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }

  .app-layout {
    grid-template-columns: 240px 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    left: 0;
  }
}

.role-select {
  padding: 4px;
  border-radius: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.dot.online {
  background: #2ecc71;
}

.dot.offline {
  background: #aaa;
}
