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

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #74ebd5, #9face6);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.form-box {
  background: white;
  padding: 40px;
  width: 420px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

h1 {
  text-align: center;
  margin-bottom: 25px;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #6c63ff;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

.login-btn {
  background: #28a745;
}

.user-list {
  margin-top: 25px;
}

.user-list ul {
  list-style: none;
}

.user-list li {
  background: #f1f1f1;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-buttons button {
  width: auto;
  padding: 6px 10px;
  margin-left: 5px;
  font-size: 14px;
}

.dashboard {
  width: 90%;
  margin: auto;
  padding: 30px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.logout-btn {
  background: red;
}

.add-user-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.add-user-box input,
.add-user-box select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
}

.user-heading {
  margin-bottom: 20px;
}

.user-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.user-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-card h3 {
  margin-bottom: 10px;
}

.user-card p {
  margin-bottom: 8px;
}

.card-buttons {
  margin-top: 15px;
}

.card-buttons button {
  background: #ff4d4d;
}

.student-dashboard {
  width: 90%;
  margin: auto;
  padding: 30px;
}

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

.student-profile-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.profile-image img {
  width: 120px;
  height: 120px;
}

.profile-details h2 {
  margin-bottom: 10px;
}

.profile-details p {
  margin-bottom: 10px;
  color: gray;
}

.student-role {
  background: #6c63ff;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
}

.student-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.info-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.info-card h3 {
  margin-bottom: 10px;
}