* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  background-color: #f8f8fb;
}

.sidebar {
  width: 225px;
  height: 100vh;
  /* background-color: #f5f5fa; */
  background-color: #f4eeff;
  padding: 20px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  transition: transform 0.3s ease-in-out;
  z-index: 2;
}

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

.sidebar-header h2 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.add-button {
  background-color: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 5px;
  border-radius: 8px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
}

.nav-item.active {
  background-color: #e8e4ff;
  color: #6c5ce7;
}

.nav-item i {
  margin-right: 10px;
  font-size: 18px;
}

.main-content {
  flex: 1;
  margin-left: 225px;
  padding: 30px;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 25px;
  margin-left: 30px;
  color: #333;
}

.search-section {
  margin-bottom: 30px;
}

.search-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.search-container {
  position: relative;
}

.search-input {
  width: 90%;
  padding: 12px 20px;
  border: none;
  background-color: #f0f0f5;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.user-list-header {
  border-left: 4px solid #ffd700;
  padding-left: 15px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.user-table th {
  text-align: left;
  padding: 15px 10px;
  border-bottom: 1px solid #eee;
  color: #666;
  font-weight: 500;
  font-size: 14px;
}

.user-table td {
  padding: 25px 10px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 14px;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.edit-btn,
.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 16px;
}

.add-user-btn {
  padding: 10px 20px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  position: absolute;
  right: 30px;
  top: 30px;
}

.admin-profile {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  padding: 10px;
}

.admin-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
}

.admin-info {
  display: flex;
  flex-direction: column;
}

.admin-name {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.admin-email {
  font-size: 12px;
  color: #999;
}

/* Sidebar toggler (☰) */
.sidebar-toggler {
  display: none;
  position: absolute;
  top: 30px;
  left: 20px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
  color: #333;
}

/* Close button (X) */
.close-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  color: black;
  cursor: pointer;
}

i {
  color: black;
}

.fa-trash {
  margin-left: 20px;
}

/* Responsive styles */
@media (max-width: 1029px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .sidebar-toggler {
    display: block;
    margin-bottom: 25px;
  }

  .main-content {
    margin-left: 0;
  }

  .close-btn {
    display: block;
  }
}

@media (max-width: 530px) {
  .page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .add-user-btn {
    position: static;
    margin-bottom: 30px;
    margin-top: 10px;
    align-self: center;
  }

  .add-user-btn {
    position: static;
    margin: 10px auto 30px auto;
    display: block;
    align-self: center;
  }

  .page-title {
    text-align: center;
  }
}

@media (max-width: 363px) {
  .page-title {
    font-size: 18px;
    position: relative;
    top: 3px;
  }
  .main-content {
    padding: 15px;
  }

  .user-table tr {
    padding: 10px;
  }

  .user-id {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .user-table thead {
    display: none;
  }

  .user-table,
  .user-table tbody,
  .user-table tr,
  .user-table td {
    display: block;
    width: 100%;
  }

  .user-table tr {
    background-color: #fff;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .user-table td {
    text-align: left;
    padding: 8px 10px;
    border: none;
    position: relative;
  }

  .user-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    color: #666;
    margin-bottom: 5px;
    font-size: 13px;
  }

  .user-id {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .user-id img {
    position: relative;
    top: 10px;
  }

  .user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
  }

  .action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
  }

  .edit-btn,
  .delete-btn {
    font-size: 16px;
  }
}
