/* Body & Background */
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Heading */
h1 {
  font-weight: 700;
  color: #2c3e50;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/*  Form Card  */
#studentForm {
  background: #ffffffcc; /* semi-transparent white */
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Inputs and Selects */
#studentForm input,
#studentForm select {
  height: 50px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: all 0.2s ease-in-out;
}

/* Focus state */
#studentForm input:focus,
#studentForm select:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  outline: none;
}

/* Button */
#studentForm button {
  background-color: #007bff;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

#studentForm deleteButton {
  background-color: #e01c1c;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

#studentForm button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

/*  Table  */
#studentList {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

#studentList th {
  background-color: #007bff !important;
  color: white;
  font-weight: 600;
  text-align: center;
}

#studentList td {
  text-align: center;
  vertical-align: middle;
  font-size: 0.95rem;
  padding: 0px;
}

/* Striped row highlight */
#studentList tbody tr:nth-child(even) {
  background-color: #f1f7ff;
}

#studentList tbody tr:hover {
  background-color: #d0e4ff;
  transition: background-color 0.2s ease-in-out;
}

/*  Responsive tweaks  */
@media (max-width: 768px) {
  #studentForm .col-md-5,
  #studentForm .col-md-3,
  #studentForm .col-md-2 {
    margin-bottom: 10px;
  }
}
