    :root {
      --blue: #004aad;
      --light-blue: #a9c5ff;
      --bg: #e7f0fd;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

    body {
      background: var(--bg); color: #1a1a1a; padding: 20px;
      display: flex; flex-direction: column; min-height: 100vh;
    }

    h1, h2 { text-align: center; font-weight: 700; }
    h1 { color: var(); margin-bottom: 30px; text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.3); }
    h2 { color: #003a8c; margin-bottom: 20px; }

    .welcome-section {
      background: #23549f;
       color: #e3dddd;
       padding: 50px 20px;
      text-align: center; border-radius: 0 0 20px 20px; margin-bottom: 30px;
    }
    .welcome-section h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.welcome-section p {
  font-size: 20px;
}

    .container { max-width: 900px; margin: 0 auto 40px; width: 100%; }

    .card {
      background: #fff; padding: 25px 30px; margin-bottom: 40px;
      border-radius: 15px; box-shadow: 0 8px 20px rgba(0, 74, 173, 0.15);
      transition: box-shadow 0.3s ease;
    }
    .card:hover { box-shadow: 0 12px 30px rgba(0, 74, 173, 0.25); }

    form { width: 100%; }

    .course, .semester {
      display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 15px;
      padding: 12px 15px; border: 1.5px solid #cde0ff;
      border-radius: 10px; background: #f5faff; align-items: center;
      box-shadow: inset 0 0 5px #d0e4ff;
    }

    .course:hover, .semester:hover { border-color: var(--blue); }

    .course input, .semester input, .course select {
      flex: 1 1 140px; padding: 10px 12px;
      border: 1.5px solid var(--light-blue); border-radius: 8px; font-size: 1rem;
    }

    .course input:focus, .semester input:focus, .course select:focus {
      outline: none; border-color: var(--blue); box-shadow: 0 0 8px #004aad66;
    }

    .course button, .semester button {
      background: #ff4b5c; color: #fff; padding: 8px 14px; border: none;
      border-radius: 8px; font-weight: 600; cursor: pointer;
      box-shadow: 0 3px 6px rgba(255, 75, 92, 0.5);
    }

    .course button:hover, .semester button:hover { background: #e63946; }

    .buttons {
      display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;
    }

    .btn {
      padding: 12px 25px; border-radius: 30px; font-weight: 700;
      font-size: 1.1rem; border: none; cursor: pointer;
      transition: 0.3s ease; min-width: 140px;
    }

    .btn-primary {
      background: var(--blue); color: white;
      box-shadow: 0 6px 12px rgba(0, 74, 173, 0.5);
    }

    .btn-primary:hover {
      background: #003a8c; box-shadow: 0 8px 16px rgba(0, 58, 140, 0.7);
    }

    .btn-secondary {
      background: var(--light-blue); color: var(--blue);
      box-shadow: 0 6px 12px rgba(169, 197, 255, 0.5);
    }

    .btn-secondary:hover {
      background: #7a9fff; box-shadow: 0 8px 16px rgba(122, 159, 255, 0.7);
    }

    .result {
      font-weight: 700; font-size: 1.3rem;
      color: var(--blue); text-align: center; margin-top: 15px;
    }

    footer {
      background: linear-gradient(135deg, #0f4c81, #1a6fc9, #3a89ff);
      color: #fff; text-align: center; padding: 30px 20px;
      border-radius: 12px; margin-top: auto;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
    }

footer:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

    .developer-link { color: rgb(226, 200, 68); text-decoration: none; }
    .developer-link:hover { color: white; text-decoration: underline; }

    .disclaimer { font-size: 0.85rem; opacity: 0.8; margin-top: 12px; font-style: italic; }

    .tab-container {
      display: flex; justify-content: center; margin: 20px 0; flex-wrap: wrap;
    }
      .footer-content p strong
    {font-weight: 700;
    font-size: 1.1rem;}
    

    .tab {
      padding: 12px 24px; background: var(--light-blue); color: var(--blue);
      border: none; cursor: pointer; font-weight: 600; border-radius: 30px; margin: 5px;
    }

    .tab.active {
      background: var(--blue); color: white;
      box-shadow: 0 4px 8px rgba(0, 74, 173, 0.3);
    }

    .tab:hover { transform: translateY(-2px); }
    .tab-content { display: none; }
    .tab-content.active { display: block; }

    @media (max-width: 700px) {
      .course, .semester, .buttons { flex-direction: column; }
      .btn { min-width: 100%; }
    }

    @media (max-width: 400px) {
      h1 { font-size: 1.6rem; }
      h2, .result { font-size: 1.3rem; }
    }

.course input[type="text"],
.course input[type="number"],
.semester input[type="number"],
.course select {
  flex: 1 1 140px;
  padding: 10px 12px;
  border: 1.5px solid #a9c5ff;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%; 
  max-width: 100%; 
}


@media (max-width: 700px) {
  .course, .semester {
    flex-direction: column;
    align-items: stretch;
  }

  .course input[type="text"],
  .course input[type="number"],
  .semester input[type="number"],
  .course select {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
  }

  .course button,
  .semester button {
    width: 100%;
    margin-top: 10px;
  }

  .buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    font-size: 1.05rem;
  }
}

:root {
  --blue: #004aad;
  --light-blue: #a9c5ff;
  --bg: #e7f0fd;
}

.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 74, 173, 0.15);
  padding: 25px 30px;
  margin: 30px 0;
  transition: box-shadow 0.3s ease;
}
.card:hover {
  box-shadow: 0 12px 30px rgba(0, 74, 173, 0.25);
}

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

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--blue);
}

select, input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--light-blue);
  border-radius: 8px;
  font-size: 1rem;
  background: #f5faff;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

select:focus, input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 8px #004aad66;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.1);
}

th, td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid #dbe5ff;
}

th {
  background-color: var(--light-blue);
  color: var(--blue);
  font-weight: 600;
}

.buttons {
  margin: 25px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.btn {
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  min-width: 140px;
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 6px 12px rgba(0, 74, 173, 0.5);
}
.btn-primary:hover {
  background: #003a8c;
  box-shadow: 0 8px 16px rgba(0, 58, 140, 0.7);
}

.result {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  background: #f0f6ff;
  font-weight: 600;
  color: var(--blue);
  text-align: center;
  font-size: 1.2rem;
}

.result-container {
  background-color: #f5faff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: inset 0 0 6px #d0e4ff;
}

.gpa-value {
  font-size: 1.4em;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 700;
}


.course select,
#subjectsTable select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 1.05rem;
  padding: 10px 12px;
  background: #f5faff;
  border: 1.5px solid var(--light-blue);
  border-radius: 8px;
  color: #003a8c;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .course select,
  #subjectsTable select {
    font-size: 1.1rem;
    padding: 12px 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #subjectsTable td {
    padding: 10px 6px;
  }
}
#subjectsTable select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-right: 36px; 
  font-size: 1rem;
  background: #f5faff;
  border: 1.5px solid var(--light-blue);
  border-radius: 8px;
  color: #003a8c;

}
/* Added button press animation */
button, .btn {
  transition: transform 0.2s ease-in-out;
}

button:active, .btn:active {
  transform: scale(0.96);
}

/* Enhanced responsiveness for very small devices */
@media (max-width: 350px) {
  .tab {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .tab-container {
    flex-direction: column;
    align-items: center;
  }

  .tab {
    width: 100%;
    text-align: center;
  }
}
  #element{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: larger;
    font-weight: 700;
  }

