.message-tabs {
    display: flex;
    gap: 10px;
}

.message-list {
    display: flex;
    flex-direction: column;
}

.message-item {
    display: flex;
    gap: 16px;
    padding: 20px 5px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.message-item:last-child {
    border-bottom: 0;
}

.message-item:hover {
    background: #f8fafc;
}

.message-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 12px;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 5px;
}

.message-person-label {
    margin-right: 5px;
    font-size: 12px;
    color: #94a3b8;
}

.message-date {
    font-size: 13px;
    white-space: nowrap;
    color: #94a3b8;
}

.message-subject {
    margin: 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.message-preview {
    margin-bottom: 12px;
    color: #64748b;
}

.message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box i {
    position: absolute;
    top: 50%;
    left: 13px;
    color: #94a3b8;
    transform: translateY(-50%);
}

.search-box input {
    padding-left: 38px;
}

.empty-state {
    padding: 55px 20px;
    text-align: center;
}

.empty-state > i {
    margin-bottom: 18px;
    font-size: 48px;
    color: #94a3b8;
}

.empty-state p {
    color: #64748b;
}

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
}

.delete-confirmation-card {
    width: 100%;
    max-width: 430px;
    padding: 32px;
    text-align: center;
    background: #ffffff;
    border-radius: 18px;
}

.delete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    font-size: 26px;
    color: #dc3545;
    background: #fee2e2;
    border-radius: 50%;
}

@media (max-width: 768px) {

    .message-top {
        flex-direction: column;
        gap: 2px;
    }

    .search-box {
        width: 100%;
    }

}