html {
  font-size: 13px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  width: 80%;
  margin: auto;
  /* width: 100%;
  margin: 0; */
}

/* up to 500px */
@media (max-width: 500px) {
  .grid {
    /* background: red; */
    grid-template-columns: 1fr;
  }

  .company-side {
    display: none;
    width: 0;
  }

  .dashboard-side {
    width: 100%;
    margin-left: 20px;
  }
  .task-container {
    flex-direction: column;
  }
  .footer {
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 10px;
  }
  .footer-left {
    gap: 5px;
  }

  .footer-right {
    font-size: 10px;
  }
}

/* 500–650px */
@media (min-width: 500px) and (max-width: 650px) {
  .grid {
    /* background: blue; */
    grid-template-columns: repeat(3, 1fr);
  }

  .company-side {
    display: none;
    width: 0;
  }
  .task-container {
    flex-direction: column;
  }
  .footer {
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 10px;
  }
  .footer-left {
    gap: 5px;
  }

  .footer-right {
    font-size: 10px;
  }
}

/* 650–800px */
@media (min-width: 650px) and (max-width: 800px) {
  .grid {
    /* background: green; */
    grid-template-columns: repeat(2, 1fr);
  }

  .company-side {
    display: none;
    width: 0;
  }
  .task-container {
    flex-direction: column;
  }
  .footer {
    flex-wrap: nowrap;
    text-align: center;
    margin-bottom: 5px;
  }
}

/* 800–1000px */
@media (min-width: 800px) and (max-width: 1000px) {
  .grid .row1 {
    /* background: orange; */
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-trayIcon img {
    display: none;
  }
  .task-container {
    flex-direction: column;
  }
  .footer {
    flex-wrap: nowrap;
    text-align: center;
    margin-bottom: 5px;
  }
}

/* 1000px and up */
@media (min-width: 1000px) {
  .grid {
    /* background: purple; */
    grid-template-columns: repeat(4, 1fr);
  }

  .dash-trayIcon img {
    display: none;
  }
  .footer {
    flex-wrap: nowrap;
    text-align: center;
    margin-bottom: 5px;
  }
}

.row1 {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  justify-content: center;

  margin-top: 20px;
  margin-bottom: 35px;
}

.row2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  justify-content: center;

  margin-bottom: 35px;
}

.row3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  justify-content: center;
}

main {
  background: rgba(245, 241, 241, 0.954);
  display: flex;
}

main .company-side {
  width: 20%;
  min-height: 100vh;
  border-right: 0.1rem solid darkgrey;
  box-shadow: 0 4px 10px 2px rgba(0, 0, 0, 0.2);
  margin-right: 15px;
  padding-left: 15px;
  /* overflow: hidden; */
  overflow: auto;
}
/* color page active when switching*/
.company-side p {
  border-bottom: 1px solid lightgray;
  padding: 15px 0px 15px 0px;
  margin-left: 15px;
  font-size: 1rem;
  font-weight: bold;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  width: 100%;
  text-decoration: none;
  color: #555;
}

/* hover */
.menu-item:hover {
  background: #f2f2f2;
}

