/* =======================
   Event Detail Modal
   ======================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


/* =======================
   Description box
   ======================= */
#modal-description {
    background-color: #fff8dc;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    white-space: pre-line; /* optional, falls Zeilenumbrüche wichtig sind */
}
#modal-description_alt {
    background-color: #f9f9f9;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    white-space: pre-line;
    font-size: 0.95em;
    line-height: 1.4;
    min-height: 50px;
}
/* =======================
   Description box
   ======================= */
#modal-report {
    background-color: #f9f9f9;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    white-space: pre-line; /* optional, falls Zeilenumbrüche wichtig sind */
}

/* =======================
   EDIT & SAVE
   ======================= */
.report-actions {
    margin-top: 6px;
}

.edit-btn {
    background-color: #28a745;
}

.save-btn {
    background-color: #ffc107;
    color: #333;
}




/* =======================
   Editierbare Eingaben
   ======================= */
.input-title {
    width: 100%;
    padding: 6px 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background-color: #f0f8ff;
    font-size: 14px;
}
.textarea-report, .textarea-description {
    width: 100%;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #aaa;
    margin-top: 5px;
    margin-bottom: 10px;
    background-color: #f0f8ff;
    font-size: 14px;
    resize: none;           /* Kein manuelles Ziehen */
    overflow-y: hidden;     /* Scrollbar vermeiden */
    box-sizing: border-box; /* Höhe korrekt berechnen */
}




/* =======================
   Photos
   ======================= */
.event-photo.highlight {
    border: 3px solid #ff9800;
    box-shadow: 0 0 6px rgba(255, 152, 0, 0.8);
}
/* highlight ausgewähltes Bild */
.event-photo.highlight-selected {
    border: 3px solid #007BFF; /* kräftiges Blau für Highlight */
    border-radius: 6px;        /* leicht abgerundete Ecken */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6); /* leichter Glow */
}




/* =======================
   event details
   ======================= */
.modal-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin: 10px 0;
    padding-top: 8px;
    border-top: 1px solid #ddd; /* ? HIER */
}

.modal-event-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.modal-event-actions button {
    white-space: nowrap;
}






.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 10000;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1001;
}

/* Body */
.modal-body {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.modal-dates p {
    margin: 0 0 10px 0;
    font-size: 0.95em;
}

.modal-participants {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.modal-participant {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-participant img.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Photos */
.modal-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.modal-photos img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ccc;
}









/* Freunde */
.friends-container {
    margin-top: 10px;
}

/* Buttons */
.modal-body button {
    padding: 6px 12px;
    margin-top: 5px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#editReportBtn {
    background-color: #28a745;
    color: #fff;
}

#editReportBtn:hover {
    background-color: #218838;
}

#saveReportBtn {
    background-color: #ffc107;
    color: #333;
}

#saveReportBtn:hover {
    background-color: #e0a800;
}