:root{
    --primary-color: #7057FF;
    --bg-color: #F9F9FF;
    --secondary-color: #9F8FFF;
    --Roboto:: 'Roboto', sans-serif;
    --Pacifico: "Pacifico", sans-serif;
    --white-bg: #fff;
    --green-bg: #4caf50;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9ff;
}
.version{
  font-family: var(--Pacifico);
  color: var(--primary-color);
  font-size: 3.5rem;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header-animation {
    animation: fadeInDown 0.8s ease-out;
}

.card-animation {
    animation: fadeInUp 0.8s ease-out;
}

.row-animation {
    animation: fadeIn 0.5s ease-out;
}

.result-animation {
    animation: slideInRight 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* notofications */
.notification {
    position: fixed;
    top: 4rem; 
    right: 18rem;
    padding: 0.75rem 1.5rem; /* Equivalent to px-6 py-3 */
    border-radius: 0.5rem; /* Equivalent to rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Equivalent to shadow-lg */
    z-index: 50; /* Equivalent to z-50 */
    transform: translateX(100%); /* Equivalent to translate-x-full */
    transition: transform 0.3s ease-in-out; /* Equivalent to transition-all duration-300 */
  }
  
  .notification-content .icon-container {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5rem;
  }

  .header-container {
    display: flex;               
    align-items: center;
    justify-content: flex-start; 
    position: fixed;
    top: 0;
    width: 100%;
    height: 3.5rem;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
  }
  

.logo-text {
    font-weight: 700;
    background: linear-gradient(135deg, #7057FF, #9F8FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-family: var(--Pacifico);
}
.sub-logo{
    background: linear-gradient(135deg, var(--green-bg), #9F8FFF);
    color: #fff;
    font-size: 12px;
    border-radius:15px;
    font-family: var(--Roboto);
    margin-left: 12px;
    margin-top: 12px;
    height: 20px;
    padding: 4px 8px;
    text-align: center;
}

.logo-container {
  margin: 0 5px;               
  display: flex;
  align-items: center;         
}

.hero-container{
    width: 100%;
    height: 30vh;
    font-family: "Roboto", sans-serif;
    text-align: center;
}
.hero-container-text{
  margin-left: auto;
  margin-right: auto;
     
  
}
.hero-header{
    font-size: 1.875rem;
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}
.hero-header:hover{
    animation: slideInRight;
}
.hero-inner-text{
  color: #718096;      
  max-width: 42rem;    
  margin-left: auto;   
  margin-right: auto;  
}
/* USER CONTAINER */

.user-details {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .user-details{
    margin-top: -1rem;
  }
}
.user-details .section-title {
  font-family: var(--Pacifico);
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.user-details .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.user-details .form-group {
  display: flex;
  flex-direction: column;
}
.user-details .form-group .label {
  font-family: var(--Roboto);
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
  font-weight: 500;
}
.user-details .form-group input,
.user-details .form-group select {
  padding: 0.5rem;
  border: 1px solid var(--secondary-color);
  border-radius: 0.25rem;
  font-family: var(--Roboto);
  font-size: 1rem;
  background: var(--white-bg);
}
.user-details .form-group input:focus,
.user-details .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(112, 87, 255, 0.2);
}

/* GP SECTION */
.gp-container {
    max-width: 56rem;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    padding: 1.5rem;
    animation: slide-up 0.5s ease-out forwards;
  }
  @media (min-width: 768px) {
    .container {
      padding: 2rem;
    }
  }
  @keyframes slide-up {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .section-header {
    margin-bottom: 1.5rem;
  }
  .section-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2D3748;
    margin-bottom: 1rem;
  }
  .course-container {
    margin-bottom: 1rem;
  }
  .button-group {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background 0.3s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
  }
  .btn-primary {
    background:var(--primary-color);
    color: #ffffff;
  }
  .btn-primary:hover {
    background: var(--secondary-color);
  }
  .btn-calc {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    transition: background 0.3s;
    white-space: nowrap;
  }
  .btn-calc:hover {
    background: var(--secondary-color);
  }
  .btn-reset {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 0.375rem;
    transition: background 0.3s;
    white-space: nowrap;
  }
  .btn-reset:hover {
    background: #cbd5e0;
  }
  .icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
  }
  .result-card {
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    /* display: none; */
  }
  .grid {
    display: grid;
    gap: 1.5rem;
  }
  @media (min-width: 768px) {
    .grid-cols-2 {
      grid-template-columns: 1fr 1fr;
    }
  }
  .result-item {
    background: #f7fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
  }
  .text-center {
    text-align: center;
  }
  .text-gray {
    color: #718096;
    margin-bottom: 0.5rem;
  }
  .flex {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .gpa-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
  }
  .gpa-max {
    color: #a0aec0;
    margin-left: 0.25rem;
  }
  .progress-bar {
    height: 1.5rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
  }
  .gp-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 9999px;
  }
  .progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #a0aec0;
  }
  .result-details {
    margin-top: 1.5rem;
  }
  .detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }
  .detail-value {
    font-weight: 500;
  }
  .btn-save, .btn-export {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background 0.3s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
  }
  .btn-save {
    background: var(--primary-color);
    color: #ffffff;
  }
  .btn-save:hover {
    background: var(--secondary-color);
  }
  .btn-export {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--green-bg);
  }
  .btn-export:hover {
    background: #f7fafc;
  }
