/* Base Styles */
:root {
  --primary-color: #4a6fa5;
  --secondary-color: #166088;
  --accent-color: #4caf50;
  --light-color: #f5f5f5;
  --dark-color: #333;
  --error-color: #f44336;
  --success-color: #4caf50;
  --art-color: #9c27b0;
  --science-color: #2196f3;
  --commercial-color: #ff9800;
  --general-color: #607d8b;
  --degree-color: #3f51b5;
  --diploma-color: #009688;
  --required-color: #f44336;
  --priority-color: #ff9800;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}


body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f0f2f5;
}

.containerResult {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}



/* Section Styles */
section {
  background-color: white;
  padding: 25px;
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

section h2 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-color);
}

/* Form Styles */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sittings-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sitting {
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: 20px;
  background-color: #f9f9f9;
}

.sitting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.sitting-header h3 {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.sitting-year {
  width: 120px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.subjects-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

.subject-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

select,
button,
input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
}

select {
  flex: 1;
  min-width: 200px;
  background-color: white;
}

button:focus,
input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

button {
  cursor: pointer;
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 600;
}

button:hover {
  background-color: var(--secondary-color);
}

.remove-btn {
  background-color: var(--error-color);
}

.remove-btn:hover {
  background-color: #d32f2f;
}

.add-subject-btn {
  background-color: var(--accent-color);
  align-self: flex-start;
}

.add-subject-btn:hover {
  background-color: #388e3c;
}

#addSittingBtn {
  background-color: var(--secondary-color);
  margin-bottom: 20px;
}

#addSittingBtn:hover {
  background-color: #0d4b6a;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

/* Add styles for the prior qualifications section */
/* Add this after the form-actions class (around line 150) */

.prior-qualifications {
  margin: 20px 0;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: var(--border-radius);
}

.prior-qualifications h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.qualification-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.qualification-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.qualification-option input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
}

.qualification-field {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.qualification-field:disabled {
  background-color: #eee;
  cursor: not-allowed;
}

#resetBtn {
  background-color: #757575;
}

#resetBtn:hover {
  background-color: #616161;
}

/* Results Section */
.results-section {
  display: none;
}

.results-section.active {
  display: block;
}

.stream-header {
  background-color: var(--light-color);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  border-left: 5px solid var(--primary-color);
}

.stream-header h3 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.stream-header p {
  margin-bottom: 5px;
}

.stream-section {
  margin: 25px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-color);
}

.stream-section h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.stream-section.other-streams {
  margin-top: 40px;
}

.program-card {
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 15px;
  transition: var(--transition);
  position: relative;
}

.program-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.program-card.stream-match {
  border-left: 5px solid var(--accent-color);
  background-color: rgba(76, 175, 80, 0.05);
}

.program-card h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-size: 1.4rem;
  padding-right: 80px; /* Make room for program type badge */
}

.program-card .university {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.program-type-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.program-type-badge.degree {
  background-color: var(--degree-color);
}

.program-type-badge.diploma {
  background-color: var(--diploma-color);
}

.stream-badge {
  display: inline-block;
  padding: 5px 10px;
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.stream-badge.art {
  background-color: var(--art-color);
}

.stream-badge.science {
  background-color: var(--science-color);
}

.stream-badge.commercial {
  background-color: var(--commercial-color);
}

.stream-badge.general {
  background-color: var(--general-color);
}

.program-card .match-score {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  margin-left: 10px;
}

.program-card .requirements {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.program-card .requirements h4 {
  margin-bottom: 15px;
  color: var(--dark-color);
}

.requirements-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 15px;
}

.category {
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  padding: 15px;
}

.category h5 {
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-size: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.program-card .requirements ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.program-card .requirements li {
  margin-bottom: 5px;
}

.program-card .requirements li.required {
  font-weight: 600;
}

.program-card .requirements li.priority {
  font-weight: 500;
}

.required-badge {
  display: inline-block;
  background-color: var(--required-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
  font-weight: bold;
  text-transform: uppercase;
}

.priority-badge {
  display: inline-block;
  background-color: var(--priority-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
  font-weight: bold;
  text-transform: uppercase;
}

.requirements-note {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.alternative-admission {
  margin-top: 15px;
  padding: 15px;
  background-color: #f0f7ff;
  border-radius: var(--border-radius);
  border-left: 4px solid #2196f3;
}

.alternative-admission h4 {
  color: #2196f3;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.qualification-list {
  margin-top: 10px;
  padding-left: 20px;
}

.qualification-list li {
  margin-bottom: 5px;
  position: relative;
}

.qualification-list li:before {
  content: "•";
  color: #2196f3;
  font-weight: bold;
  position: absolute;
  left: -15px;
}

.no-results {
  text-align: center;
  padding: 30px;
  color: #757575;
}

.no-results h3 {
  margin-bottom: 15px;
  color: var(--error-color);
}

/* Upload Section */
.file-upload {
  margin-top: 15px;
}

.file-upload input {
  display: none;
}

.file-upload label {
  display: inline-block;
  padding: 12px 20px;
  background-color: #757575;
  color: white;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.file-upload label:hover {
  background-color: #616161;
}



/* Add styles for the View Details button */
.program-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
}

.read-more-link {
  display: inline-block;
  padding: 10px 16px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.read-more-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Responsive Styles */
@media (max-width: 768px) {
  .subject-row {
    flex-direction: column;
    align-items: stretch;
  }

 

  .form-actions {
    flex-direction: column;
  }

  .requirements-categories {
    grid-template-columns: 1fr;
  }
}

