body {
  background-color: #fdfdfd;
  font-family: Arial, sans-serif;
}


/* 🌍 Globale moderne Scrollbar – helles Design */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

/* Optional: Vorbereitung für Dark Mode */
body.dark ::-webkit-scrollbar-thumb {
  background-color: #666;
}
body.dark * {
  scrollbar-color: #666 transparent;
}

#cropModal {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px; /* vorher 500px → jetzt schmaler */
  width: 100%;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#cropAreaWrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.cropper-circle-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: white;
}

.cropper-circle-overlay img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: move;
}

.circle-mask {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

#cropHint {
  margin: 10px auto;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  max-width: 200px;
}


#zoomSlider {
  width: 90%;
  margin: 15px auto;
  display: block;
}

.crop-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

#cropConfirmBtn,
#cropCancelBtn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

#cropConfirmBtn {
  background-color: #27ae60;
  color: white;
}

#cropCancelBtn {
  background-color: #ccc;
  color: #333;
}

.cropper-container .cropper-face {
  cursor: move !important;
}
.cropper-container .cropper-drag-box {
  cursor: default !important;
}

.profile-picture-large,
#profileImagePreview {
  width: 350px;              /* oder deine Zielgröße */
  height: 350px;             /* muss identisch zur Breite sein */
  border-radius: 50%;
  object-fit: cover;         /* wichtig! */
  display: block;
}

.profile-picture-medium {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #fff;
  cursor: pointer; /* Finger-Cursor statt Lupe */
  margin-bottom: 10px;
}

.profile-picture-small {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #fff;
  cursor: pointer; /* Finger-Cursor statt Lupe */
  margin-bottom: 10px;
}

/* Lightbox Overlay */
#lightboxOverlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

#lightboxOverlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

#lightboxClose {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-info {
  flex: 1;
}

.user-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.user-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  width: 260px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  text-align: center;
}

#giftModal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
#giftModal .modal {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
}
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 15px;
  margin: 20px 0;
}
.gift-option {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
  width: 90px;
  height: 90px;
}
.gift-option:hover {
  background: #e1bee7;
}

/* Drag&Drop-Zone rund ums Profilbild */
.profile-drop {
  position: relative;
  display: inline-block;
}

/* Beim Drüberziehen hervorheben + Hinweis */
.profile-drop.dragover {
  outline: 2px dashed #2563eb;
  outline-offset: 8px;
  border-radius: 16px;
}
.profile-drop.dragover::after {
  content: "Bild hier ablegen";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45);
  color: #fff; font-weight: 600;
  border-radius: 16px;
}

/* === Flirttext-Card (12px, farbig, etwas höher) === */
.flirt-card{
  width:350px; max-width:100%;
  margin-top:14px;
  background: linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);
  border:1px solid #dbeafe;           /* helles Blau wie Galerie-Akzent */
  border-radius:12px;
  box-shadow: 0 6px 18px rgba(37,99,235,.06);
  padding:12px 14px;
  min-height:120px;                    /* etwas höher */
  transition: box-shadow .2s ease, transform .08s ease;
}
.flirt-card:hover{ box-shadow:0 10px 22px rgba(37,99,235,.10); transform:translateY(-1px); }

.flirt-card-header{
  display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px;
}
.flirt-card-title{
  font-size:15px; font-weight:700; margin:0; color:#0f172a; display:flex; align-items:center; gap:8px;
}
.flirt-card-title::before{ content:"💬"; font-size:16px; }

/* Anzeigezustand */
#flirttextView{
  padding:10px 12px;
  line-height:1.5; color:#374151; word-break:break-word;
  background:#f9fbff; border:1px solid #e6eefc; border-radius:10px;
  min-height:56px; display:flex; align-items:center;
}
#flirttextView.is-empty{
  color:#6b7280; font-style:italic;
  background:#f8fafc; border-color:#e5e7eb;
}

/* Edit-Button (oben rechts) */
.ft-btn-edit{
  background:#eff6ff; border:1px solid #c7d2fe; color:#1d4ed8;
  padding:6px 10px; border-radius:8px; font-size:13px; cursor:pointer;
}
.ft-btn-edit:hover{ background:#dbeafe; }

/* Editor-Form */
.ft-form input[type="text"]{
  width:100%; font-size:14px; padding:8px 10px;
  border:1px solid #e0e0e0; border-radius:8px; outline:none;
}
.ft-form input[type="text"]:focus{
  border-color:#c7d2fe; box-shadow:0 0 0 3px rgba(99,102,241,.15);
}
.ft-actions{ margin-top:6px; display:flex; align-items:center; justify-content:space-between; }
#ftCount{ color:#6b7280; }
.ft-buttons{ display:flex; gap:8px; }
.ft-btn-save,.ft-btn-cancel{
  font-size:13px; padding:6px 10px; border-radius:8px; border:1px solid transparent; cursor:pointer;
}
.ft-btn-save{ background:#4f46e5; color:#fff; }
.ft-btn-save[disabled]{ opacity:.6; cursor:not-allowed; }
.ft-btn-cancel{ background:#f6f7fb; border-color:#e5e7eb; color:#333; }
.ft-msg{ margin-top:6px; font-size:12px; color:#0a7a33; }
.ft-msg.error{ color:#b91c1c; }

/* Mobile */
@media (max-width:640px){
  .flirt-card{ width:100%; }
}



