* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
  font-family: "Zain", sans-serif;
  font-weight: 400;

  border: none;
  outline: none;
  /* IBM Plex Sans Arabic, IBM Plex Sans, sans-serif */
}

:root {
  --sidebar-width: 340px;
  --sllebar-bg: #0f172a;


  --textLogo-white-color: #f6f4fb;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  min-height: 100%;
}

body {
  display: block;
  height: 100vh;
  background-color: rgb(247 249 251);
  justify-content: right;
}

.header {
  position: fixed;
  display: none;
  top: 0;
  flex-direction: row;
  width: 100%;
  height: 10%;
  margin-bottom: 10%;
  background-color: #ffffff;
  justify-content: center;

  border-radius: 0px 0px 10px 10px;
  box-shadow: 0px 20px 30px 5px #00000036;
}

.container-sidebar-right {
  display: contents;
}

.sidebar {
  /* flex: 1; */
  position: fixed;
  width: var(--sidebar-width);
  right: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  margin-left: 10px;
  /* border-radius: 10px;  */
  background-color: var(--sllebar-bg);
  border-left: solid 1px rgb(197 198 205);
  z-index: 10001;
  transition: transform 0.3s ease;
}

/* للجوال */
.sidebar.hide {
  transform: translateX(100%);
}

.toggle-sidebar {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 8px;
  background-color: black;
  color: white;
  cursor: pointer;
  transition: right 0.3s ease;
}

.toggle-sidebar.hidden {
  display: none;
}

.toggle-sidebar.move {
  right: 20px;
}

.hidden {
  display: none;
}

.top-sidebar .title {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px;
}

.top-sidebar .title .logo {
  display: flex;
  width: 100%;
  justify-content: center;
}

.top-sidebar .logo img {
  width: 100%;
}

.top-sidebar .title .textLogo {
  width: 100%;
  text-align: center;
  padding: 10px;
}

.textLogo span {
  font-size: 1rem;
  opacity: 0.5;
  color: var(--textLogo-white-color);
}

.user-info {
  color: #cec7c7;

}

.userName {
  display: block;

  font-size: 20px;
}

.userRole {}

.border-bttom {
  width: 100%;
  height: 1px;
  border: rgba(105, 105, 105, 0.133) solid 1px;
}

.menu {
  width: 100%;
  height: 60%;
}

.menu ul {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
  height: 100%;
  padding: 15px 15px 0 0;

  list-style: none;
}

.menu li {
  display: flex;
  justify-content: center;
}

.menu a {
  display: flex;
  align-items: center;

  width: 100%;
  padding: 20px;

  text-decoration: none;
  font-size: 17px;

  color: #747779;
  cursor: pointer;
  gap: 10px;
  transition: ease-in-out 0.1s;
}

.menu a:hover {
  background: #eee;
}

.menu a.active {
  background: #eff1f3;
  color: black;
}

.menu a i {
  display: flex;
  text-align: left;
}

.footer {
  display: flex;
  flex-direction: column;
  padding: 10px;
  width: 100%;
  height: 10%;
}

.footer a {
  display: flex;
  color: #747779;
  padding: 10px;
  gap: 10px;
  font-size: 20px;
  text-decoration: none;
}

.footer a.active {
  color: black;
}

/* content */

.content {
  display: flex;
  flex-direction: column;
  margin-right: var(--sidebar-width);
  margin-top: 5%;
  padding: 30px;
  height: calc(100vh - 5%);
  /* ← بدل min-height */
  overflow-y: auto;
  width: 100%;
  animation: fadeIn 0.2s ease;
  transition: margin-right 0.3s ease;
}

