body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #333;
}

.inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.input-group input, .input-group select {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button {
  border: none;
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  width: 100%;
}

.add-button{
  padding: 5px;
}

/* Add Course Button */
#add-course {
  background-color:#388e3c; /* Green */
  color: white;
  padding: 8px 10px; /* Reduced padding */
  font-size: 16px; /* Standard font size */
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}


#add-course:hover {
  background-color: #388e3c; /* Slightly darker green */
}



/* Remove Button */
#course-table button {
  background-color: #f44336; /* Red */
  color: white;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
}

#course-table button:hover {
  background-color: #d32f2f; /* Darker Red */
}

/* Calculate GPA Button */
#calculate-gpa {
  background-color: #007bff; /* Blue */
  color: white;
  font-size: 1rem;
}

#calculate-gpa:hover {
  background-color: #0056b3; /* Darker Blue */
}


table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

table th, table td {
  padding: 1rem;
  text-align: left;
  border: 1px solid #ccc;
}

table th {
  background-color: #f4f4f9;
  text-align: center;
}

.progress-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  flex-direction: column;
}

.progress-ring {
  transform: rotate(-90deg);
  width: 150px;
  height: 150px;
}

.ring-bg {
  fill: none;
  stroke: #e6e6e6;
  stroke-width: 15;
}

.ring-progress {
  fill: none;
  stroke: #4caf50;
  stroke-width: 15;
  stroke-linecap: round;
  stroke-dasharray: 408;
  stroke-dashoffset: 408;
  transition: stroke-dashoffset 0.5s ease;
}

.gpa-text {
  position: absolute;
  text-align: center;
}

.gpa-text #gpa-value {
  font-size: 1.5rem;
  font-weight: bold;
}

.footer{
  margin-top: 30px;
  text-align: center;
}

a{
  text-decoration: none;
}

@media (max-width: 760px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  .inputs {
    grid-template-columns: 2fr;
  }

  button {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .progress-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-direction: column;
  }

  .progress-ring {
    width: 180px;
    height: 180px;
  }

  .gpa-text {
    top: 40%;
    transform: translateX(-15%);
    text-align: center;
  }

  .gpa-text #gpa-value {
    font-size: 1.5rem;
  }
}


