body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #74ebd5 0%, #9face6 100%);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 850px;
  margin: 30px auto;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

.form-section {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  font-weight: 600;
}

input, select {
  padding: 8px;
  width: 95%;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 5px;
}

button {
  margin: 10px 8px;
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  background: #007bff;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

button:hover {
  background: #0056b3;
}

#printBtn{
  margin: 10px 8px;
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  background: #000;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.report-header {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  width: 80px;
  display: block;
  margin: 0 auto 10px auto;
}

.student-info {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.student-info td {
  padding: 8px;
  border: 1px solid #ddd;
}

#reportTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#reportTable th, #reportTable td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center;
}

#reportTable th {
  background: #EE1583;
  color: white;
}

#reportTable tr:nth-child(even) {
  background: #f9f9f9;
}

.overall {
  font-weight: bold;
  background: #e9ecef;
}

.signature {
  text-align: center;
  margin-top: 50px;
}

.signature div {
  margin-top: 40px;
  border-top: 1px solid #000;
  width: 220px;
  margin-left: auto;
  margin-right: auto;
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  .form-section,
  #generateBtn,
  #printBtn,
  h1 {
    display: none !important;
  }

  .container {
    box-shadow: none;
    border: none;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .report-card {
    border: none;
    background: white;
    padding: 0;
    margin: 0;
  }

  .report-header {
    margin-bottom: 10px;
  }

  .report-card h2 {
    margin-top: 5px;
  }
}

.signature-space{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  height: 140px;
}
#subjectsContainer{
  display: flex;             /* enables flexbox */
  flex-wrap: wrap;           /* allows items to go to next line if needed */
  justify-content:space-evenly; /* horizontal spacing */
  align-items: center;       /* vertical alignment */       
}