/* WP AJAX Gruppenchat - Styles */

.wagc-chat {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.wagc-actions-sidebar {
    width: 180px;
    border-left: 1px solid #ddd;
    padding: 16px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
}

.wagc-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wagc-actions-vertical .wagc-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
}

.wagc-btn-ghost-toggle {
    background: #555;
    color: #fff;
}

.wagc-btn-ghost-toggle:hover {
    background: #444;
    color: #fff;
    opacity: 0.95;
}

.wagc-btn-whisper-toggle {
    background: #6c757d;
    color: #fff;
}

.wagc-btn-whisper-toggle:hover {
    background: #5a6268;
    color: #fff;
}

.wagc-btn-team-toggle {
    background: #6c757d;
    color: #fff;
}

.wagc-btn-team-toggle:hover {
    background: #5a6268;
    color: #fff;
}

.wagc-btn-team-toggle.wagc-team-active {
    background: #0d6efd;
}

.wagc-btn-team-toggle.wagc-team-active:hover {
    background: #0b5ed7;
}

.wagc-notice {
    padding: 10px 20px;
    margin: 0;
}

.wagc-notice-warning,
.wagc-notice-status {
    background: #fff3cd;
    border-bottom: 1px solid #ffc107;
    color: #856404;
}

.wagc-notice-dismissible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wagc-notice-dismissible .wagc-notice-text {
    flex: 1;
}

.wagc-notice-dismiss {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    padding: 2px 8px;
    cursor: pointer;
    opacity: 0.8;
}

.wagc-notice-dismiss:hover {
    opacity: 1;
}

.wagc-notice-whisper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #e3f2fd;
    border-bottom: 1px solid #90caf9;
    color: #0d47a1;
}

.wagc-notice-whisper .wagc-whisper-mode-text {
    flex: 1;
    min-width: 200px;
}

.wagc-whisper-mode-sub {
    display: block;
    font-size: 0.85em;
    font-weight: normal;
    margin-top: 4px;
    opacity: 0.92;
}

.wagc-notice-whisper .wagc-whisper-mode-cancel-btn {
    flex-shrink: 0;
}

.wagc-top-notices .wagc-notice:not(:first-child) {
    border-top: 1px solid rgba(0,0,0,0.08);
}

.wagc-chat-body {
    display: flex;
    min-height: 400px;
}

.wagc-sidebar {
    width: 220px;
    border-right: 1px solid #ddd;
    padding: 16px;
    background: #f9f9f9;
}

.wagc-sidebar h3 {
    margin: 0 0 12px;
    font-size: 0.95rem;
}

.wagc-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wagc-sidebar li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.wagc-excluded-wrap {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.wagc-excluded-wrap h4 {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #666;
}

.wagc-excluded-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wagc-excluded-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
}

.wagc-excluded-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wagc-excluded-allow-btn {
    flex-shrink: 0;
    padding: 4px 6px;
    min-width: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #0073aa;
    cursor: pointer;
}

.wagc-excluded-allow-btn:hover {
    background: #f0f7fc;
    border-color: #0073aa;
    color: #005177;
}

.wagc-excluded-allow-btn svg {
    display: block;
}

.wagc-btn-small {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.wagc-badge {
    font-size: 0.75rem;
    background: #0073aa;
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.wagc-ghost-badge {
    font-size: 0.75rem;
    background: #666;
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.wagc-soft-kick-btn.wagc-soft-kick-btn-icon {
    padding: 3px 4px;
    background: #fff;
    border: 1px solid #999;
    border-radius: 4px;
    vertical-align: middle;
    color: #555;
    margin-right: 2px;
    cursor: pointer;
}

.wagc-soft-kick-btn.wagc-soft-kick-btn-icon:hover {
    background: #fff3e0;
    border-color: #f39c12;
    color: #e65100;
}

.wagc-soft-kick-btn.wagc-soft-kick-btn-icon svg {
    display: block;
}

/* Nachrichten-Aktionen: Basis (Leiste überschreibt Farben) */
.wagc-msg-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    box-sizing: border-box;
}
.wagc-msg-action-btn svg {
    display: block;
}

.wagc-withdraw-btn {
    font-size: 0.75rem;
    padding: 2px 6px;
    margin-left: 4px;
    cursor: pointer;
}

.wagc-important-badge {
    color: #cc6600;
    font-size: 0.9em;
    vertical-align: middle;
}

.wagc-msg-actions .wagc-msg-action-btn.wagc-important-btn.wagc-important-active {
    background: rgba(255, 193, 7, 0.35);
    border-color: rgba(255, 220, 120, 0.9);
    color: #fff;
}

#wagc-participants > li.wagc-participant:nth-child(even) {
    background-color: #f0f0f0;
}

#wagc-participants .wagc-participant {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 4px;
}

