/* ===========================================================
   MAILBOX LAYOUT (mailbox.css)
   =========================================================== */

/* Gesamt‐Container als Grid mit festen Spalten
   200px | 400px | Rest */
/* ===========================================================
   MAIN LAYOUT (mailbox.css)
   =========================================================== */
.bolist-mailbox {
  display: grid;
  grid-template-columns: 200px 400px 1fr;
  grid-gap: 16px;
  /* Falls du lieber padding statt gap verwenden willst:
  padding: 0 16px;
  */
}

/* 1. Spalte: Filterleiste */


/* 2. Spalte: Nachrichten-Liste */
#bolist-list {
  /* explizit 400px breit */
  width: 100%;  /* da die Spalte ja schon 400px ist */
  overflow-y: auto;
}

/* 3. Spalte: Detail-Panel */
#bolist-panel {
  /* nimmt den Rest ein */
  width: 100%;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Kleine Rest-Styling-Anpassungen */
.filters-list,
.items-list,
.bolist-thread {
  background: #fff;
  border-radius: 8px;
}

/* Beispiel: bei schmalen Bildschirmen auf Flex-Stack umschalten */
@media (max-width: 800px) {
  .bolist-mailbox {
    display: flex;
    flex-direction: column;
  }
  .bolist-filters,
  #bolist-list,
  #bolist-panel {
    width: 100% !important;
  }
}


/* 1. SPALTE: FILTERLEISTE */
.bolist-filters {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Liste der Filter-Buttons */
.filters-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.filters-list li {
  cursor: pointer;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
}
.filters-list li i {
  margin-right: 8px;
}
.filters-list li.active,
.filters-list li:hover {
  background: #e6f4ff;
}
.filters-list li .count {
  font-weight: 600;
  color: #555;
}

/* Sportarten‐Box */
.bolist-labels {
  margin-top: 24px;
}
.bolist-labels h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}
.bolist-labels ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bolist-labels li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  color: #444;
}
.bolist-labels li i {
  margin-right: 8px;
  color: #5d87ff;
}

/* 2. SPALTE: NACHRICHTENLISTE */
.items-list {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow-y: auto;
  max-height: calc(100vh - 100px);
}
.items-list .placeholder,
.items-list .loading,
.items-list .error {
  color: #777;
  font-style: italic;
}

/* Einzelne Card‐Items */
.card-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  transition: background .2s, box-shadow .2s;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.card-item:last-child {
  margin-bottom: 0;
}
.card-item:hover,
.card-item.active {
  background: #e6f4ff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.card-left {
  margin-right: 12px;
}
.card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.card-body {
  flex: 1;
}
.card-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}
.card-subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.2em !important;
}
.card-right {
  text-align: right;
}
.card-right .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
}
.card-right .badge-open {
  background: #5D87FF;
  color: #fff;
}
.card-right .badge-accepted {
  background: #4CAF50;
  color: #fff;
}
.card-right .badge-rejected {
  background: #F44336;
  color: #fff;
}
.card-right .badge-sent {
  background: #777;
  color: #fff;
}
.card-right .time {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #999;
}

/* 3. SPALTE: THREAD‐PANEL */
.bolist-thread {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow-y: auto;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}
.bolist-thread .placeholder {
  padding: 24px;
  color: #777;
  font-style: italic;
}

img.reply_icon {
    width: 40px;
}
i.fa-solid.fa-bolt {
    color: #00aaffee;
}
.card-subtitle i{ margin-right:6px; }
.card-meta{ margin-top:2px; font-size:12px; color:#64748b; 
margin-left: 22px;
}
