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;
  }

  .profile-container {
    flex-direction: column;
    height: auto;
  }

  .row {
    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;
}

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;
}

.company-side p {
  border-bottom: 1px solid lightgray;
  padding: 15px 0px 15px 0px;
  margin-left: 15px;
  font-size: 1rem;
  font-weight: bold;
}

/* 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: 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;
}

/* LAYOUT */
.profile-container {
  display: flex;
  gap: 20px;
  min-height: auto;
  padding: 15px 0px 15px 0px;
  margin-top: 5px;
}

/* LEFT CARD */
.profile-card {
  flex: 2;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* HEADER */
.card-header {
  background: #c2185b;
  color: white;
  padding: 5px 10px;
  width: 90%;
  margin: auto;
  margin-top: -15px;
}

.card-header h3 {
  font-size: 1.2rem;
  margin: 0;
}

.card-header p {
  margin: 5px 0 0;
  font-size: 14px;
}

/* FORM */
.profile-form {
  padding: 20px;
}

.row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.row input,
.row textarea {
  flex: 1;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 8px;
  outline: none;
  font-size: 14px;
}

textarea {
  /* resize: none; */
  height: 60px;
}

/* BUTTON */
button {
  background: #c2185b;
  color: white;
  border: none;
  padding: 10px 20px;
  float: right;
  cursor: pointer;
  margin-bottom: 15px;
}

/* RIGHT CARD */
.info-card {
  flex: 1;
  background: white;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.info-card img {
  border-radius: 50%;
  border: 2px solid black;
  box-shadow: 10px 4px 10px rgba(0, 0, 0, 0.2);
  background-color: #000;
  height: 120px;
  width: 120px;
  padding: 5px;
}

/* TRUM-IMG */
.trum-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-top: -40px;
}

/* TEXT */
.role {
  font-size: 12px;
  color: gray;
  margin-top: 10px;
}

.bio {
  font-size: 13px;
  color: #666;
}

hr {
  margin-top: 50px;
}
/* ===== FOOTER ===== */
/* footer container */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

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

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

/* left links */
.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;
}
