/* Utility Classes */
.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.bg-gray-100 {
  background-color: #f7fafc;
}

.text-gray-800 {
  color: #2d3748;
}

.text-white {
  color: #fff;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5);
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.max-w-full {
  max-width: 100%;
}

.p-6 {
  padding: 1.5rem;
}

.shadow-md {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hover\:text-blue-500:hover {
  color: #3b82f6;
}

/* Flexbox helpers */
.flex {
  display: flex;
}

.absolute {
  position: absolute;
}

.left-1\/2 {
  left: 50%;
}

.transform {
  transform: translateX(-50%);
}

/* Layout */
body {
  font-family: "Poppins", sans-serif;
}

aside nav ul {
  list-style: none;
  padding-left: 0;
}

aside nav ul li {
  margin-bottom: 0.5rem;
}

/* Submenus */
aside nav ul ul {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
  margin-left: 1rem;
  padding-left: 0;
  gap: 0.5rem;
}

aside nav ul ul ul {
  margin-left: 1rem;
}

aside nav ul ul li {
  margin-bottom: 0.3rem;
}

aside nav ul ul button,
aside nav ul > li > button {
  background: none;
  border: none;
  color: #333;
  padding: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font: inherit;
}

aside nav ul ul button:hover,
aside nav ul > li > button:hover {
  color: #3b82f6;
}

/* Modal / Popup Styles */
.popup-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

#popupWrapper {
  display: none;
}

.popup-card {
  background: #fff;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow-y: auto;
  padding: 1rem;
}

.card-header {
  padding: 1rem;
  padding-right: 3rem;
  border-bottom: 1px solid #ccc;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 1rem;
}

.scrollable {
  max-height: 70vh;
  overflow-y: auto;
}

.btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #000;
  opacity: 0.6;
  cursor: pointer;
}
 .profile-card {
    max-width: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    padding: 30px 35px;
    margin: 50px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  .profile-header {
    text-align: center;
    margin-bottom: 35px;
    color: #2c3e50;
  }
  .profile-header h4 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 6px;
  }
  .profile-header small {
    font-size: 0.9rem;
    color: #7f8c8d;
  }
  .profile-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0; /* increased spacing for better separation without lines */
  }
  .profile-label {
    font-weight: 600;
    color: #34495e;
    flex-basis: 40%;
  }
  .profile-value {
    color: #2c3e50;
    font-weight: 500;
    flex-basis: 55%;
    text-align: left;
    word-break: break-word;
  }
  @media (max-width: 576px) {
    .profile-row {
      flex-direction: column;
      align-items: flex-start;
      padding: 14px 0;
    }
    .profile-label {
      flex-basis: 100%;
      margin-bottom: 4px;
    }
    .profile-value {
      flex-basis: 100%;
      text-align: left;
    }
  }

  .btn-close-white {
    filter: invert(1) brightness(200%) contrast(200%);
  }