/* ===============================
   SESSION & ANWESENHEIT STYLES
   Shared across session views,
   campaign show, and dashboard.
   =============================== */

/* Session Status Badges */
.session-status-geplant { background: rgba(52, 152, 219, 0.2); color: #3498db; border: 1px solid rgba(52, 152, 219, 0.4); }
.session-status-findet-statt { background: rgba(40, 167, 69, 0.2); color: #28a745; border: 1px solid rgba(40, 167, 69, 0.4); }
.session-status-abgesagt { background: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.4); }
.session-status-abgeschlossen { background: rgba(108, 117, 125, 0.2); color: #999; border: 1px solid rgba(108, 117, 125, 0.4); }

/* Anwesenheits-Badges */
.aw-badge,
.aw-badge-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.aw-badge {
    border-radius: 50%;
    font-size: 0.7rem;
    width: 28px;
    height: 28px;
}

.aw-badge-sm {
    border-radius: 12px;
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
}

.aw-anwesend { background: rgba(40, 167, 69, 0.25); color: #28a745; border: 1px solid rgba(40, 167, 69, 0.4); }
.aw-online { background: rgba(52, 152, 219, 0.25); color: #3498db; border: 1px solid rgba(52, 152, 219, 0.4); }
.aw-abgesagt { background: rgba(231, 76, 60, 0.25); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.4); }
.aw-offen { background: rgba(108, 117, 125, 0.2); color: #777; border: 1px solid rgba(108, 117, 125, 0.3); }

/* Anwesenheits-Buttons */
.btn-outline-success { background: transparent; color: #28a745; border-color: rgba(40,167,69,0.4); }
.btn-outline-success:hover { background: rgba(40,167,69,0.15); }
.btn-success-active { background: rgba(40,167,69,0.3); color: #28a745; border-color: #28a745; }

.btn-outline-info { background: transparent; color: #3498db; border-color: rgba(52,152,219,0.4); }
.btn-outline-info:hover { background: rgba(52,152,219,0.15); }
.btn-info-active { background: rgba(52,152,219,0.3); color: #3498db; border-color: #3498db; }

/* Note: .btn-outline-danger for session buttons —
   the info-pages.css version is for price calculator */

/* Teilnehmer-Liste */
.session-teilnehmer {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

/* Current user highlight in attendance table */
.aw-current-user {
    background: rgba(212, 175, 55, 0.06) !important;
}

/* Session Stats */
.session-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.session-stat-card {
    background: var(--color-surface, #1e1e1e);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.session-stat-card.session-stat-green { border-color: rgba(40, 167, 69, 0.4); }
.session-stat-card.session-stat-red { border-color: rgba(231, 76, 60, 0.4); }

.session-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #d4af37;
    font-family: var(--font-fantasy);
}

.session-stat-green .session-stat-number { color: #28a745; }
.session-stat-red .session-stat-number { color: #e74c3c; }

.session-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
}

/* Session Create Form */
.session-create-form .form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.session-create-form .form-group {
    flex: 1;
    min-width: 140px;
}

.session-create-form .form-group-btn {
    flex: 0;
    min-width: auto;
}

/* Anwesenheits-Karten */
.aw-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.aw-card {
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.aw-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aw-card-status {
    font-size: 0.88rem;
    color: #bbb;
}

.aw-card-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.aw-card-actions .btn-sm {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.15s;
    font-weight: 600;
}

/* Session Banner (on campaign page) */
.session-banner {
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.session-banner-warn {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.session-banner-ok {
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.session-banner-icon {
    background: #d4af37;
    color: #1a1a1a;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.session-banner-content {
    flex: 1;
    font-size: 0.92rem;
    color: #e0e0e0;
    line-height: 1.5;
}

.session-banner-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.session-quick-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.session-quick-info {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.session-quick-date {
    font-weight: 700;
    color: #e0e0e0;
}

.session-quick-time {
    color: #999;
    font-size: 0.85rem;
}

.session-quick-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.session-quick-actions .btn-sm {
    font-size: 0.76rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.15s;
    font-weight: 600;
}

.session-banner-link {
    color: #d4af37;
    margin-left: 0.5rem;
    font-size: 0.85rem;
}

/* Session Notiz Icon */
.session-notiz-icon {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    transition: all 0.15s;
}

.session-notiz-icon:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: #d4af37;
    transform: scale(1.1);
}

/* Anwesenheits-Spalten-Header */
.aw-col-header {
    font-size: 0.78rem;
    min-width: 50px;
}

/* Table action buttons (edit/delete icons) */
.table-actions .action-edit,
.table-actions .action-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    font-family: var(--font-fantasy);
    padding: 0;
}

.table-actions .action-edit {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.table-actions .action-edit:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: #d4af37;
    transform: scale(1.1);
}

.table-actions .action-delete {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.25);
}

.table-actions .action-delete:hover {
    background: rgba(231, 76, 60, 0.25);
    border-color: #e74c3c;
    transform: scale(1.1);
}

.btn-danger-active { background: rgba(231,76,60,0.3); color: #e74c3c; border-color: #e74c3c; }