/* dynamic content styles */
.course-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
  }
  
  @media (min-width: 768px) {
    .course-row {
      grid-template-columns: repeat(12, minmax(0, 1fr));
    }
  }
  
.form-group {
    margin-bottom: 1rem;
  }
  select, input:focus {
    /* outline: none; */
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(112, 87, 255, 0.2);
  }
  .label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.25rem;
  }
  .course-code,
  .course-unit,
  .course-grade {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: #f9fafb;
    border: none;
    border-radius: 0.25rem;
  }
  .course-code:focus,
  .course-unit:focus,
  .course-grade:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3182ce;
  }
  .select-wrapper {
    position: relative;
  }
  .course-grade {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2rem;
  }
  .select-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: #cbd5e0;
  }
  .flex-end {
    display: flex;
    justify-content: flex-end;
  }
  .remove-course-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
  }
  .remove-course-btn:hover {
    color: #f56565;
  }
  .col-span-4 {
    grid-column: span 4 / span 4;
  }
  .col-span-3 {
    grid-column: span 3 / span 3;
  }
  .col-span-1 {
    grid-column: span 1 / span 1;
  }
  


  /* Grading scale */
  .grading-scale {
    max-width: 56rem;
    margin: 3rem auto 0;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    padding: 1.5rem;
    animation: slide-up 0.5s ease-out forwards;
  }
  @media (min-width: 768px) {
    .grading-scale {
      padding: 2rem;
    }
  }
  @keyframes slide-up {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .section-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 1rem;
  }
  .table-container {
    overflow-x: auto;
  }
  table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
  }
  .table-header {
    background-color: #f9fafb;
  }
  .table-cell {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #718096;
  }
  tbody tr + tr {
    border-top: 1px solid #e2e8f0;
  }

  #failure{
    background-color: rgb(247, 162, 162);
    color: #000;
  }
  #failure >td{
    color: #000;
  }
  #success{
    background-color: var(--green-bg);
    color: #000;
  }
  #success >td{
    color: #fff;
  }

  /* footer */

.footer {
  background-color: #1a202c;
  color: #ffffff;
  margin-top: 4rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.brand-title {
  font-size: 1.25rem;
  font-family: 'Pacifico', cursive;
  margin-bottom: 1rem;
}
.brand-description {
  color: #cbd5e0;
  margin-bottom: 1rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-link {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2d3748;
  border-radius: 50%;
  transition: background-color 0.3s;
  color: inherit;
  text-decoration: none;
}
.social-link:hover {
  background-color: #3182ce;
}
.contact-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
}
.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  margin-top: 0.125rem;
}
.contact-text {
  color: #cbd5e0;
}
.footer-bottom {
  border-top: 1px solid #2d3748;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}
.footer-copy {
  color: #cbd5e0;
  font-size: 0.875rem;
}
.footer-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .footer-links {
    margin-top: 0;
  }
}
.footer-link {
  color: #cbd5e0;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-link:hover {
  color: #ffffff;
}

