html, body {
  height: 100%;
  margin: 0;
  /* overflow-x: hidden; */
}

/* =========================
   Navbar / UI
   ========================= */
.navbar .navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.ui-autocomplete {
  z-index: 9999;
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  min-height: 200px;
  overflow-x: hidden;
  white-space: nowrap;
}


footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* =========================
   Knappar
   ========================= */
.rosa-knapp {
  background-color: #701c4a;
  color: #fff;
  border: 2px solid #5e183f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.rosa-knapp:hover {
  background-color: #851e56;
  color: #fff;
  border: 2px solid #5e183f;
}

.rosa-knapp:active {
  background-color: #a1266e !important;
  border: 2px solid #5e183f !important;
  transform: scale(0.99) translateY(1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.rosa-knapp:disabled,
.rosa-knapp.disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: #3a1a2b !important;
  border-color: #2c0f21 !important;
  color: #888 !important;
}

.btn-bd-primary {
  --bd-violet-bg: #701c4a;
  --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--bd-violet-bg);
  --bs-btn-border-color: var(--bd-violet-bg);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: #851e56;
  --bs-btn-hover-border-color: #5e183f;
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: #701c4a;
  --bs-btn-active-border-color: #701c4a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.bi {
  vertical-align: -.125em;
  fill: currentColor;
}

/* =========================
   Avatar
   ========================= */
.avatar {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #701c4a;
  color: white;
  font-size: 24px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* =========================
   Dark theme – skuggor
   ========================= */
[data-bs-theme="dark"] .navbar,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modal,
[data-bs-theme="dark"] .step-active {
  box-shadow: 0 7px 14px 0 rgba(3, 15, 22, .6), 0 3px 6px 0 rgba(4, 6, 8, .25);
}

.modal-content {
  border-color: #1e1e27;
  box-shadow: 0 7px 14px 0 rgba(3, 15, 22, .6), 0 3px 6px 0 rgba(8, 6, 4, 0.25);
}

[data-bs-theme="dark"] .form-control {
  background-color: #f8f9fa !important;
  color: #212529 !important;
  border-color: #ced4da !important;
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: rgba(33, 37, 41, 0.6);
}

[data-bs-theme="dark"] .input-group-text,
[data-bs-theme="dark"] .popover-header {
  background-color: #701c4a;
  border: 1px solid #ffffff;
  border-top-right-radius: 0.375rem !important;
  border-bottom-right-radius: 0.375rem !important;
}

/* =========================
   Step indicator
   ========================= */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.step-line {
  flex-grow: 1;
  height: 1px;
  background-color: #ddd;
  transition: 0.3s;
  z-index: 1;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
  border: 2px solid #999;
  transition: all 0.5s ease-in-out;
}

.step-active {
  background-color: #701c4a;
  color: #fff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.help-icon {
  font-size: 16px;
  cursor: pointer;
  margin-left: 5px;
}

/* =========================
   Gender options
   ========================= */
.gender-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
}

.gender-option input {
  display: none;
}

.gender-option .step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 5px;
  transition: 0.3s;
}

.gender-option input:checked + .step-circle {
  background-color: #701c4a;
  color: #fff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* =========================
   Error box
   ========================= */
.error-box {
  position: fixed;
  top: 20px;
  right: -300px;
  width: 280px;
  padding: 15px;
  background-color: #851e56;
  color: white;
  text-align: center;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 7px 14px 0 rgba(3, 15, 22, .6), 0 3px 6px 0 rgba(4, 6, 8, .25) !important;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  z-index: 999;
}

.error-box.show {
  transform: translateX(-320px);
}

.error-box.hide {
  transform: translateX(0);
  opacity: 0;
}

.ui-autocomplete-header {
  padding: 8px 12px;
  background-color: #701c4a;
  border-bottom: 2px solid #5e183f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  color: #fff;
  font-size: 0.9em;
  font-weight: bold;
  pointer-events: none;
}

.ui-autocomplete-header .header-title {
  padding: 4px 0;
}

/* =========================
   Chat messages (om du använder dem här)
   ========================= */
.user-message {
  text-align: right;
  background-color: #0d6efd;
  color: #e2e3e5;
  margin: 5px;
  padding: 5px 10px;
  border-radius: 0.375rem;
}

.bot-message {
  text-align: left;
  background-color: #e2e3e5;
  color: #41464b;
  margin: 5px;
  padding: 5px 10px;
  border-radius: 0.375rem;
}

[data-bs-theme="dark"] .chatbox {
  box-shadow: 0 7px 14px 0 rgba(3, 15, 22, .6), 0 3px 6px 0 rgba(4, 6, 8, .25);
}

[data-bs-theme="dark"] .chatbox-header {
  background-color: #701c4a;
}

/* =========================
   Responsivt
   ========================= */
@media (max-width: 768px) {
  .card {
    margin-bottom: 15px;
  }
}

/* ==========================================
   Swingersdate — Post actions (tema-säkert)
   ========================================== */

/* Basram för actions-raden */
.post-actions{
  border-top: 0px solid rgba(0,0,0,0.08) !important;
}

/* Tema: mörkt */
[data-bs-theme="dark"] .post-actions{
  border-top-color: rgba(255,255,255,0.10) !important;
}

/* Knappstil (Facebook-känsla) */
.post-actions .post-action-btn{
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;

  padding: .55rem .25rem;
  font-size: .95rem;
  font-weight: 600;
  opacity: .82;
}

/* Hover-effekt per tema */
[data-bs-theme="light"] .post-actions .post-action-btn:hover{
  background: rgba(0,0,0,0.04) !important;
  opacity: 1;
}

[data-bs-theme="dark"] .post-actions .post-action-btn{
  color: rgba(255,255,255,0.86) !important;
}

[data-bs-theme="dark"] .post-actions .post-action-btn:hover{
  background: rgba(255,255,255,0.06) !important;
  opacity: 1;
}

/* Disabled */
.post-actions .post-action-btn:disabled{
  opacity: .45 !important;
  cursor: not-allowed !important;
}

/* Ikon + text lite tightare */
.post-actions .action-icon{
  font-size: 1.05rem;
  margin-right: .35rem;
  opacity: .9;
}
.post-actions .action-label{
  font-size: .95rem;
}

/* ==============================
   ✅ ACTIVE: Gillad (ENDAST EN)
   ============================== */
.post-actions .post-action-btn.is-active{
  background-color: var(--bs-primary) !important;
  color: #fff !important;
  opacity: 1 !important;
}

.post-actions .post-action-btn.is-active .action-icon,
.post-actions .post-action-btn.is-active .action-label{
  color: #fff !important;
  opacity: 1 !important;
}

.post-actions .post-action-btn.is-active:hover{
  filter: brightness(0.95);
}
