/* ---------------------------------
   Headings & General Typography
----------------------------------- */
.sgpa-heading {
  font-size: 1.8em;
  text-align: center;
  color: #000;
  font-weight: bolder;
  margin-bottom: 20px;
}

.subjectCreditBadge {
    background: linear-gradient(45deg, #a36bff, #7d44ff);
    border-radius: 20px;
    box-shadow: 0 2px 4px #7444ff4d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
    letter-spacing: .5px;
    padding: 3px 7px;
}

.subjectChooseBadge{
	background: linear-gradient(45deg, #ff6b6b, #f44);
    border-radius: 20px;
    box-shadow: 0 2px 4px #ff44444d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 3px 7px;
	vertical-align: middle;
}

.input-msg {
  font-size: 14px;
  margin-top: 5px;
	font-weight: 500;
	display: block;
}

#watermark{
	display: none;
}

/* ---------------------------------
   Animation Effects
----------------------------------- */
.zoom-in {
  animation: zoomIn 0.5s forwards;
}

@keyframes zoomIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------------------------------
   Input Boxes & Wrappers
----------------------------------- */
.choose-scheme-box,
#branch-wrapper,
#semester-wrapper,
.student-name-box,
.student-usn-box,
.subject-each-box,
.elective-group-wrapper {
  border-radius: 7px;
  margin-bottom: 25px;
  background: repeating-linear-gradient(33deg, #f1f1f163 0px 0px, #ffffff 21px 25px);
  padding: 5px 12px 12px 12px;
  box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px,
              rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
}

#post-6654 h1 {
  background: repeating-linear-gradient(33deg, #000000 0px 0px, #2d2c2c 21px 25px);
  padding: 5px;
  box-shadow: rgba(9,30,66,.25) 0px 1px 1px,rgba(9,30,66,.13) 0px 0px 1px 1px;
  text-align: center;
  color: #fff;
  border-radius: 7px;
}

/* ---------------------------------
   Elective Section
----------------------------------- */
.selected-elective {
  border-radius: 5px;
  padding: 10px;
  background: #39dd5e08;
  margin-top: 15px;
  border: 1.5px dashed #02a00c;
}

/* ---------------------------------
   Student Info Section
----------------------------------- */
.sgpa-student-info {
  border-bottom: 1.5px solid #000;
}

.student-details-heading-h4,
.core-subjects-heading {
  background: #13a5b11c;
  margin: 0;
  border-left: 5px solid #13a5b1;
  padding: 10px;
  border-right: 5px solid #13a5b1;
  border-radius: 12px;
  text-align: center;
  font-weight: bolder;
  font-size: 21px;
}

.student-details-heading,
.core-header-wrapper {
  margin-top: -25px;
  padding: 36px 0;
}

/* ---------------------------------
   Table Scroll Wrapper
----------------------------------- */
.scrroll-table-sgpa {
  width: 100%;
  overflow-x: auto;
  border: 0.5px solid #0000001c;
  -webkit-overflow-scrolling: touch;
  border-radius: 7px;
}

/* ---------------------------------
   Labels & Form Inputs
----------------------------------- */
#subjects label,
.student-name-box label,
.student-usn-box label,
.choose-scheme-box label,
#branch-wrapper label,
#semester-wrapper label {
  font-weight: 600;
  font-size: 17px;
  display: block;
  margin-bottom: 8px;
}

.calculate-sgpa-box {
  display: flex;
  justify-content: center;
  align-items: center;
	margin-bottom:45px;
}

.sgpa-calculator-wrapper input[type="text"],
.sgpa-calculator-wrapper input[type="number"],
.sgpa-calculator-wrapper select {
  width: 100%;
  padding: 10px 10px 10px 5px;
  border: 1px solid #000;
  border-radius: 7px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.sgpa-calculator-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 9L1 4h10L6 9z' fill='currentColor'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 35px;
  cursor: pointer;
}

.sgpa-calculator-wrapper input[type="text"]:focus,
.sgpa-calculator-wrapper input[type="number"]:focus,
.sgpa-calculator-wrapper select:focus {
  border-color: #6200ee;
  box-shadow: 0 0 6px #6200ee;
  outline: none;
}

.calculate-sgpa-box button {
  margin-top: 20px;
  background: #6200ee;
  color: #fff;
  padding: 12px 10px;
  box-shadow: rgba(9,30,66,.25) 0px 1px 1px,rgba(9,30,66,.13) 0px 0px 1px 1px;
  width: 60%;
  font-size: 1.2em;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-weight: bold;
}

.sgpa-result-actions button {
    box-shadow: rgba(9,30,66,.25) 0px 1px 1px,rgba(9,30,66,.13) 0px 0px 1px 1px;
}

input[type="submit"]:hover,
.calculate-sgpa-box button:hover,
.calculate-sgpa-box button:focus,
input[type="submit"]:focus,
#downloadPdfBtn:hover,
#downloadPdfBtn:focus,
#calculateAgainBtn:hover,
#calculateAgainBtn:focus {
  box-shadow: 0 0 0 2px #fff,
              0 0 0 4px #6200ee;
}

/* ---------------------------------
   Input Field States
----------------------------------- */
.input-error {
  background-color: #ffe6e6 !important;
  outline: none;
  transition: border 0.3s ease, background-color 0.3s ease;
  border: 1px solid red !important;
}

.input-success {
  background-color: #e6ffe6 !important;
  outline: none;
  transition: border 0.3s ease, background-color 0.3s ease;
  border: 1px solid green !important;
}

/* ---------------------------------
   Input Validation Messages
----------------------------------- */
.input-msg {
  font-size: 14px;
  margin-top: 5px;
  font-weight: 500;
  display: block;
  line-height: 1.3;
}

.input-msg.error {
  color: red;
}

