/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
}


/* PAGE */
.page {
  flex: 1;
  display: none;
  padding: 20px;
}

.page.active {
  display: block;
}

/* GLOBAL BUTTON TRANSITION */
button {
  transition: all 0.3s ease;
}

/* NAVBAR */
.navbar {
  width: 100%;
  padding: 12px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  background: linear-gradient(135deg, #0d015a, #006965);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.logo-section h1 {
  font-size: 24px;
  color: white;
}

.tagline {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}

/* NAV BUTTONS */
.nav-buttons {
  display: flex;
  gap: 10px;
}

.navbar button {
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.navbar button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transition: 0.5s;
}

.navbar button:hover::before {
  left: 120%;
}

.navbar button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* BUTTONS */
#resetCgpaBtn,
#resetGpaBtn,
.navbar button,
.btn1,
#cgpaBtn,
#calculateBtn {
  border: none;
  cursor: pointer;
  font-weight: 600;
}

#resetCgpaBtn,
#resetGpaBtn,
#resetSigBtn {

border:none;
cursor:pointer;
font-weight:600;

padding:8px 14px;
border-radius:10px;

background:#006965;
color:white;

transition:all 0.3s ease;

}

.btn1 {
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #006965;
  color: #fff;
  font-weight: bold;
  width: 100%;
}

#cgpaBtn,
#calculateBtn {
  display: block;
  margin: 25px auto 0;
  padding: 12px 28px;
  border-radius: 8px;
  background: #0d015a;
  color: #fff;
  font-size: 15px;
}

#cgpaBtn {
  margin: -35px auto 0;
}

/* BUTTON HOVER */
#resetCgpaBtn:hover,
#resetSigBtn:hover,
#resetGpaBtn:hover,
.btn1:hover,
#calculateBtn:hover,
#cgpaBtn:hover,
.removeBtn:hover {
  transform: translateY(-3px) scale(1.03);
  opacity: 0.95;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* CONTAINERS */
.container {
  max-width: 800px;
  margin: 40px auto;
  background: #e5e7eb;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.container h1 {
  color: #0d015a;
  margin-bottom: 20px;
}

.container-one {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
}

.container1 {
  width: 450px;
  margin: 50px auto;
  background: #dedee3;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.container1 h1 {
  color: #0d015a;
}

.container-2 {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
}

/* INPUTS */
input,
select {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #d1d5db;
  color: #006965;
  transition: 0.2s ease;
}

input::placeholder {
  color: #006965;
}

input:focus,
select:focus {
  outline: none;
  border: 2px solid #006965;
  box-shadow: 0 0 8px rgba(0, 105, 101, 0.3);
}

.container1 input {
  width: 160px;
  padding: 8px;
  border-radius: 6px;
}

/* ROWS */
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
}

.row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 15px;
}

.row2 input {
  border: 1px solid #0f766e;
  width: 180px;
  flex: none;
}

.row2 label {
  color: #006965;
  width: 150px;
  font-weight: 600;
}

/* REMOVE BUTTON */
.removeBtn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid #0f766e;
  color: #0f766e;
  background: transparent;
  cursor: pointer;
}

/* TITLES */
.items2,
.items-n {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* RESULT */

#result,
#cgpaResult {
  font-size: large;
  text-align: center;
  margin-top: 10px;
  transition: 0.3s ease;
  font-weight: 700;
}
#sigBtn{
display:block;
margin:12px auto 0;

padding:12px 28px;

border:none;
border-radius:8px;

background:#0d015a;
color:white;

cursor:pointer;
font-weight:600;
}

#sigResult{

font-size:large;
font-weight:700;

text-align:center;

margin-top:10px;

transition:0.3s ease;

}

.sig-result-box{
margin-top:-20px;
}

/* INFO PAGE */
.info-page {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
  color: #0d015a;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.info-card {
  background: #fff;
  border: 1px solid #006965;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 5px 18px rgba(0,0,0,0.06);
}

.info-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.info-card h3 {
  margin: 10px 0;
  color: #0d015a;
}

.info-card p,
.info-card li {
  color: #000;
  font-size: 14px;
  line-height: 1.6;
}

.info-card ul {
  list-style: none;
  padding-left: 0;
}

/* FOOTER */
.footer {
  background: linear-gradient(135deg, #0d015a, #006965);
  color: white;
  padding: 25px 20px;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  max-width: 900px;
  margin: auto;
}

.footer h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer p {
  font-size: 14px;
  color: #e5e7eb;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 20px;
  transition: 0.3s ease;
}

.footer-links a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 15px;
  font-size: 13px;
  color: #d1d5db;
}
#sigFigPage{
flex:1;
padding:20px;
}

.sig-container {
  margin-top: 50px;
}

#sigResult {
  text-align: center;
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
}



#sigBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.error {
  color: red;
}

.valid {
  color: #006965;
}

/* HR */
hr {
  width: 60%;
  margin: 100px auto 0;
}

/* TABLET */
@media (max-width: 820px) {

  .container {
    width: 100%;
    margin-top: 9%;
  }

  .container-one {
    width: 100%;
    margin-left: 0;
  }

  .container1 {
    width: 90%;
  }

  .row {
    flex-direction: row;
    gap: 6px;
  }

  .row input,
  .row select {
    padding: 8px;
    font-size: 13px;
    min-width: 0;
  }

  .removeBtn {
    width: 30px;
    height: 30px;
  }

  input,
  select {
    margin-top: 10px;
  }

  #calculateBtn {
    width: 50%;
  }

  #cgpaBtn {
    margin: 20px auto;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* MOBILE */
@media (max-width: 430px) {

  .navbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .container {
    width: 100%;
    margin-left: 0;
    padding: 20px;
  }

  .container-one {
    width: 100%;
    padding: 20px;
    margin-left: 0;
  }

  .row {
    flex-wrap: wrap;
  }

  .row input,
  .row select {
    width: 100%;
  }

  .removeBtn {
    margin: auto;
  }

  .row2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .row2 input {
    width: 100%;
    margin-top: 0;
  }

  .container1 {
    width: 100%;
  }

  .info-card {
    width: 100%;
    margin-left: 0;
  }

  #calculateBtn {
    width: 100%;
  }
}

/* EXTRA SMALL */
@media (max-width: 360px) {

  .container-one {
    padding: 15px;
  }

  .footer-links {
    gap: 10px;
  }
}
@media (width:912px) {
  .container{
    margin-top: 200px;

  }
  .container1{
    margin-top: 200px;
  }
   .info-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
    .info-card {
    grid-template-columns: 1fr;
    width: 70%;
    margin-left: 0;
  }

}