* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

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

nav {
  width: 250px;
  height: 100vh;
  background-color: #1e88e5;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

nav div {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

nav img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

nav h1 {
  font-size: 20px;
}

nav ul {
  list-style: none;
  margin-bottom: 20px;
}

nav ul li {
  padding: 12px;
  cursor: pointer;
}

nav ul li:hover {
  background-color: #1992d4;
  border-radius: 5px;
}

header {
  width: 100%;
  padding: 20px;
  background-color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header input {
  padding: 8px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

header button {
  background-color: #1e88e5;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
}

header button:hover {
  background-color: #1992d4;
}

header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

main {
  display: flex;
  padding: 20px;
  width: 100%;
}

section:first-child {
  flex: 2;
}

section h2 {
  margin-bottom: 15px;
}

article {
  background-color: white;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

article h3 {
  margin-bottom: 5px;
}

article div {
  margin-top: 10px;
}

article button {
  background-color: transparent;
  border: 1px solid #ccc;
  padding: 5px 10px;
  margin-right: 5px;
  border-radius: 5px;
  cursor: pointer;
}

article button:hover {
  background-color: #eee;
}

section:nth-child(2) {
  flex: 1;
  margin-left: 20px;
}

section:nth-child(2) > div {
  background-color: white;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0, 0.1);
}

section:nth-child(2) h2 {
  margin-bottom: 15px;
}

section:nth-child(2) article {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

section:nth-child(2) article img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

section:nth-child(2) article div h4 {
  margin-bottom: 3px;
  font-size: 14px;
}

section:nth-child(2) article div p {
  font-size: 12px;
  color: gray;
}

header div:last-child {
  display: flex;
  gap: 10px;
}

header div:last-child button {
  background-color: #1e88e5;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

header div:last-child button:hover {
  background-color: #1992d4;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  nav {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
  }

  nav ul {
    display: flex;
    gap: 15px;
  }

  main {
    flex-direction: column;
  }

  section:nth-child(2) {
    margin-left: 0;
  }
}
