html, body {
  height: 100%;
  margin: 0;
  color: #f1f1f1;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1;
}

/* Navbar */
nav.navbar {
  background-color: #2b0e2b;
  border-bottom: 2px solid #ff69b4;
  border-radius: 0 0 15px 15px; /* round bottom corners */
  padding-top: 0rem;
  padding-bottom: 0rem;
}


.navbar-brand {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  color: #ff69b4 !important;
}

/* Links */
a {
  color: #ff69b4;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: #ff1493;
  text-decoration: underline;
  outline: none;
}

/* Footer */
footer {
  background-color: #2b0e2b;
  border-top: 2px solid #ff69b4;
  color: #ddd;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  border-radius: 15px 15px 0 0; /* round top corners */
}

/* Forms */
.form-with-validation {
  background-color: #1a1a1a;
  border: 1px solid #ff69b4;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px #ff69b4;
  max-width: 900px;
  margin: 2rem auto;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.form-with-validation input,
.form-control.bg-dark,
.form-with-validation select,
.form-with-validation textarea {
  background-color: #2a2a2a;
  border: 1px solid #555;
  color: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 4px;
}

.form-with-validation input:focus,
.form-control.bg-dark:focus,
.form-with-validation select:focus,
.form-with-validation textarea:focus {
  border-color: #ff69b4;
  box-shadow: 0 0 8px #ff69b4;
  background-color: #2c2c2c;
  color: #fff;
  outline: none;
}

.form-with-validation .row > div[class*="col-"] {
  margin-bottom: 1rem;
}

.form-submit {
  background: linear-gradient(45deg, #ff1493, #ff69b4);
  border: none;
  color: white;
  padding: 0.75rem;
  width: 100%;
  font-weight: bold;
  border-radius: 5px;
  box-shadow: 0 0 10px #ff69b4;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 1rem;
}

.form-submit:hover,
.form-submit:focus {
  box-shadow: 0 0 20px #ff69b4;
  background: linear-gradient(45deg, #ff69b4, #ff1493);
  outline: none;
}

.form-check {
  margin-bottom: 1rem;
  color: #ddd;
}

.form-check-label {
  cursor: pointer;
  font-size: 1.2rem;
  user-select: none;
}

.form-switch {
  padding-left: 3rem;
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  vertical-align: middle;
}

.form-switch > input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.form-switch > input[type="checkbox"] + .form-check-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 34px;
  background-color: #555;
  border-radius: 34px;
  transition: background-color 0.3s ease;
}

.form-switch > input[type="checkbox"] + .form-check-label::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.form-switch > input[type="checkbox"]:checked + .form-check-label::before {
  background-color: #ff69b4;
}

.form-switch > input[type="checkbox"]:checked + .form-check-label::after {
  transform: translateX(26px);
}

.border-pink {
  border: 2px solid #ff69b4;
}

.text-pink {
  color: #ff69b4 !important;
  font-weight: 600;
}

.btn {
  display: inline-block;
  font-size: 1.25rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}


.btn-outline-pink {
  border: 1px solid #ff69b4;
  color: #ff69b4;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-pink:hover,
.btn-outline-pink:focus {
  background-color: #ff69b4;
  color: white;
  outline: none;
}

.mb-3 { margin-bottom: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.text-center { text-align: center !important; }

.container {
  max-width: 90vw;
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0 auto;
}

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.min-vh-100 { min-height: 100vh !important; }

.card.shadow {
  background-color: #1e1e1e;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
  border-radius: 12px;
  color: #fff;
}

.text-danger {
  color: #ff4fc1 !important;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Interest bubbles - updated to be more rounded and larger padding */
.interest-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.interest-bubble {
  background-color: transparent;
  border: 2px solid #ff69b4;
  border-radius: 9999px; /* fully pill-shaped */
  color: #ff69b4;
  padding: 0.5rem 1.2rem; /* bigger padding for nicer bubble shape */
  font-size: 1rem;
  user-select: none;
  cursor: default;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-fullscreen {
    flex-direction: column;
    height: auto;
  }

  .profile-photo {
    height: 40vh;
  }

  .profile-info {
    padding: 2rem;
    font-size: 1rem;
  }

  .interest-bubble {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

/* Close button inside popup: keep it fully visible and inside the popup */
#profile-popup .btn-close {
  position: absolute;
  top: 1rem !important;
  right: 1rem !important;
  z-index: 1100;
  box-shadow: 0 0 8px rgba(0,0,0,0.7);
  background-color: #ff69b4;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  opacity: 1;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#profile-popup .btn-close:hover {
  background-color: #ff1493;
}

.border-pink {
  border-color: #ff69b4 !important; /* pink */
  color: #ff69b4 !important;        /* pink text */
}

/* Dark themed dropdown menu for profile photo in navbar */
.dropdown-menu {
  background-color: #2b0e2b !important; /* dark purple like navbar */
  border: 1px solid #ff69b4 !important; /* pink border */
  box-shadow: 0 0 10px #ff69b4cc !important; /* subtle pink glow */
}

.dropdown-menu .dropdown-item {
  color: #ff69b4 !important; /* pink text */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #ff69b4 !important; /* pink background */
  color: #2b0e2b !important; /* dark text */
  outline: none;
}

.dropdown-menu .dropdown-divider {
  border-top: 1px solid #ff69b4;
}

.dropdown-menu .dropdown-item.text-danger {
  color: #ff4fc1 !important; /* slightly different pink/red */
}

.dropdown-menu .dropdown-item.text-danger:hover,
.dropdown-menu .dropdown-item.text-danger:focus {
  background-color: #ff4fc1 !important;
  color: #2b0e2b !important;
}

/* Chat window background */
.chat-card {
  height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: rgba(43, 14, 43, 0.85); /* dark purple with alpha */
  border: 2px solid #ff69b4;
  border-radius: 16px;
  box-shadow: 0 0 20px #ff69b4aa;
}

.chat-bubble-left,
.chat-bubble-right {
  padding: 1rem 1.8rem;
  max-width: 70%;
  font-size: 1.2rem;
  border-radius: 2rem;
  color: white;
  background: linear-gradient(135deg, #ff69b4, #8a2be2); /* pink to purple gradient */
  box-shadow: 0 0 12px rgba(255, 105, 180, 0.7);
  word-wrap: break-word;
  line-height: 1.4;
}

.chat-bubble-left {
  border-bottom-left-radius: 0;
  align-self: flex-start;
  background: linear-gradient(135deg, #ffffff, #dcdcdc);
  color: #333;
  box-shadow: 0 0 10px rgba(200, 200, 200, 0.5);
  position: relative;
}

.chat-bubble-left-tail {
  margin-right: -8px;
  margin-bottom: 8px;
  fill: white;
}

.chat-bubble-right {
  border-bottom-right-radius: 0;
  align-self: flex-end;
}

li.flex {
  list-style-type: none;
}

/* Send button */
.send-btn {
  border: none;
  background: linear-gradient(45deg, #ff69b4, #d84eea);
  color: white;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  border-radius: 999px;
  box-shadow: 0 0 10px #ff69b4aa;
  transition: all 0.2s ease;
  cursor: pointer;
}

.send-btn:hover,
.send-btn:focus {
  background: linear-gradient(45deg, #d84eea, #ff69b4);
  box-shadow: 0 0 14px #ff69b4ee;
  outline: none;
}