/* ACTIVE */
.menu-item.active {
  background: #c2185b;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
/* finished color page active when switching*/

main .dashboard-side {
  width: 80%;
  margin-right: 20px;
  padding-left: 20px;
  /* overflow: hidden; */
  overflow: auto;

  /* Start page scrolled */
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.grid {
  flex: 1;
  overflow-y: auto;
}
/* End page scrolled */

.dashboard-side .dash-trayIcon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-trayIcon img {
  width: 20px;
  height: 15px;
  margin-top: -15px;
}

.dashboard-side p:nth-of-type(1) {
  font-size: 1rem;
  font-weight: bold;
}

.dashboard-side p {
  padding: 15px 0px 15px 0px;
}

.item {
  background-color: rgba(255, 255, 255, 0.837);
  display: inline-block;
  align-items: center;
  text-align: left;
  gap: 0;
  box-shadow: 0 4px 10px 2px rgba(0, 0, 0, 0.2);
}

/* item-1 */
.item .img-1 {
  display: block;
  width: 60px;
  height: 60px;
  margin-top: -15px;
  margin-left: 12px;
}

.item .img-2 {
  display: block;
  margin-left: 12px;
}

.item p:nth-of-type(1) {
  font-size: 0.8rem;
  text-align: right;
  margin-right: 12px;

  margin-top: -50px;
}

.item p:nth-of-type(2) {
  font-size: 1.5rem;
  text-align: right;
  margin-right: 12px;
  border-bottom: 1px solid lightgray;

  margin-top: -50px;
}

.item p:nth-of-type(3) {
  font-size: 0.8rem;
  text-align: left;
  margin-right: 12px;
  margin-left: 35px;
  margin-top: -30px;
  padding-bottom: 0px;
}

.row1 div:nth-of-type(1) .img-1 {
  background-color: green;
  padding: 1rem;
}

.row1 div:nth-of-type(2) .img-1 {
  background-color: #d3951a;
  padding: 1rem;
}

.row1 div:nth-of-type(3) .img-1 {
  background-color: #002080;
  padding: 1rem;
}

.row1 div:nth-of-type(4) .img-1 {
  background-color: red;
  padding: 1rem;
}

/* Row line two div1*/
.row2 div:nth-of-type(1) .img-1 {
  background-color: green;
  padding: 1rem;
  width: 90%;
  height: 100px;
}

.row2 div:nth-of-type(1) p:nth-of-type(1) {
  font-size: 1.3rem;
  font-weight: normal;
  text-align: left;
  margin-left: 12px;
  margin-top: 3px;
}

.row2 div:nth-of-type(1) p:nth-of-type(2) {
  font-size: 0.9rem;
  text-align: left;
  margin-left: 12px;
}

/* Row line two div2*/
.row2 div:nth-of-type(2) .img-1 {
  background-color: #d3951a;
  padding: 1rem;
  width: 90%;
  height: 100px;
}

.row2 div:nth-of-type(2) p:nth-of-type(1) {
  font-size: 1.3rem;
  font-weight: normal;
  text-align: left;
  margin-left: 12px;
  margin-top: 3px;
}

.row2 div:nth-of-type(2) p:nth-of-type(2) {
  font-size: 0.9rem;
  text-align: left;
  margin-left: 12px;
}

/* Row line two div3*/
.row2 div:nth-of-type(3) .img-1 {
  background-color: #002080;
  padding: 1rem;
  width: 90%;
  height: 100px;
}

.row2 div:nth-of-type(3) p:nth-of-type(1) {
  font-size: 1.3rem;
  font-weight: normal;
  text-align: left;
  margin-left: 12px;
  margin-top: 3px;
}

.row2 div:nth-of-type(3) p:nth-of-type(2) {
  font-size: 0.9rem;
  text-align: left;
  margin-left: 12px;
}
/* Row line three*/
/* task-container */
.task-container {
  display: flex;
  gap: 20px;
}
/* CARD */
.task-card {
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  flex: 1;
}

/* HEADER */
.task-header {
  display: flex;
  align-items: center;
  gap: 15px;

  background: #d3951a;
  color: white;
  padding: 15px;

  width: 95%;
  margin: auto;
}

.title {
  font-weight: bold;
}

/* TABS */
.group {
  display: flex;
  align-items: center;
  gap: 5px;

  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.group img {
  width: 16px;
}

.group.active {
  background: #e0a83a;
}

/* TASK LIST */
.task-list {
  padding: 10px 20px;
}

/* ROW */
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.task-row p {
  margin: 0;
  flex: 1;
  color: #555;
  font-size: 18px;
}

/* ACTION ICONS */
.actions {
  display: flex;
  gap: 10px;
}

.edit {
  color: green;
  cursor: pointer;
}

.delete {
  color: red;
  cursor: pointer;
}

/* CARD employee*/
/* HEADER */
.employee-header {
  background: #2f5597;
  color: white;
  padding: 15px;
  width: 95%;
  margin: auto;
}

.employee-header h3 {
  margin: 0;
  font-size: 18px;
}

.employee-header p {
  margin: 5px 0 0;
  font-size: 18px;
  opacity: 0.8;
}

/* TABLE */
.employee-table {
  width: 100%;
  border-collapse: collapse;
  margin-left: 15px;
}

/* HEADER ROW */
.employee-table th {
  text-align: left;
  color: #4caf50;
  padding: 15px;

  border-bottom: 2px solid #ddd;
}

/* BODY */
.employee-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  color: #555;
}

/* ROW HOVER */
.employee-table tr:hover {
  background: #f9f9f9;
}
hr {
  margin-top: 50px;
}
/* ===== FOOTER ===== */
/* footer container */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 20px;
  border-top: 1px solid #ddd;
  background: #f8f8f8;

  font-size: 14px;
  color: #777;
}

/* left text */
.footer-left {
  display: flex;
  gap: 20px;
}

.footer-left a {
  text-decoration: none;
  color: #777;
  font-weight: 500;
}

.footer-left a:hover {
  color: #000;
}

/* right text */
.footer-right {
  font-size: 14px;
}
