/* ---------------------------------------------------
   MODERN MESSAGING BOARD UI 2025
--------------------------------------------------- */

.mb-messaging-board {
    max-width: 100%;
    /*margin: 0 auto;*/
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    color: #2a2a2a;
}

/* Titel */
.mb-messaging-board h2 {
    font-size: 1.7rem;
    margin: 40px 0 20px;
    font-weight: 600;
}

/* Success Notice */
.mb-notice-success {
    background: #e3ffe8;
    border-left: 4px solid #24a334;
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 15px;
}

/* Broadcast Banner */
.mb-broadcast {
    background: #fff;
    padding: 18px 22px;
    margin-bottom: 18px;
    border-left: 4px solid #0078ff;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    border-radius: 8px;
}

.mb-broadcast-header strong {
    font-size: 1.1rem;
}

.mb-broadcast-date {
    float: right;
    color: #666;
    font-size: 13px;
}

/* Tabellenlayout modernisieren */
.mb-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.mb-table thead th {
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #777;
    padding: 6px;
}

.mb-table tbody tr {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border-radius: 10px;
}

.mb-table tbody td {
    padding: 14px 16px;
    vertical-align: top;
}

/* Ungelesene Hauptnachrichten */
.mb-unread {
    border-left: 4px solid #ffbe3b;
}

/* Action Links */
.mb-actions a {
    color: #0078ff;
    text-decoration: none;
}

.mb-actions a:hover {
    text-decoration: underline;
}

.mb-delete {
    color: #d9534f;
}

/* Thread Toggle Button */
.mb-thread-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: #f6f8fa;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    margin-top: -8px;
    transition: background .2s;
}

.mb-thread-toggle:hover {
    background: #eef1f4;
}

/* Replies Wrapper */
.mb-reply-wrapper td {
    padding: 0 !important;
}

/* Reply Box (modern bubble style) */
.mb-reply {
    margin: 12px 0;
    padding: 14px 18px;
    background: #f9fafb;
    border-left: 4px solid #c8cdd3;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

/* Unread reply */
.mb-reply-unread {
    background: #fff7e0 !important;
    border-left-color: #f0b200 !important;
}

/* Reply meta */
.mb-reply-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
}

.mb-reply-sender {
    font-weight: 600;
}

.mb-reply-date {
    opacity: .7;
}

/* Reply Text */
.mb-reply-body {
    font-size: 15px;
    line-height: 1.5;
}

/* Pagination */
.mb-pagination {
    margin-top: 25px;
    text-align: center;
}

.mb-page {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: #f1f3f5;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: background .2s;
}

.mb-page:hover {
    background: #e5e7eb;
}

.mb-page-current {
    background: #0078ff !important;
    color: white !important;
}

.mb-reply-actions a,
.mb-actions a,
.mb-filter-bar a{
    text-decoration:none;
    color:#333;
}

.mb-reply-actions a:hover,
.mb-actions a:hover,
.mb-filter-bar a:hover{
    text-decoration:underline;
    color:#ff4200;
}

/* Neue Nachricht Formular */
.mb-form input[type=text],
.mb-form textarea,
.mb-form select {
    width: 100%;
    font-size: 15px;
    margin-bottom: 14px;

    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    background: #F3F4F6;
}

.mb-form textarea {
    resize: vertical;
}

.mb-form button {
    padding: 12px 20px;
    border-radius: 8px;
    background: #ff8b00;
    border: none;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

.mb-form button:hover {
    background: #ff4200;
}

/* Mobile */
@media (max-width: 700px) {
    .mb-table thead {
        display: none;
    }

    .mb-table tr {
        display: block;
        margin-bottom: 16px;
    }

    .mb-table td {
        display: block;
        padding: 10px 12px;
    }
}

.mb-reply-actions {
    margin-top: 10px;
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.mb-reply-action {
    color: #0078ff;
    cursor: pointer;
    text-decoration: none;
}

.mb-reply-action:hover {
    text-decoration: underline;
}

a .mb-orange-badge {
    color: #fff;
    background: rgb(255, 139, 0);
    width: 25px;
    height: 25px;
    border-radius: 15px;
    display: inline-block;
    text-align: center;
    margin-left: 10px;
    border:1px solid #FF8B00;
}

a:hover .mb-orange-badge{
    border:1px solid #fff;
}