/* User Profile & Auth Modal Styles */
/* Extracted from templatemo-edu-meeting.css */

.user-profile {
  position: relative;
}

/* Header Main Styles for Parallel Layout */
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 20px;
}

.header-content {
  text-align: center;
  flex: 1;
}

.header-content h1 {
  font-size: 2.5rem !important;
  margin-bottom: 0.2rem !important;
  font-weight: 800;
}

.header-content .subtitle {
  font-size: 1rem !important;
  color: #cccccc;
  margin: 0;
}

.back-button-container,
.user-profile-container {
  flex-shrink: 0;
  min-width: 120px;
  display: flex;
  align-items: center;
}

.user-profile-container {
  justify-content: flex-end;
}

@media (max-width: 992px) {
  .header-content h1 {
    font-size: 2rem !important;
  }
}

@media (max-width: 768px) {
  .header-main {
    flex-direction: column;
    gap: 15px;
    padding-bottom: 2rem;
  }

  .header-content {
    order: -1;
    /* Keep title at top or middle? Usually back btn at top left. */
  }

  .back-button-container,
  .user-profile-container {
    width: 100%;
    justify-content: center;
    min-width: auto;
  }
}


#user-menu-toggle {
  width: 36px;
  height: 36px;
  background-color: #00a651;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  outline: none;
}

#user-menu-toggle:hover {
  background-color: #d63384;
  transform: scale(1.1);
}

#user-menu-toggle.logged-in {
  background-color: #007bff;
}

#user-menu-toggle.logged-in:hover {
  background-color: #0056b3;
}

#user-menu-toggle i {
  color: #fff;
  font-size: 18px;
}

.user-dropdown {
  position: absolute;
  top: 120%;
  /* Adjusted for spacing */
  right: 0;
  background-color: #fff;
  width: 150px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  margin-top: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: block;
  padding: 12px 20px;
  color: #2a2a2a !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border-bottom: 1px solid #eee;
}

.user-dropdown a:last-child {
  border-bottom: none;
}

.user-dropdown a:hover {
  background-color: #f7f7f7;
  color: #00a651 !important;
  padding-left: 25px !important;
}

/* Auth Modal Styling */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.auth-modal.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-content {
  background-color: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transform: scale(0.8);
  transition: all 0.4s;
  text-align: center;
}

.auth-modal.active .auth-modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #7a7a7a;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #d63384;
}

.auth-modal-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1f272b;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-form input {
  width: 100%;
  height: 45px;
  background-color: #f7f7f7;
  border: none;
  border-radius: 22.5px;
  padding: 0 20px;
  margin-bottom: 20px;
  font-size: 14px;
  outline: none;
  color: #333;
}

.auth-form button {
  width: 100%;
  height: 45px;
  background-color: #00a651;
  color: #fff;
  border: none;
  border-radius: 22.5px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-form button:hover {
  background-color: #d63384;
}

.auth-links {
  margin-top: 25px;
  text-align: center;
}

.auth-links p {
  font-size: 13px;
  color: #7a7a7a;
  margin-bottom: 5px;
}

.auth-links a {
  color: #00a651 !important;
  font-weight: 600;
  text-decoration: none;
}

.auth-links a.forgot-pw-link {
  font-size: 13px;
  display: block;
  margin-top: 10px;
}

.auth-modal-p {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}


/* Responsive */
@media (max-width: 767px) {
  .auth-modal-content {
    width: 90%;
    padding: 30px 20px;
  }

  .auth-modal-content h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
}

/* Donate Tooltip Styles for Footer */
.footer-btn.donate {
  position: relative;
}

.donate-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  background: rgba(31, 39, 43, 0.98);
  border: 1px solid #d63384;
  border-radius: 15px;
  padding: 20px;
  color: #fff;
  font-size: 13px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  pointer-events: none;
  line-height: 1.5;
}

.footer-btn.donate:hover .donate-tooltip {
  opacity: 1;
  visibility: visible;
  bottom: 140%;
}

.donate-tooltip strong {
  display: block;
  color: #d63384;
  font-size: 15px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(214, 51, 132, 0.3);
  padding-bottom: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.donate-tooltip p {
  color: #e0e0e0;
  margin-bottom: 12px;
  font-weight: 400;
}

.donate-tooltip em {
  font-style: italic;
  color: #00a651;
  display: block;
  font-weight: 500;
  margin-top: 10px;
}

/* Add a small arrow to the tooltip */
.donate-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: #d63384 transparent transparent transparent;
}