/* للجوال */
.content.full {
  margin-right: 0;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error {
  color: red;
  padding: 20px;
  font-size: 16px;
}

@media (min-width: 769px) {

  .container-sidebar-right,
  .container-sidebar-right.hidden {
    display: contents !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

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

@media (max-width: 768px) {
  .header {
    display: flex;
    z-index: 1;
  }

  .container-sidebar-right {
    position: fixed;
    display: block;
    opacity: 1;
    backdrop-filter: blur(4px);
    z-index: 10002;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #00000036;
    z-index: 2;
    backdrop-filter: blur(5px);
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .container-sidebar-right.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .top-sidebar {
    display: flex;
    justify-content: space-between;
  }

  .top-sidebar .title {
    right: 0;
  }

  .sidebar {
    width: 260px;
    transform: translateX(100%);
    z-index: 10003;
  }

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

  .sidebar.hide {
    transform: translateX(100%);
  }

  .content {
    margin-top: 150px;
    margin-right: 0;
    padding: 20px;
  }

  .content.full {
    margin-right: 0;
  }

  .toggle-sidebar {
    display: block;
    z-index: 2000;
  }

  .toggle-sidebar#toggleSidebarClose {
    left: 0;
    display: flex;
    width: fit-content;
    justify-self: left;
    margin: 10px;
  }

  .toggle-sidebar.hidden {
    display: none !important;
  }
}

/*START - Modal Settings */

#modal-settings {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #00000036;
  backdrop-filter: blur(5px);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

#modal-settings.action {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-settings-container {
  display: flex;
  flex-direction: column;

  width: 50%;
  height: 80%;
  border-radius: 20px;
  box-shadow: #747779 1px 1px 3px;
  background: white;
}

.top-sidebar-settings {
  display: flex;
  width: 100%;
  height: 20%;
  padding: 10px;
  flex-flow: column;
}

.top-sidebar-settings button {
  width: 70px;
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
}

.top-sidebar-settings img {
  width: 50px;
  cursor: pointer;
}

.settings-body {
  display: flex;
  flex: 1;
  justify-content: space-between;
}

.sidebar-settings {
  width: 30%;
  padding: 10px;
  height: 100%;
  border-left: solid 1px rgb(197 198 205);
  z-index: 111111111111;

  background-color: #000000;
}

.sidebar-settings aside ul {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
  height: 100%;
  padding: 15px 15px 0 0;

  list-style: none;
}

.sidebar-settings aside ul li a {
  text-decoration: none;
  color: #747779;
}

.sidebar-settings aside ul li a.action {
  color: #f7f7f7;

}

.sidebar-settings aside ul li {
  display: flex;
  justify-content: center;
}

/* settings content */
.settings-content {
  width: 100px;
  flex: 1;
  padding: 10px;
  border-radius: 20px 0px 0px 20px;
  background: #152331;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right,
      #000000,
      #152331);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right,
      #000000,
      #152331);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

/*END - Modal Settings */

/* START - Modal Settings "APis" */
#tab-api {
  position: relative;
  width: 100%;
  height: 100%;
}

.api-container {
  width: 100%;

  padding: 20px;
  height: 100%;
}

/* Menu apis */
.top-meue-apis {
  background: #152331;
  width: 100%;
  margin-bottom: 50px;
  border-radius: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 10px;
  padding: 20px;

  box-shadow:
    1px 1px 1px #ffffff;


}

.top-meue-apis button {
  background: white;
  text-align: center;
  padding: 10px;

  transition: ease-in-out 0.3s;
  cursor: pointer;
  border-radius: 20px;
  width: 150px;
}

.top-meue-apis button:hover {
  background-color: #b6e2ff;
}

/* Content apis */
.api-content {
  display: flex;
  height: 70%;
  width: 100%;
  flex-direction: column;
  gap: 15px;
  margin-top: 50px;
  padding: 40px;

  border-radius: 20px;
  border-radius: 30px;
  background: rgba(24, 23, 23, 0.938);
  box-shadow:
    10px 1px 1px #df4f4f,
    -10px -1px 1px #ffffff;


  transition: ease-in-out 0.3s;
}

.api-content:hover {
  box-shadow:
    15px 15px 30px #ffffff, -15px -15px 30px #df4f4f;
}

.api-content input {
  width: 70%;
  padding: 15px;
  border-radius: 10px;
}