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

body {
  background-color: #fff5f8;
  color: #444;
}

.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: #f8d7e3;
  padding: 30px 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.logo {
  color: #c45c84;
  margin-bottom: 40px;
  font-size: 28px;
  text-align: center;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin: 20px 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: #7a4a5d;
  font-size: 18px;
  transition: 0.3s;
}

.sidebar ul li a:hover {
  color: #c45c84;
  padding-left: 8px;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 30px;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.dashboard-title {
  color: #c45c84;
  font-size: 32px;
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar-right input {
  padding: 10px 15px;
  border: 1px solid #f3c6d7;
  border-radius: 20px;
  outline: none;
  background-color: white;
  font-size: 14px;
  color: #444;
}

.bell {
  font-size: 22px;
  cursor: pointer;
}

.profile-pic {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px solid #f3b6cb;
  object-fit: cover;
}

/* Welcome Card */
.welcome-card {
  background-color: white;
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.welcome-title {
  color: #c45c84;
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 600;
}

.welcome-text {
  color: #777;
  font-size: 15px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background-color: white;
  padding: 20px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  color: #c45c84;
  margin-bottom: 10px;
}

.card p {
  font-size: 22px;
  font-weight: bold;
  color: #555;
}

/* Sections */
section {
  margin-bottom: 30px;
}

section h2 {
  color: #c45c84;
  margin-bottom: 15px;
}

/* Subject Cards */
.subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.subject-card {
  background-color: white;
  padding: 18px 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #555;
  font-weight: bold;
  transition: 0.3s;
}

.subject-card:hover {
  transform: translateY(-5px);
  background-color: #ffe9f1;
}

/* Assignment / Attendance / Exams / Profile Cards */
.assignment-card,
.attendance-card,
.exam-card,
.profile-card {
  background-color: white;
  padding: 18px 20px;
  border-radius: 18px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.assignment-card:hover,
.attendance-card:hover,
.exam-card:hover,
.profile-card:hover {
  transform: translateY(-4px);
}

.assignment-card p,
.attendance-card,
.exam-card,
.profile-card p {
  color: #666;
}

/* Profile Card */
.profile-card {
  text-align: center;
  padding: 30px 20px;
}

.profile-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 4px solid #f3b6cb;
  object-fit: cover;
}

.profile-card h3 {
  color: #c45c84;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    text-align: center;
  }

  .sidebar ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .sidebar ul li {
    margin: 10px 0;
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-right input {
    width: 100%;
  }

  .subjects {
    flex-direction: column;
  }
}