/* Login Section Start */
.login-container {
  max-width: 480px;
  margin: 1% auto;
  padding: 2rem;
}

.form-control-user {
  border-radius: 30px;
  padding: 1.8rem;
  font-size: 1.3rem;
}

.btn-user {
  border-radius: 30px;
  padding: 1rem;
  font-weight: 600;
  font-size: 1.3rem;
}

.login-heading {
  font-weight: 700;
  color: #343a40;
}

.custom-control-label {
  cursor: pointer;
  font-size: 1.15rem;
  color: #495057;
  user-select: none;
}

.custom-control-input:checked~.custom-control-label {
  font-weight: 500;
  transform: scale(1.15);
  color: #2f3293;
}

.signup {
  font-size: 1.25rem;
  /* ~20px */
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
}

.signup:hover {
  text-decoration: underline;
  color: #2f3293;
}


/* Dropdown section On Home Navdar */
.dropdown-menu .dropdown-item {
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  margin: 4px 8px;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f0f4ff;
  color: #0056b3;
}

.dropdown-menu .logout-item:hover {
  background-color: #ffecec;
  color: #c82333;
}

.dropdown-menu .profile-item:hover {
  background-color: #e7f5ff;
  color: #0066cc;
}

/* Mobile Menu Navdar  */
/* Extend from main.js */
.slicknav-auth {
  padding-top: 15px;
}

/* Cognitive Tests grid Section Start */
.test-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 60px;
}

.test-card {
  background: linear-gradient(135deg, #f0f8ff, #e6f0ff);
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  width: 100%;
  max-width: 350px;
  position: relative;
  overflow: hidden;
}

.test-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

.test-icon {
  font-size: 52px;
  color: #0d6efd;
  margin-bottom: 20px;
  animation: floatIcon 2.5s ease-in-out infinite;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.test-card h4 {
  font-family: fontCogRobotoLight;
  font-size: 2.5rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 15px;
}

.test-card p {
  font-size: 1.7rem;
  font-family: fontCogRobotoNormal;
  font-weight: 300;
  color: #000000;
  margin-bottom: 20px;
}

.test-card button.btn {
  background: linear-gradient(120deg, #0d6efd, #6610f2);
  background-size: 175% auto;
  background-position: left center;
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background-position 0.4s ease;
}

.test-card button.btn:hover {
  background-position: right center;
  transform: scale(1.05);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}

@media screen and (max-width: 768px) {
  .test-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Cognitive Tests grid Section End */


/* Psychology Tests (PHQ-9, GAD-7, ASRS-v1.1, VAS) Section Start */
#phq9Modal,
#gad7Modal,
#asrsModal,
#vasModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  animation: zoomIn 0.4s ease-out;
  animation: fadeIn 0.3s;
  transform: none;
  zoom: 100%;
  font-size: 100%;
}

#Content {
  font-family: Helvetica, sans-serif;
  background: linear-gradient(135deg, #f0f8ff, #e6f0ff);
  margin: 5vh auto;
  max-width: 90vw;
  padding: 20px;
  border-radius: 8px;
  overflow-y: auto;
  max-height: 92vh;
  box-sizing: border-box;
  transition: all 0.3s ease;
  position: relative;
}

#Content h2 {
  font-family: Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: black;
  text-align: center;
}

#Content h3 {
  font-family: Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 15px;
  color: black;
  text-align: center;
}

#Content p {
  font-family: Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #1f2b7b;
  text-align: center;
  margin-bottom: 20px;
}

.close-icon-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  display: inline-block;
}

.close-icon {
  font-size: 25px;
  font-weight: bold;
  color: #1f2b7b;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1000;
}

.close-icon:hover {
  color: #ff0000;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  right: 40px;
  background-color: #1f2b7b;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  z-index: 1001;
}

.close-icon-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background-color: #303394;
  color: white;
  padding: 10px 8px;
  text-align: center;
  font-weight: 550;
  border-right: 1px solid #ffffff;
}

.table td {
  color: black;
  padding: 5px 10px;
  text-align: left;
  font-weight: 500;
  border-bottom: 1px solid #000000;
  border-right: 1px solid #000000;
}

.table th,
td:not(:first-child) {
  padding-left: 5px;
  padding-right: 5px;
  text-align: center;
}

.table tr:first-child {
  background-color: #f8f9fa;
}

.table tr:nth-child(even) {
  background-color: #bebff3;
}

.table tr:hover {
  background-color: #d7e4f5;
}

input[type="radio"] {
  transform: scale(1);
  accent-color: #303394;
  cursor: pointer;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.submit {
  font-family: Helvetica, sans-serif;
  margin-top: 10px;
  margin-bottom: 8px;
  margin-left: 8px;
  padding: 8px 18px;
  background: #12486b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-close {
  font-family: Helvetica, sans-serif;
  margin-top: 10px;
  margin-bottom: 8px;
  margin-right: 8px;
  background: red;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit:hover,
.btn-close:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#phq9Result,
#gad7Result,
#asrsResult,
#vasResult {
  margin-top: 20px;
  font-weight: bold;
  font-size: 18px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}

/* Mobile Responsive */
@media (max-width: 500px) {

  body,
  #Content,
  .table,
  .table th,
  .table td,
  .submit,
  .btn-close,
  #phq9Result,
  #gad7Result,
  #asrsResult,
  #vasResult {
    font-size: 16px;
  }

  .table {
    font-size: 16px;
  }

  .submit,
  .btn-close {
    padding: 12px 20px;
  }

  .table th,
  .table td {
    padding: 12px 8px;
  }
}

/* Psychology Test Section End */