.input-msg.success {
  color: green;
}

/* ---------------------------------
   SGPA Table
----------------------------------- */
.sgpa-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: auto;
  line-height: 1.2;
}

@media only screen and (max-width: 785px) {
  .sgpa-table {
    min-width: 710px;
    width: 100%;
  }
}

.sgpa-table thead{
	border-bottom: 1px solid #6200ee;
}

.sgpa-summary-row{
   border-top: 1px solid #6200ee;
}

.sgpa-table thead,
.sgpa-summary-row {
  background: #5f01d714;
}

.sgpa-result-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  align-items: center;
  justify-content: center;
}

.sgpa-result-actions button {
  width: 100%;
}

.sgpa-table th,
.sgpa-table td {
  padding: 10px 5px;
  text-align: center;
  font-size: 15px;
  color: #000;
  vertical-align: middle;
}

.sgpa-table td {
  border-top: 0.5px solid #0000001c;
  background: transparent;
}

.sgpa-table th {
  color: #000;
  font-weight: 600;
}

.sgpa-summary-row td {
    color: #000;
}

.sgpa-table tr:nth-child(even):not(:last-child) {
    background: #66666605;
}


.sgpa-summary-row {
  font-weight: bold;
}

/* ---------------------------------
   SGPA Final Summary
----------------------------------- */
.scroll-box-final {
  overflow: auto;
}

.sgpa-final {
  display: flex;
  margin-top: 30px;
  font-weight: bold;
  justify-content: center;
  min-width: 710px;
  margin-bottom: 30px;
  align-items: center;
  gap: 20px;
}

.sgpa-final p {
  margin: 0;
}

.card-box-final {
  background: #24d9240a;
  color: green;
  border: 2px solid green;
  padding: 6px 8px;
  border-radius: 5px;
}

.sgpa-student-info p {
  color: #000;
  font-size: 15px;
  margin: 4px 0;
}

/* ---------------------------------
   Notes Section
----------------------------------- */
.note-message-accuracy {
  font-size: 15px;
  text-align: justify;
}

.note-message-accuracy strong {
  color: red;
}

/* ---------------------------------
   Formula Display
----------------------------------- */
.sgpa-formula-block {
  overflow-x: auto;
  margin-top: 25px;
  white-space: nowrap;
  color: #000;
  font-size: 17px;
}

.sgpa-formula-block strong {
  font-size: 20px;
}

.formula-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 10px;
  margin-top: 0.5rem;
}

.fraction {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.fraction .top {
  border-bottom: 1.5px solid #000;
  padding: 0.1rem 0.1rem;
}

.fraction .bottom {
  padding: 0.1rem 0.1rem;
}

.symbol {
  font-size: 1.3rem;
}

/* ---------------------------------
   Responsive Adjustments
----------------------------------- */
@media only screen and (max-width: 768px) {
  .calculate-sgpa-box button {
    width: 100%;
  }
}

@media only screen and (max-width: 499px) {
  #subjects label,
  .student-name-box label,
  .student-usn-box label,
  .choose-scheme-box label,
  #branch-wrapper label,
  #semester-wrapper label {
    font-size: 15px;
  }

  .note-message-accuracy {
    font-size: 14px;
  }

  .student-details-heading-h4,
  .core-subjects-heading {
    font-size: 18px;
  }
}

@media only screen and (max-width: 349px) {
  .student-details-heading-h4,
  .core-subjects-heading {
    font-size: 17px;
  }

  .sgpa-heading {
    font-size: 1.6em;
  }

  .sgpa-student-info p {
    font-size: 13px;
  }

  #post-6654 h1 {
    font-size: 24px;
  }

  .sgpa-result-actions {
    flex-direction: column;
  }
}

/* SGPA PDF Popup Modal Styles */
.sgpa-pdf-popup-model-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sgpa-pdf-popup-model-wrapper.show {
    opacity: 1;
    pointer-events: all;
}

.sgpa-pdf-popup-model-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.sgpa-pdf-popup-model-content {
    position: relative;
    background: repeating-linear-gradient(33deg, #fffffff0 0px 0px, #ffffff 21px 25px);
    padding: 25px 20px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.sgpa-pdf-popup-model-wrapper.show .sgpa-pdf-popup-model-content {
    transform: translateY(0);
}

/* Icon */
.sgpa-pdf-popup-model-icon {
    margin-bottom: 15px;
}

.sgpa-pdf-popup-model-icon i {
    font-size: 50px;
    color: green;
}

.sgpa-pdf-popup-model-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #000;
}

.sgpa-pdf-popup-model-message {
    font-size: 14px;
    margin-bottom: 20px;
    color: #000;
}

.sgpa-pdf-popup-model-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sgpa-pdf-popup-btn-confirm {
    padding: 10px 22px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
	box-shadow:rgba(9,30,66,.25) 0px 1px 1px,rgba(9,30,66,.13) 0px 0px 1px 1px;
    font-size: 16px;
    background-color: #6200ee;
    color: white;
    transition: box-shadow 0.2s ease;
}

.sgpa-pdf-popup-btn-confirm:hover {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6200ee;
}

.sgpa-pdf-popup-btn-cancel {
    padding: 10px 22px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
	box-shadow: rgba(9,30,66,.25) 0px 1px 1px,rgba(9,30,66,.13) 0px 0px 1px 1px;
    font-size: 16px;
    background-color: #f44336;
    color: white;
    transition: box-shadow 0.2s ease;
}

.sgpa-pdf-popup-btn-cancel:hover {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f44336;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .sgpa-pdf-popup-model-content {
        padding: 20px 15px;
    }
    .sgpa-pdf-popup-btn-confirm,
    .sgpa-pdf-popup-btn-cancel {
        width: 100%;
    }
}