#wagc-participants .wagc-participant-row--main {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

#wagc-participants .wagc-participant-name-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

#wagc-participants .wagc-participant-row--main .wagc-participant-whisper-btn {
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 0;
}

#wagc-participants .wagc-participant-row--actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

#wagc-participants .wagc-participant-row--actions .wagc-akte-btn-icon,
#wagc-participants .wagc-participant-row--actions .wagc-mute-btn-icon,
#wagc-participants .wagc-participant-row--actions .wagc-soft-kick-btn-icon {
    margin-right: 0;
}

.wagc-participant-muted {
    background: #ffebee !important;
}

.wagc-participant-muted:hover {
    background: #ffcdd2 !important;
}

.wagc-mute-btn,
.wagc-mute-btn.wagc-mute-btn-icon {
    padding: 3px 4px;
    background: #fff;
    border: 1px solid #999;
    border-radius: 4px;
    vertical-align: middle;
    color: #555;
    margin-right: 2px;
    cursor: pointer;
}

.wagc-mute-btn:hover:not(:disabled) {
    background: #ffebee;
    border-color: #e74c3c;
    color: #c62828;
}

.wagc-mute-btn.wagc-muted-active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.wagc-mute-btn.wagc-muted-active:hover:not(:disabled) {
    background: #c0392b;
    border-color: #c0392b;
}

.wagc-mute-btn svg {
    display: block;
}

.wagc-akte-btn,
.wagc-akte-btn.wagc-akte-btn-icon {
    padding: 3px 4px;
    background: #fff;
    border: 1px solid #999;
    border-radius: 4px;
    vertical-align: middle;
    color: #555;
    margin-right: 2px;
    cursor: pointer;
}

.wagc-akte-btn:hover {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.wagc-akte-btn svg {
    display: block;
}

.wagc-participant-whisper-btn {
    padding: 3px 4px;
    background: #fff;
    border: 1px solid #90caf9;
    border-radius: 4px;
    vertical-align: middle;
    color: #1565c0;
    margin-right: 2px;
    cursor: pointer;
    line-height: 0;
}

.wagc-participant-whisper-btn:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #0d47a1;
}

.wagc-participant-whisper-btn.wagc-whisper-target-active {
    background: #1976d2;
    border-color: #1565c0;
    color: #fff;
}

.wagc-participant-whisper-btn.wagc-whisper-target-active:hover {
    background: #1565c0;
    border-color: #0d47a1;
    color: #fff;
}

.wagc-participant-whisper-btn svg {
    display: block;
}

.wagc-msg-other.wagc-from-muted .wagc-msg-bubble {
    background: #ffebee !important;
    color: #b71c1c;
    border-left: 3px solid #e74c3c;
}

.wagc-msg-own.wagc-from-muted .wagc-msg-bubble {
    background: #ffebee !important;
    color: #b71c1c;
    border-right: 3px solid #e74c3c;
}

.wagc-msg.wagc-from-muted .wagc-msg-author,
.wagc-msg.wagc-from-muted .wagc-muted-label {
    color: #b71c1c;
}

.wagc-muted-label {
    font-size: 0.8rem;
}

.wagc-whisper-label {
    font-size: 0.8rem;
}

.wagc-msg-own.wagc-whisper .wagc-whisper-label,
.wagc-msg-other .wagc-whisper-label {
    color: #004085;
}

.wagc-msg-own.wagc-whisper .wagc-msg-author {
    color: #004085;
}

.wagc-team-label {
    font-size: 0.8rem;
    color: #155724;
}

.wagc-msg.wagc-team .wagc-msg-author {
    color: #155724;
}

.wagc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wagc-messages-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wagc-messages-wrapper .wagc-messages {
    flex: 1;
}

