/* Dashboard Menu Btn */
#open-dashboard-menu {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: unset;
  display: none;
}

#open-dashboard-menu i {
  border: 1px solid var(--grey220);
  background-color: var(--secondary);
  box-shadow: 0 0 5px var(--grey220);
  color: var(--primary);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 25px;
  transition: all 0.5s ease;
  cursor: pointer;
}

#open-dashboard-menu i:hover {
  background-color: var(--white);
}

@media (max-width: 992px) {
  #open-dashboard-menu {
    display: block;
  }
}

/* Responsive Dashboard Menu */
#dashboard-menu {
  width: 300px;
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
  background-color: var(--secondary);
  border: 1px solid var(--grey220);
  padding: 20px;
  border-radius: 0;
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out;
  overflow-y: scroll;
  max-height: 100vh;
}

/* Dashboard Overlay */
#dashboard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  display: none;
  transition: opacity 0.5s ease;
  filter: 2px;
}

/* Dashboard Layout */
.dashboard-layout {
  margin: 50px 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

@media (max-width: 992px) {
  .dashboard-layout {
    grid-template-columns: repeat(1, 100%);
  }
}

/* Dashboard Right */
.dashboard-layout .right-part {
  max-height: unset;
  position: sticky;
  top: 30px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: var(--secondary);
  border: 1px solid var(--grey220);
  padding: 20px;
  border-radius: 8px;
}

@media (max-width: 992px) {
  .dashboard-layout .right-part {
    display: none;
  }
}

/* User Image */
.right-part img,
#dashboard-menu img {
  width: 100px;
  border-radius: 50%;
  align-self: center;
  border: 1px solid var(--primary);
}

/* User Name */
.dashboard-layout .right-part .user-name,
#dashboard-menu .user-name {
  font-weight: bold;
  color: var(--primary);
  text-align: center;
}

/* Dashboard Item */
.dashboard-layout .right-part .dashboard-item,
#dashboard-menu .dashboard-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: var(--white);
  border-radius: 8px;
  gap: 5px;
  border: 1px solid var(--grey220);
  font-size: 14px;
  transition: all 0.5s ease;
  cursor: pointer;
}

.dashboard-layout .right-part .dashboard-item.active,
#dashboard-menu .dashboard-item.active {
  color: var(--primary);
}

.dashboard-layout .right-part .dashboard-item:last-of-type,
#dashboard-menu .dashboard-item:last-of-type {
  color: rgb(255, 52, 52);
}

.dashboard-layout .right-part .dashboard-item:last-of-type:hover,
#dashboard-menu .dashboard-item:last-of-type:hover {
  background-color: rgb(255, 52, 52);
  color: var(--white);
}

.dashboard-layout .right-part .dashboard-item:hover,
#dashboard-menu .dashboard-item:hover {
  color: var(--primary);
}

.dashboard-layout .right-part .dashboard-item i,
#dashboard-menu .dashboard-item i {
  font-size: 16px;
}

/* Dashboard Left Part */
.dashboard-layout .left-part {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: fit-content;
}

.dashboard-layout .dashboard-left {
  overflow-x: auto;
}

/* Welcome Part */
.dashboard-layout .left-part .welcome-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--grey220);
  background-color: var(--secondary);
  border-radius: 8px;
}

@media (max-width: 687px) {
  .dashboard-layout .left-part .welcome-layout {
    grid-template-columns: repeat(1, 100%);
  }
}

/* Welcome Right */
.dashboard-layout .left-part .welcome-layout .welcome-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-layout .left-part .welcome-layout .welcome-right p:nth-child(1) {
  font-weight: bold;
  color: var(--primary);
}

/* Welcome Left */
.dashboard-layout .left-part .welcome-layout .welcome-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 687px) {
  .dashboard-layout .left-part .welcome-layout .welcome-left {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
  }
}

.dashboard-layout .left-part .welcome-layout .welcome-left i {
  font-size: 20px;
  background-color: var(--white);
  padding: 8px;
  border: 1px solid var(--grey220);
  color: var(--primary);
  border-radius: 50%;
}

.dashboard-layout .left-part .welcome-layout .welcome-left div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.dashboard-layout .left-part .welcome-layout .welcome-left div p:nth-child(2) {
  font-weight: bold;
}

/* Overview Part */
.overview-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1100px) {
  .overview-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 687px) {
  .overview-layout {
    grid-template-columns: repeat(1, 100%);
  }
}

/* Overview Item */
.overview-layout .overview-item {
  background-color: var(--secondary);
  border: 1px solid var(--grey220);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1100px) {
  .overview-layout .overview-item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 687px) {
  .overview-layout .overview-item:last-child {
    grid-column: unset;
  }
}

.overview-layout .overview-item .over-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  font-size: 14px;
  align-items: center;
}

.overview-layout .overview-item .over-top i {
  font-size: 20px;
  background-color: var(--white);
  padding: 8px;
  color: var(--primary);
  border-radius: 50%;
  border: 1px solid var(--grey220);
}

.overview-layout .overview-item .over-top div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview-layout .overview-item .over-top div p:nth-child(2) {
  font-weight: bold;
  font-size: 18px;
}

.overview-layout .overview-item hr {
  border: 1px solid var(--grey220);
}

.overview-layout .overview-item .over-bottom {
  display: flex;
  gap: 5px;
  font-size: 14px;
  color: var(--primary);
}

/* Dashboard Order */
.lately-order-layout {
  overflow-x: auto;
  white-space: nowrap;
  padding: 20px;
  background-color: var(--secondary);
  border-radius: 8px;
  border: 1px solid var(--grey220);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dashboard-order {
  border: none;
  padding: 0;
  border-radius: 0;
}

.dashboard-order .table-title {
  background-color: var(--white);
}

.dashboard-order .table-item:nth-child(odd) {
    background-color: var(--white);
}

.dashboard-order .table-item:nth-child(even) {
  background-color: var(--secondary);
}

/* Acctivity Layout */
.activity-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 1100px) {
  .activity-layout {
    grid-template-columns: repeat(1, 100%);
  }
}

/* Activity Right + Activity Left */
.activity-layout .activity-right,
.activity-layout .activity-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1px solid var(--grey220);
  background-color: var(--secondary);
  border-radius: 8px;
  padding: 20px;
}

/* Activity Right */
.activity-right > p:nth-child(1) {
  font-weight: bold;
}

.activity-right > div {
  display: flex;
  gap: 5px;
}

.activity-right > div i {
  height: fit-content;
  font-size: 20px;
  background-color: var(--white);
  padding: 8px;
  color: var(--primary);
  border-radius: 50%;
  border: 1px solid var(--grey220);
}

.activity-right > div > div {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-right > div > div p:nth-child(3) {
  font-size: 10px;
  color: var(--grey100);
}

.activity-right > div > div p:nth-child(1) {
  font-weight: bold;
}

/* Activity Left */
.activity-left > p:nth-child(1) {
  font-weight: bold;
}

.activity-left > div {
  border: 1px solid var(--grey220);
  background-color: var(--white);
  border-radius: 8px;
  padding: 15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.activity-left > div > p:nth-child(1) {
  font-size: 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--secondary);
  border: 1px solid var(--grey220);
  color: var(--primary);
}

.activity-left > div div {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-left > div div p:nth-child(1) {
  font-weight: bold;
}

.activity-left > div a {
  font-size: 14px;
  color: var(--primary);
}
