body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f1f3f6;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  min-height: 100vh;
}

.container {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 30px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

.title {
  text-align: center;
  font-size: 28px;
  color: #007bff;
  margin-bottom: 25px;
}

label {
  font-weight: 600;
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
}

select,
input[type="file"],
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

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

button:hover {
  background-color: #0056b3;
}

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

.subject-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.subject-row input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 15px;
}

.sgpa-section {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  text-align: center;
}

#sgpa-result {
  font-size: 22px;
  font-weight: bold;
  color: #222;
}

#sgpa-feedback {
  margin-top: 10px;
  font-size: 16px;
  color: #555;
}

#download-btn {
  background: #28a745;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
}
#download-btn:hover {
  background: #218838;
}

.cgpa-section {
  margin-top: 40px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.cgpa-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cgpa-row select,
.cgpa-row input {
  padding: 8px;
  font-size: 14px;
}

table {
  border: 1px solid black;
}
th {
  border-bottom: 1px solid black;
}
td {
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  padding: 5px;
}
#subject-list {
  background: white;
  color: #000;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-align: start;
}

.modern-table th,
.modern-table td {
  padding: 10px;
  font-weight: bold;
  font-size: 13px;
  color: #000;
  border: 2px solid #000;
}