.wagc-scroll-anchor-wrap {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.wagc-btn-scroll {
    padding: 6px 12px;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wagc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wagc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: 350px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.wagc-msg-wrap {
    max-width: 90%;
    margin-bottom: 10px;
}

.wagc-msg-wrap-own {
    align-self: flex-end;
}

.wagc-msg-wrap-other {
    align-self: flex-start;
}

/* Nachricht: äußerer Block für Hover/focus-within (Aktionsleiste); kein eigener Hintergrund (vermeidet „Rahmen“ hinter der Blase) */
.wagc-msg {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    vertical-align: top;
    background: transparent;
    padding: 0;
    margin: 0;
}

.wagc-msg:focus-visible {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
    border-radius: 4px;
}

.wagc-msg-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    word-wrap: break-word;
    border-style: solid;
    border-color: transparent;
    border-top-width: 0;
    border-bottom-width: 0;
    border-left-width: 0;
    border-right-width: 0;
    box-shadow: none;
    outline: none;
}

.wagc-msg-own .wagc-msg-bubble {
    background: #0073aa;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.wagc-msg-other .wagc-msg-bubble {
    background: #e9ecef;
    color: #212529;
    border-bottom-left-radius: 4px;
}

/* Team-Posts: Akzent als Gradient-Streifen (kein Border – vermeidet Doppelkanten mit Radius) */
.wagc-msg-other.wagc-team .wagc-msg-bubble {
    background: linear-gradient(90deg, #28a745 0, #28a745 3px, #d4edda 3px) !important;
    color: #155724;
    border: none !important;
    border-bottom-left-radius: 4px;
}

.wagc-msg-own.wagc-team .wagc-msg-bubble {
    background: linear-gradient(270deg, #28a745 0, #28a745 3px, #d4edda 3px) !important;
    color: #155724;
    border: none !important;
    border-bottom-right-radius: 4px;
}

/* Wichtig: gleicher Trick */
.wagc-msg-other.wagc-important .wagc-msg-bubble {
    background: linear-gradient(90deg, #cc6600 0, #cc6600 3px, #fff5eb 3px);
    border: none !important;
}

.wagc-msg-own.wagc-important .wagc-msg-bubble {
    background: linear-gradient(270deg, #cc6600 0, #cc6600 3px, #fff5eb 3px);
    border: none !important;
}

/* Systemmeldungen */
.wagc-msg.wagc-system .wagc-msg-bubble {
    color: #856404;
    white-space: normal;
    overflow-x: visible;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.45;
    border: none !important;
}

.wagc-msg.wagc-system .wagc-system-msg-para {
    margin: 0 0 0.65em;
}

.wagc-msg.wagc-system .wagc-system-msg-para:last-child {
    margin-bottom: 0;
}

.wagc-msg-other.wagc-system .wagc-msg-bubble {
    background: linear-gradient(90deg, #ffc107 0, #ffc107 3px, #fff3cd 3px) !important;
    border-bottom-left-radius: 4px;
}

.wagc-msg-own.wagc-system .wagc-msg-bubble {
    background: linear-gradient(270deg, #ffc107 0, #ffc107 3px, #fff3cd 3px) !important;
    border-bottom-right-radius: 4px;
}

.wagc-msg-other.wagc-system.wagc-important .wagc-msg-bubble {
    background: linear-gradient(90deg, #cc6600 0, #cc6600 3px, #fff5eb 3px) !important;
}

.wagc-msg-own.wagc-system.wagc-important .wagc-msg-bubble {
    background: linear-gradient(270deg, #cc6600 0, #cc6600 3px, #fff5eb 3px) !important;
}

/* Flüstern: kompletter Block einheitlich blau (kein grauer Standard hinter der inneren Blase) */
.wagc-msg.wagc-whisper {
    background: #e8f4fd;
    color: #004085;
    border-radius: 12px;
    border-style: solid;
    border-color: #0073aa;
    border-top-width: 0;
    border-bottom-width: 0;
    border-left-width: 0;
    border-right-width: 0;
}

.wagc-msg-other.wagc-whisper {
    border-bottom-left-radius: 4px;
    border-left-width: 3px;
}

.wagc-msg-own.wagc-whisper {
    border-bottom-right-radius: 4px;
    border-right-width: 3px;
}

.wagc-msg.wagc-whisper .wagc-msg-bubble {
    background: transparent !important;
    color: #004085;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.wagc-msg.wagc-whisper.wagc-important {
    background: #fff5eb;
    border-color: #cc6600;
}

.wagc-msg.wagc-withdrawn .wagc-msg-bubble {
    background: #adb5bd !important;
    color: #495057 !important;
    opacity: 1;
}

.wagc-msg.wagc-withdrawn.wagc-system .wagc-msg-bubble {
    background: #adb5bd !important;
    color: #495057 !important;
}

.wagc-msg.wagc-whisper.wagc-withdrawn {
    background: #adb5bd !important;
    color: #495057 !important;
    border-color: #868e96;
}

.wagc-msg.wagc-whisper.wagc-withdrawn .wagc-msg-bubble {
    background: transparent !important;
    color: #495057 !important;
}

.wagc-msg.wagc-withdrawn .wagc-msg-author,
.wagc-msg.wagc-withdrawn .wagc-whisper-label {
    color: #495057 !important;
}

/* Aktionsleiste unter der Blase: Hover / Tastatur / Touch ohne Hover */
.wagc-msg-actions {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 8px 10px;
    background: #2d3748;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.wagc-msg:hover .wagc-msg-actions,
.wagc-msg:focus-within .wagc-msg-actions {
    display: flex;
}

@media (hover: none) and (pointer: coarse) {
    .wagc-msg-actions {
        display: flex;
    }
}

.wagc-msg-actions .wagc-msg-action-btn {
    background: rgba(247, 250, 252, 0.2);
    border: 1px solid rgba(247, 250, 252, 0.45);
    color: #f7fafc;
}

.wagc-msg-actions .wagc-msg-action-btn:hover {
    background: rgba(247, 250, 252, 0.38);
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

.wagc-msg-actions .wagc-msg-action-btn.wagc-important-btn:not(.wagc-important-active):hover {
    color: #fff7ed;
    border-color: rgba(255, 237, 213, 0.8);
}

.wagc-withdrawn-label {
    font-size: 0.8rem;
    font-style: italic;
    display: inline-block;
    margin-right: 6px;
}


.wagc-msg-author {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.wagc-msg-own .wagc-msg-author {
    color: rgba(255,255,255,0.9);
}

.wagc-msg-other .wagc-msg-author {
    color: #495057;
}

.wagc-input-area {
    border-top: 1px solid #ddd;
    padding: 12px 16px;
    background: #fafafa;
}

.wagc-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.wagc-input-row textarea {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-size: 0.95rem;
}

.wagc-input-row textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.wagc-emoji-btn {
    padding: 8px 12px;
    font-size: 1.2rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.wagc-emoji-btn:hover {
    background: #f0f0f0;
}

.wagc-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    max-height: 120px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 8px;
}

.wagc-emoji-item {
    font-size: 1.2rem;
    padding: 2px 4px;
    cursor: pointer;
}

.wagc-emoji-item:hover {
    background: #eee;
    border-radius: 4px;
}

.wagc-input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wagc-btn-team-post {
    background: #28a745;
    color: #fff;
}

.wagc-btn-team-post:hover:not(:disabled) {
    background: #218838;
    color: #fff;
}

.wagc-input-actions label {
    font-size: 0.9rem;
}

.wagc-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
}

.wagc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wagc-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.wagc-btn-secondary:hover {
    background: #5a6268;
    color: #fff;
}

.wagc-btn-primary {
    background: #0073aa;
    color: #fff;
}

.wagc-btn-primary:hover:not(:disabled) {
    background: #005a87;
}

.wagc-btn-danger {
    background: #dc3545;
    color: #fff;
}

.wagc-btn-danger:hover {
    background: #c82333;
}

.wagc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.wagc-modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    max-width: 320px;
}

.wagc-modal-content p {
    margin: 0 0 16px;
}

.wagc-inactivity-countdown {
    font-size: 0.9rem;
    color: #856404;
    margin-bottom: 16px !important;
}

.wagc-modal-content .wagc-btn {
    min-width: 100px;
}

.wagc-edit-details-inline {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.wagc-edit-details-inline h3 {
    margin: 0 0 16px;
    font-size: 1.25rem;
}

.wagc-edit-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.wagc-edit-details-modal .wagc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    cursor: pointer;
}

.wagc-edit-details-modal .wagc-modal-content {
    position: relative;
    max-width: 560px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    text-align: left;
}

.wagc-edit-details-modal .wagc-modal-content h3 {
    margin: 0 0 16px;
    font-size: 1.25rem;
}

.wagc-edit-details-form .wagc-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.wagc-edit-details-form .wagc-textarea {
    min-height: 100px;
    resize: vertical;
}

.wagc-blacklist-modal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wagc-blacklist-modal .wagc-modal-content {
    text-align: left;
    max-width: 400px;
}
.wagc-blacklist-modal .wagc-blacklist-words-hint {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px !important;
}
.wagc-blacklist-modal .wagc-blacklist-words-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 16px;
    max-height: 120px;
    overflow-y: auto;
}
.wagc-blacklist-modal .wagc-blacklist-word-chip {
    display: inline-block;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.wagc-blacklist-modal .wagc-blacklist-word-chip:hover {
    background: #e8f4fc;
    border-color: #0073aa;
}
.wagc-blacklist-modal .wagc-blacklist-error {
    color: #dc3545;
    font-size: 0.9rem;
}
.wagc-blacklist-modal .wagc-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}
.wagc-blacklist-modal .wagc-blacklist-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px !important;
}

.wagc-edit-details-form p {
    margin: 0 0 16px;
}

.wagc-edit-details-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.wagc-edit-details-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 16px;
}

@media (max-width: 600px) {
    .wagc-edit-details-row {
        grid-template-columns: 1fr;
    }
}

.wagc-edit-details-form .wagc-select-multi {
    min-height: 120px;
    padding: 6px 10px;
}

.wagc-edit-hint {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 0.85rem;
}

.wagc-edit-details-error {
    color: #dc3545;
    font-size: 0.9rem;
}

.wagc-edit-details-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px !important;
}

/* Warteliste-Status im Chat */
.wagc-waitlist-notice {
    padding: 24px;
    text-align: center;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 400px;
}
.wagc-waitlist-notice .wagc-waitlist-msg {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #856404;
}
.wagc-waitlist-notice .wagc-btn {
    display: inline-block;
}

/* Abo: E-Mail-Benachrichtigungen für neue Chat-Termine */
.wagc-subscription-box {
    margin-bottom: 1.25rem;
    padding: 12px 16px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.wagc-subscription-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}
.wagc-subscription-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}
.wagc-subscription-feedback {
    font-size: 0.9rem;
    color: #0073aa;
}

/* ── WP Ajax Einzelchat (Ergänzung — Farben wie Gruppenchat: Status / Flüstern / Primär) ── */

.wagc-notice-waiting {
    background: #fff3cd;
    border-bottom: 1px solid #ffc107;
    color: #856404;
    font-size: 0.95rem;
}

.wagc-notice-waiting.wagc-notice-waiting--new {
    background: #fff3cd;
    box-shadow: inset 0 0 0 2px #ffc107;
    animation: wagc-waiting-pulse 1.2s ease-out 2;
}

@keyframes wagc-waiting-pulse {
    from { box-shadow: inset 0 0 0 2px #ffc107; }
    to { box-shadow: inset 0 0 0 2px transparent; }
}

.wagc-notice-waiting .wagc-waiting-queue-link {
    margin-left: 0.35rem;
    font-weight: 600;
    color: #0073aa;
    text-decoration: underline;
}

.wagc-notice-waiting .wagc-waiting-queue-link:hover,
.wagc-notice-waiting .wagc-waiting-queue-link:focus {
    color: #005177;
}

.wagc-msg-other.wagc-msg-ghost .wagc-msg-bubble {
    background: linear-gradient(90deg, #718096 0, #718096 3px, #edf2f7 3px) !important;
    color: #1a202c;
}

.wagc-msg-own.wagc-msg-ghost .wagc-msg-bubble {
    background: linear-gradient(270deg, #718096 0, #718096 3px, #edf2f7 3px) !important;
    color: #1a202c;
}

.wagc-msg-ghost .wagc-team-label {
    color: #4a5568;
}

.sc-other-chats {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.sc-other-chats h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

#sc-other-chats-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

#sc-other-chats-list a {
    color: #0073aa;
    text-decoration: underline;
}

#sc-other-chats-list .sc-other-chats-switch {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #0073aa;
    text-decoration: underline;
    font: inherit;
    font-size: inherit;
    cursor: pointer;
    text-align: left;
}

#sc-other-chats-list .sc-other-chats-switch:hover,
#sc-other-chats-list .sc-other-chats-switch:focus {
    color: #135e96;
}

#sc-other-chats-list .sc-other-chats-switch:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

#sc-other-chats-list .sc-other-chats-empty {
    list-style: none;
    margin-left: -1.1rem;
    color: #666;
    font-style: italic;
}

.sc-other-chats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.sc-other-chats-new {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    font-style: normal;
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 999px;
    line-height: 1.3;
}

.wagc-ended-panel {
    padding: 32px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.wagc-ended-message {
    font-size: 1.1em;
    margin-bottom: 16px;
    color: #856404;
}

.wagc-mod-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #212529;
    transition: background 0.15s, border-color 0.15s;
}

.wagc-mod-btn:hover {
    background: #f9f9f9;
    border-color: #ccc;
}

.wagc-mod-btn-active {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #0d47a1;
    font-weight: 600;
}

#sc-blacklist-modal.wagc-blacklist-modal .wagc-modal-content > p {
    margin: 0 0 16px;
    text-align: left;
}

#sc-blacklist-modal.wagc-blacklist-modal label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}
