@import url('https://fonts.googleapis.com/css2?family=Anton&family=BBH+Bartle&family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Gabarito:wght@400..900&family=Geom:ital,wght@0,300..900;1,300..900&family=Italiana&family=Lexend:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    font-family: "Poppins";
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
.dashboard {
  min-height: 100vh;
  background-color: grey;
}

.dashboard{
    display: grid;
    grid-template-columns: 300px 1fr;
    

}

.sidebar {
  grid-row: 1 / -1;
  background-color: #307baa;
}

.sidebar {
  background-color: #0ea5e9;
  color: white;
  padding: 20px;
}
.branding h1 {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 40px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
/* clears browser deafult ul styles */

.sidebar li {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;

  font-size: 1.15rem;
}

.sidebar li:hover {
  background: rgba(255, 255, 255, 0.15);
}
.nav-main {
  margin-bottom: 40px;
}
.sidebar .material-symbols-outlined {
  font-size: 20px;
}



.rightbar {
  display: grid;
  grid-template-rows: auto 1fr;
  background-color: rgb(232, 240, 241);
  
  /* this means header auto height and content takes the rest of the space */
}



.maincontent {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  min-height: 100%;
  padding-left: 24px;
}

.sidepanel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 40px;
}
.sidepanel {
  background-color: rgb(232, 240, 241);
}

.announcements {
  background-color: rgb(232, 240, 241);
  display: flex;
  flex-direction: column;
  padding-right: 30px;
  
  /* gap: 12px; */
}

.announcement-box{
    border-radius: 12px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.announcement-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.announcement-item p {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.4;
}

.announcement-item:not(:last-child) {
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}
/* learnt something new */


.trending {
  background-color: rgb(232, 240, 241);
  padding-right: 30px;
}

.trending-box{
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    gap: 32px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #cbd5e1;
}
/* replace with image later */

.username {
  font-size: 0.9rem;
  font-weight: 600;
}

.user-desc {
  font-size: 0.8rem;
  color: #555;
}
p.username{
    margin: 0;
}
.user-desc{
    margin: 0;
}
.yourprojects {
  display: grid;

  grid-template-columns: repeat(
    auto-fit,
    minmax(330px, 1fr)
  );
  
  align-content: start;



  gap: 20px;
  padding-bottom: 50px;
  
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  
}
.header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  background: white;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-bottom {
  display: flex;
  gap: 15px;
}
.header {
  background: white;
  padding: 20px 32px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 20px;

  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Search */
.search {
  display: flex;
  align-items: center;
  gap: 8px;

  background: #e5e7eb;
  padding: 6px 12px;
  border-radius: 999px;
  width: 400px;
}

.search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.9rem;
}

/* Profile */
.profile {
  display: flex;
  align-items: center;
  gap: 24px;
  
  font-weight: 600;
}
span.username{
    font-size: 15px;
}
.avatar.small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #cbd0b7;
}

.header-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Greeting */
.greeting p {
  font-size: 0.8rem;
  color: #555;
}

.greeting h2 {
  font-size: 1.2rem;
}

/* Buttons */
.header-actions {
  display: flex;
  gap: 20px;
}

.header-actions button {
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.header-actions button:hover {
  background: #0284c7;
}
.avatar.large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #facc15; /* yellow like reference */
}
.avatar.large {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.greeting p {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
}

.greeting h2 {
  font-size: 1.3rem;
  margin: 0;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 16px;
}



.card {
  padding: 20px 24px;
  background: white;
  border-left: 8px solid #0bb3f5;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}



.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.card h1 {
  margin-bottom: 2px;
  font-size: 18px;
}

.card p {
  margin-top: 2px;
  line-height: 1.5;
  color: #555;
  font-size: 14px;
}
